您好,web-view怎么实现的分享
iphone web-view 分享无法获取当前地址在iphone 打开的 web-view 页面多次点击后分享的页面是第一次进入的地址 安卓正常 [代码]onShareAppMessage: [代码][代码]function[代码] [代码](options) {[代码][代码] [代码][代码]let that = [代码][代码]this[代码][代码] [代码][代码]console.log(options)[代码] [代码]//options 网站内打开链接,不是最新网站的地址[代码] [代码] [代码][代码]let return_url = encodeURIComponent(options.webViewUrl)[代码][代码] [代码][代码]let share_title = [代码][代码]'分享'[代码][代码] [代码][代码]let image_url = [代码][代码]''[代码][代码] [代码][代码]var[代码] [代码]paths = [代码][代码]'pages/sharepage/sharepage?sharesssUrl='[代码] [代码]+ return_url[代码][代码] [代码][代码]return[代码] [代码]{[代码][代码] [代码][代码]title: share_title,[代码][代码] [代码][代码]path: paths,[代码][代码] [代码][代码]imageUrl: image_url,[代码][代码] [代码][代码]success: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]// 转发成功[代码][代码] [代码][代码]wx.showToast({[代码][代码] [代码][代码]title: [代码][代码]"转发成功"[代码][代码],[代码][代码] [代码][代码]icon: [代码][代码]'success'[代码][代码],[代码][代码] [代码][代码]duration: 2000[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码][代码] [代码][代码]fail: [代码][代码]function[代码] [代码](res) {[代码][代码] [代码][代码]// 转发失败[代码][代码] [代码][代码]}[代码][代码] [代码][代码]}[代码][代码] [代码][代码]},[代码]
2019-01-02