Commit a75fc020 authored by zhangyanni's avatar zhangyanni

测试小程序分享

parent 983b9d08
......@@ -344,9 +344,9 @@
title: "您的好友邀请您参与"+that.detailInfo.channelTitle,
desc: that.detailInfo.channelTitle
};
wx.miniProgram.navigateTo({
url: '../empty/empty?data='+JSON.stringify(data)
});
// wx.miniProgram.navigateTo({
// url: '../empty/empty?data='+JSON.stringify(data)
// });
// wx.miniProgram.navigateTo({
//
// url: '/pages/empty/empty',
......@@ -354,13 +354,13 @@
// fail: function (err) { alert(JSON.stringify(err)) }
//
// })
// wx.miniProgram.postMessage({
// data: {
// title: "您的好友邀请您参与"+that.detailInfo.channelTitle,
// desc: that.detailInfo.channelTitle,
// path: '/pages/sharepage/sharepage?shareUrl=' + JSON.stringfy({url: encodeURIComponent(document.location.href)}) //重点,share.js是小程序的页面中,从分享进入的h5的落地页
// }
// });
wx.miniProgram.postMessage({
data: {
title: "您的好友邀请您参与"+that.detailInfo.channelTitle,
desc: that.detailInfo.channelTitle,
path: '/pages/sharepage/sharepage?shareUrl=' + JSON.stringfy({url: encodeURIComponent(document.location.href)}) //重点,share.js是小程序的页面中,从分享进入的h5的落地页
}
});
}else{
this.dialogVisible = true;
this.popupVisible = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment