微信小程序内嵌h5页面,页面中不显示二维码,但是打开的链接中有二维码
wxml:
<web-view src="{{wxUrl}}"></web-view>
js:
data: {
wxConfigBindShopManager: {
redirectUrl: “http://saishangfang.com/front/wx/wxBindEpy.html”,
appID: “xxxxxxxxxxx”,
appSecret: “xxxxxxxxxxxx”,
href: “https://www.saishangfang.com/static/modules/front/bms/css/login.css”
},
wxUrl: ‘’,
},
/**
* 生命周期函数–监听页面加载
*/
onLoad: function (options) {
console.log(options.storeId)
var config = this.data.wxConfigBindShopManager;
var url = config.url + ‘?storeId=’ + options.storeId + “&href=” + config.href;
this.setData({
wxUrl: url
})
console.log(url)
},