小程序
wflynn
研究代码中...将随缘更新
展开
-
微信小程序发布新版本提示用户更新代码封装
代码已上传至githubgithub代码地址:https://github.com/Miofly/mio.gitApp.vueonLaunch () { this.autoUpdate()},method: { autoUpdate: function () { // 自动更新 var self = this // 获取小程序更新机制兼容 if (wx.canIUse('getUpdateManager')) { const upd原创 2020-05-10 16:11:53 · 637 阅读 · 0 评论 -
微信小程序设置全局分享
代码已上传至githubgithub代码地址:https://github.com/Miofly/mio.gitApp.vueonShow () { // #ifdef MP-WEIXIN this.share() // #endif console.log('onShow:应用页面显示')},method: { share: function () { // 全局分享 wx.onAppRoute(res => { .原创 2020-05-10 16:13:44 · 1566 阅读 · 1 评论