微信内嵌h5页面?

发布于 8 年前作者 itang570 次浏览最后编辑 8 年前来自 issues

微信小程序内嵌h5页面,页面中不显示二维码,但是打开的链接中有二维码

wxml:

<web-view src=“{{wxUrl}}”></web-view>

js:

data: {

wxConfigBindShopManager: {

url: https://open.weixin.qq.com/connect/qrconnect?appid=xxxxxx&amp;state=bind&amp;response\_type=code&amp;scope=snsapi\_login&amp;redirect\_uri=http%3A%2F%2Fsaishangfang.com%2Ffront%2Fwx%2FwxBindEpy.html,

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)

},

3 回复
zluo
zluo1 楼6 年前

麻烦提供能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

leixiang
leixiang2 楼6 年前

一个二维码,扫描二维码绑定店员

xiuyingsun
xiuyingsun3 楼6 年前

你内嵌这个页面是要做什么?