目前我用的机型都不行 安卓:微信版本8.0.9 系统:安卓10,手机型号vivo nexs ios:iphonex 系统版本13.1.2 微信版本8.0.10
微信开放标签,微信h5跳转App,wx-open-launch-app,标签不显示,无法调起app?[图片] [图片] [图片] 执行了wx.ready后,弹出的 按钮在安卓ios上都不显示,并且无法弹出,即将理开微信,打开xxxapp,无法调起app <template> <wx-open-launch-app id="launch-btn" appid="" extinfo=""> <script type="text/wxtag-template"> <style>.btn { padding: 12px; color: #f00; }</style> <button class="btn">App内查看</button> </script> </wx-open-launch-app> </template> mounted () {this.getSign()}, methods: { getSign () { getSignature({ currentUrl: encodeURIComponent(isUrl) }).then(res => { this.signInfo = res this.laodInfo(res) }).catch(err => { console.log(err) }) }, laodInfo (res) { wx.config({ debug: true, appId: res.appId, timestamp: res.timestamp, nonceStr: res.nonceStr, signature: res.signature, jsApiList: [ 'checkJsApi', 'onMenuShareTimeline', 'onMenuShareAppMessage' ], openTagList: ['wx-open-launch-app'] }) wx.ready(function () { console.log('ready') wx.checkJsApi({ jsApiList: ['wx-open-launch-app'], success: function (res) { Toast(JSON.stringify(res) + '111111111') const btn = document.getElementById('launch-btn') console.log(btn, 'oooo') btn.addEventListener('launch', function (e) { Toast('success') }) btn.addEventListener('error', function (e) { Toast(JSON.stringify(e) + '2222222222') }) btn.addEventListener('WeixinOpenTagsError', function (e) { console.error(e.detail.errMsg) Toast(JSON.stringify(e) + '3333333333') }) }, fail: () => { Toast(222) } }) }) wx.error(function (err) { Toast(333) Toast(JSON.stringify(err) + '444444444') }) } }
2021-08-19