wx.showShareImageMenu 模拟器正常,真机卡主不动?
真机调用 调试界面一直显示 等待同步 API measureText 调用 [图片] 基础库版本 2.22.0 let _this = this; wx.getImageInfo({ src: _this.data.shareUrl, success: function(res){ console.log(res.path); // "http://tmp/tafq4TVlYAZs5b26f19777f34213cbc9715761191ab5.png" if(res.errMsg === 'getImageInfo:ok'){ wx.downloadFile({ url: res.path, success: (res) => { wx.hideLoading({ success: (res) => {}, }) const version = wx.getSystemInfoSync().SDKVersion; if (app.compareVersion(version, '2.16.0') >= 0) { console.log('showShareImageMenu---,真机卡到这里 一直不动'); wx.showShareImageMenu({ path: res.tempFilePath, complete:function() { } }) } else { wx.showModal({ title: '提示', content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。' }) } } }) } }, complete: function(res) { if(res.errMsg != 'getImageInfo:ok'){ wx.showToast({ title: '生成图片失败,请分享', }) } } })