上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页

2020年4月17日

【小程序】使用uni-app搭建小程序环境--VueX

摘要: 使用VueX 存储登录状态 问题一:在vue页面中使用 this.$store.dispatch('login',option) 没有任何报错 没有任何反应 问题二:在js中使用 this.$tore.state.userInfo 报错 Uncaught TypeError: Cannot read 阅读全文

posted @ 2020-04-17 20:39 smile轉角 阅读(1468) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---页面刷新问题

摘要: 一、页面跳转后刷新 页面逻辑:我的页面 点击头像 登录弹窗 点击去登录 登录后跳转到我的页面 存在的问题:没有加载我的页面接口 解决方案: uni.switchTab({ url: this.backurl, success(){ let page = getCurrentPages().pop() 阅读全文

posted @ 2020-04-17 20:38 smile轉角 阅读(2539) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---顶部导航条

摘要: 在使用顶部导航功能时遇到:页面不滚动,不会触发@scrolltolower功能 解决方案:给swiper-view 组件加高度 阅读全文

posted @ 2020-04-17 20:37 smile轉角 阅读(755) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---video

摘要: 相关资料:视频组件控制 阅读全文

posted @ 2020-04-17 20:36 smile轉角 阅读(593) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---播放音频

摘要: 微信小程序平台自基础库 1.6.0 版本开始,不再维护 audio 组件,推荐使用API方式而不是组件方式来播放音频。API见 uni.createInnerAudioContext 替代。 app-nvue也不支持此组件。 故采用API方式 相关资料 音频组件控制 阅读全文

posted @ 2020-04-17 20:35 smile轉角 阅读(3060) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---滚动位置

摘要: uni.createSelectorQuery().select(".comment").boundingClientRect((res)=>{ console.log(res); // console.log(_this.imgHeight ,_this.imgHeight * 27); uni. 阅读全文

posted @ 2020-04-17 20:34 smile轉角 阅读(417) 评论(0) 推荐(0) 编辑

【ajax】get 和post区别

摘要: post 每次都执行 不被缓存 get 同一个地址不重复执行 可以被缓存 阅读全文

posted @ 2020-04-17 20:33 smile轉角 阅读(223) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---滑块组件

摘要: https://ext.dcloud.net.cn/plugin?id=181 阅读全文

posted @ 2020-04-17 20:32 smile轉角 阅读(512) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---基础组件的自动化全局注册 ******

摘要: 功能: 想实现自动化全局注册组件 const componentsContext = require.context('./components', true, /Base[A-Z]\w+\.(vue|js)$/); console.log('????',componentsContext,comp 阅读全文

posted @ 2020-04-17 20:30 smile轉角 阅读(2088) 评论(0) 推荐(0) 编辑

【小程序】使用uni-app搭建小程序环境---图片懒加载

摘要: 属性: 属性名类型默认值说明平台差异说明 src String 图片资源地址 mode String 'scaleToFill' 图片裁剪、缩放的模式 lazy-load Boolean false 图片懒加载。只针对page与scroll-view下的image有效 微信小程序、5+APP、百度小 阅读全文

posted @ 2020-04-17 20:29 smile轉角 阅读(6796) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 27 下一页

导航