小程序 web-view 转发后打开空白
[代码]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)[代码][代码] [代码][代码]});[代码][代码] [代码][代码]},[代码] 转发出去打开空白 是什么问题呢?