07 2021 档案
摘要:const accountInfo = wx.getAccountInfoSync(); console.log(accountInfo.miniProgram.version) // 插件版本号, 'a.b.c' 这样的形式
阅读全文
摘要:vue3.0的出现这个问题,2.0版本的就可以解决
阅读全文
摘要:参考:https://blog.csdn.net/wxl1555/article/details/83187647 可实现: main。js new Vue({ router, store, render: h => h(App) }).$mount("#app")
阅读全文
摘要:参考https://blog.csdn.net/qq_35510173/article/details/106399577 在点击跳转的地方 wx.navigateToMiniProgram({ appId: 'wxece3a9a4c82f58c9', path: e.currentTarget.d
阅读全文
摘要:参考:https://www.cnblogs.com/luoshida/p/13434197.html 右上角胶囊的信息,包含width、height、top等 let rect= wx.getMenuButtonBoundingClientRect(); 机型信息 let info=wx.getS
阅读全文
摘要:参考:https://blog.csdn.net/hao_m582/article/details/84108041 解决方法:在 gridDelegate中添加宽高比就可以 //宽高比 childAspectRatio: 2 / 3,
阅读全文
摘要:注意:安卓支持分享好友和朋友圈,ios不支持分享朋友圈 在需要分享的页面js的onLoad中 wx.showShareMenu({ menus: ['shareAppMessage', 'shareTimeline'] // 分享好友、朋友圈 }) /** * 用户点击右上角分享 */ onShar
阅读全文
摘要:参考:https://blog.csdn.net/qq_29483485/article/details/105421098 <view class="savecode" bindtap='saveToPhone'> 保存二维码 </view> // 保存图片 saveToPhone(e){ //
阅读全文
摘要:1.下拉刷新 在需要的页面: json: "enablePullDownRefresh": true,"backgroundTextStyle": "dark", // 刷新的点的颜色 js: /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: func
阅读全文