onLoad: function (options) { var url = decodeURIComponent(options.url); this.setData({ web_src: url, }); }, |
wxml:
<web-view src="{{web_src}}" bindmessage="bindGetMsg"></web-view> |
bindGetMsg: function (e) { var that = this that.setData({ title: e.detail.data[0].tit, imageUrl: e.detail.data[0].thumb, web_src: e.detail.data[0].url, share_path: 'pages/wedding/wedding?url=' + encodeURIComponent(e.detail.data[0].url) }); }, |
转发出去打开空白 是什么问题呢?

用了encodeURIComponent转发后的url有问题,试下去掉encodeURIComponent,或者
varurl = decodeURIComponent(options.url);要decode2次,转发时候好像会被微信再encode一次看看转发后的 wxml 面板上是不是你要的页面咯。
文本输出 显示的网址是对的
你好,web-view链接的网页需要添加域名配置的
网页的域名都已经添加到业务域名里面了
有没有解决啊 ?