获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
[图片] h5内调用是报这个错误信息
微信小店场景怎么在web-view内的h5中调用wx.openBusinessView?这段代码在小程序原生是支持的,在web-view内套壳我看是有对应方法,但是调用报没有权限的错误,所以为了用户更好的体验,想知道怎么能在h5内调通wx.openBusinessView 这个方法。 wx.openBusinessView({ businessType: 'shopConsumeVoucher', extraData: { encrypted_codes: ['xxx'], consume_request_no: 'xxx' }, success(res) { console.log('res', res) }, fail(err) { console.log('err', err) }, complete() { // wx.showToast({ // title: 'complete', // }) } });
02-07