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