web-view组件提示 invalid url domain
业务域名配置如下
小程序端代码
网页代码
编译运行结果
开发工具绑定的appid和业务域名的appid是同一个小程序
这是什么原因
业务域名配置如下
小程序端代码
网页代码
编译运行结果
开发工具绑定的appid和业务域名的appid是同一个小程序
这是什么原因
@六一 ,我用JSSDK1.3.2在webview的JS调起scanQRCode时提示config:fail的错误,签名是正常的。代码片段如下
......wx.config({ debug: true, appId: "'" + data.appId + "'", // data.appId 从接口获取 timestamp: data.timestamp, // data.timestamp 从接口获取 nonceStr: "'" + data.nonceStr + "'", // data.nonceStr 从接口获取 signature: "'" + data.signature + "'", // data.signature 从接口获取 jsApiList: [ // 必填,需要使用的JS接口列表 'checkJSApi', 'scanQRCode' ]});wx.ready(function() { wx.checkJsApi({ jsApiList: [ 'scanQRCode' ], success: function (res) { alert(JSON.stringify(res)); } }); wx.scanQRCode({ needResult: 1, // 0扫描结果由微信处理,1则直接返回扫描结果,默认为0 desc: '微信扫码', success: function (res) { layer.close(i); alert(JSON.stringify(res)); } });});wx.error(function (res) { alert(JSON.stringify(res));});...... |