- 后台添加小程序门店助手后,小程序内调用提示“当前小程序不在插件白名单中”
app.json plugins: { 'bb-plugin': { 'version': '2.0.3', 'provider': 'wx69b7451feb427f0e' } } <navigator url="plugin://bb-plugin/info-regist"> 打开插件 </navigator> [图片][图片]
09-19 - wx.openLocation打不开微信内置地图?也没有任何报错?
wx.checkJsApi返回success,就是没有跳转到内置地图,也没有任何抛错 wx.checkJsApi({ debug: true, appId: data.appId, timestamp: data.timestamp, nonceStr: data.nonceStr, signature: data.signature, jsApiList: ['openLocation'], fail () { Toast.error('设备不支持'); }, success: () => { const { name = '客户', address = '客户地址未知' } = this.store; Toast.success(`${longitude},${latitude},${name},${address}`) wx.openLocation({ latitude: +latitude, longitude: +longitude, name, address, scale: 16, infoUrl: '' }); } });
2021-04-25 - <wx-open-launch-weapp>点击无反应?
微信公众号的测试号内的网页进行调用小程序,点击什么反应都没有。公众号关联了小程序,js安全域名也配置了,小程序没有正式发布,wx.config是正常,不知道怎么回事 代码片段 <wx-open-launch-weapp id="launch-btn" @launch="handleLaunchFn" @error="handleErrorFn" username="gh_xxxxxxx" path="/pages/xxx/index.html"> <template> <button>打开小程序</button> </template> </wx-open-launch-weapp> handleLaunchFn (e) { alert(e) }, handleErrorFn(e){ alert('fail', e.detail); }, initWx () { wxConfig({url: location.href.split('#')[0]}).success(data => { wx.config({ debug: false, appId: data.appId, timestamp: data.timestamp, nonceStr: data.nonceStr, signature: data.signature, jsApiList: [ 'checkJsApi', 'onMenuShareAppMessage', 'onMenuShareQQ' ], openTagList: ['wx-open-launch-weapp'] }); wx.ready(() => { let btn = document.getElementById('launch-btn'); btn.addEventListener('launch', function (e) { }); btn.addEventListener('error', function (e) { console.log('fail', e.detail); }); }); wx.error(function (res) { console.log(res) }); }); }
2020-10-23