上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: wx.navigateToMiniProgram({ appId: 'wxde8ac0a21135c07d', path: e.currentTarget.dataset.miniurl, extraData: { foo: 'bar' }, envVersion: 'release', succe 阅读全文
posted @ 2021-08-04 19:03 lude1994 阅读(64) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/qq_38290251/article/details/82911840 当前页面 var pages = getCurrentPages(); //当前页面 var prevPage = pages[pages.length - 2]; //上一页 阅读全文
posted @ 2021-08-04 13:50 lude1994 阅读(333) 评论(0) 推荐(0) 编辑
摘要: unique(arr){ for(var i=0; i<arr.length; i++){ for(var j=i+1; j<arr.length; j++){ if(arr[i].index==arr[j].index){ //第一个等同于第二个,splice方法删除第二个 arr.splice( 阅读全文
posted @ 2021-08-04 10:13 lude1994 阅读(42) 评论(0) 推荐(0) 编辑
摘要: 有参考,忘记地址了 创建一个api文件,将请求的都放在这个文件里 1.request.js /**axios封装 * 请求拦截、相应拦截、错误统一处理 */ import axios from 'axios';import QS from 'qs'; // import { Toast } from 阅读全文
posted @ 2021-08-03 14:57 lude1994 阅读(15) 评论(0) 推荐(0) 编辑
摘要: const accountInfo = wx.getAccountInfoSync(); console.log(accountInfo.miniProgram.version) // 插件版本号, 'a.b.c' 这样的形式 阅读全文
posted @ 2021-07-31 11:13 lude1994 阅读(240) 评论(0) 推荐(0) 编辑
摘要: vue3.0的出现这个问题,2.0版本的就可以解决 阅读全文
posted @ 2021-07-27 17:05 lude1994 阅读(202) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/wxl1555/article/details/83187647 可实现: main。js new Vue({ router, store, render: h => h(App) }).$mount("#app") 阅读全文
posted @ 2021-07-27 17:04 lude1994 阅读(45) 评论(0) 推荐(0) 编辑
摘要: 参考https://blog.csdn.net/qq_35510173/article/details/106399577 在点击跳转的地方 wx.navigateToMiniProgram({ appId: 'wxece3a9a4c82f58c9', path: e.currentTarget.d 阅读全文
posted @ 2021-07-25 12:51 lude1994 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 参考:https://www.cnblogs.com/luoshida/p/13434197.html 右上角胶囊的信息,包含width、height、top等 let rect= wx.getMenuButtonBoundingClientRect(); 机型信息 let info=wx.getS 阅读全文
posted @ 2021-07-21 21:27 lude1994 阅读(1004) 评论(0) 推荐(0) 编辑
摘要: 参考:https://blog.csdn.net/hao_m582/article/details/84108041 解决方法:在 gridDelegate中添加宽高比就可以 //宽高比 childAspectRatio: 2 / 3, 阅读全文
posted @ 2021-07-17 10:48 lude1994 阅读(436) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页