07 2021 档案

摘要:const accountInfo = wx.getAccountInfoSync(); console.log(accountInfo.miniProgram.version) // 插件版本号, 'a.b.c' 这样的形式 阅读全文
posted @ 2021-07-31 11:13 lude1994 阅读(257) 评论(0) 推荐(0) 编辑
摘要:vue3.0的出现这个问题,2.0版本的就可以解决 阅读全文
posted @ 2021-07-27 17:05 lude1994 阅读(205) 评论(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 阅读(249) 评论(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 阅读(1193) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/hao_m582/article/details/84108041 解决方法:在 gridDelegate中添加宽高比就可以 //宽高比 childAspectRatio: 2 / 3, 阅读全文
posted @ 2021-07-17 10:48 lude1994 阅读(512) 评论(0) 推荐(0) 编辑
摘要:注意:安卓支持分享好友和朋友圈,ios不支持分享朋友圈 在需要分享的页面js的onLoad中 wx.showShareMenu({ menus: ['shareAppMessage', 'shareTimeline'] // 分享好友、朋友圈 }) /** * 用户点击右上角分享 */ onShar 阅读全文
posted @ 2021-07-10 14:55 lude1994 阅读(266) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/qq_29483485/article/details/105421098 <view class="savecode" bindtap='saveToPhone'> 保存二维码 </view> // 保存图片 saveToPhone(e){ // 阅读全文
posted @ 2021-07-10 10:24 lude1994 阅读(386) 评论(0) 推荐(0) 编辑
摘要:1.下拉刷新 在需要的页面: json: "enablePullDownRefresh": true,"backgroundTextStyle": "dark", // 刷新的点的颜色 js: /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: func 阅读全文
posted @ 2021-07-01 21:25 lude1994 阅读(173) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示