随笔分类 -  uniapp

摘要:微信小程序地图sdk ##取点 //跳转地图 jumpToMap() { const key = this.qqMapKey; //使用在腾讯位置服务申请的key const referer = '地图'; //调用插件的app的名称 const location = JSON.stringify( 阅读全文
posted @ 2021-05-27 09:34 gggggggxin 阅读(935) 评论(0) 推荐(0)
摘要:onLoad同级,有图片就用图片,没图片就直接用屏幕截图 onShareAppMessage() { let that = this; let pages = getCurrentPages(); let route = pages[pages.length - 1].$page.fullPath; 阅读全文
posted @ 2021-05-17 14:27 gggggggxin 阅读(539) 评论(0) 推荐(0)
摘要:最外层写 @tap.native.stop="changePop()" 阅读全文
posted @ 2021-04-19 08:46 gggggggxin 阅读(263) 评论(0) 推荐(0)
摘要:1.HBilderX 新建项目 2.新建两个页面 3.修改pages.josn 添加tabbar配置,tip:小程序height,fontSize不支持。分包预留好位置 { "pages": [ { "path": "pages/Main/home", "style": { "enablePullD 阅读全文
posted @ 2021-04-07 14:53 gggggggxin 阅读(1258) 评论(0) 推荐(0)
摘要:App.vue onShow: function () { //新版本更新 if (uni.canIUse('getUpdateManager')) { //判断当前微信版本是否支持版本更新 const updateManager = uni.getUpdateManager(); updateMa 阅读全文
posted @ 2020-12-23 17:54 gggggggxin 阅读(1340) 评论(0) 推荐(0)
摘要:全局设置image css //解决图片拉伸 image { height: auto; } 阅读全文
posted @ 2020-12-23 17:53 gggggggxin 阅读(819) 评论(0) 推荐(0)
摘要:store写了公用方法,每个页面请求接收 onLoad(option) { uni.showLoading({ title: '加载中', }); if (option.scene) { let obj = {}; this.$store.dispatch('setting/setOption', 阅读全文
posted @ 2020-11-23 10:33 gggggggxin 阅读(532) 评论(1) 推荐(1)
摘要:使用方法 微信小程序JavaScript SDK; 采用腾讯地图sdk <template> <view> <view> <map :latitude="latitude" :longitude="longitude" :markers="markers" class="map"></map> <v 阅读全文
posted @ 2020-11-10 17:16 gggggggxin 阅读(2506) 评论(0) 推荐(0)
摘要:报错 VM17512:1 Failed to load local image resource /pages/Personal/personal/undefinedpersonal/edit.png the server responded with a status of 500 (HTTP/1 阅读全文
posted @ 2020-09-29 10:42 gggggggxin 阅读(1830) 评论(0) 推荐(0)
摘要:报错如下: VM6296:1 WXMLRT_$gwx:./pages/Home/home.wxml:block:1:21250: Now you can provide attr wx:key for a wx:for to improve performance. 错误代码: <view v-fo 阅读全文
posted @ 2020-09-02 14:03 gggggggxin 阅读(1717) 评论(0) 推荐(0)
摘要:根据说明配置微信小程序ide路径 但是无法打开微信开发者工具 没有明显报错 解决方案 微信开发者工具 》设置 》代理设置 》安全 》改为开启 关闭微信开发者工具软件,重新在hbuilder里运行,即成功 阅读全文
posted @ 2020-05-06 12:56 gggggggxin 阅读(1684) 评论(0) 推荐(0)