|
|
@@ -112,6 +112,10 @@ export function weixindata(config) {
|
|
|
data
|
|
|
}) => {
|
|
|
shareData = data.data
|
|
|
+ // uni.showModal({
|
|
|
+ // title: 'shareData',
|
|
|
+ // content: JSON.justifySelf(shareData)
|
|
|
+ // })
|
|
|
shareLoad(config)
|
|
|
});
|
|
|
} else {
|
|
|
@@ -140,6 +144,10 @@ function shareLoad(config) {
|
|
|
} else {
|
|
|
// console.log(window.location.href, 55)
|
|
|
// let url = window.location.href + '?spread=' + store.state.userInfo.uid;
|
|
|
+ // uni.showModal({
|
|
|
+ // title: '确认',
|
|
|
+ // content: '确认分享'
|
|
|
+ // })
|
|
|
let url = window.location.href;
|
|
|
url = url.replace(/[\?,&]{0,1}from=singlemessage/g, '');
|
|
|
mess = {
|
|
|
@@ -156,11 +164,11 @@ function shareLoad(config) {
|
|
|
}
|
|
|
// 获取仓库数据
|
|
|
// 分享好友
|
|
|
- // weixinObj.updateAppMessageShareData(mess);
|
|
|
- weixinObj.onMenuShareAppMessage(mess);// 即将废弃
|
|
|
+ weixinObj.updateAppMessageShareData(mess);
|
|
|
+ // weixinObj.onMenuShareAppMessage(mess);// 即将废弃
|
|
|
// 分享朋友圈
|
|
|
- // weixinObj.updateTimelineShareData(mess)
|
|
|
- weixinObj.onMenuShareTimeline(mess);// 即将废弃
|
|
|
+ weixinObj.updateTimelineShareData(mess)
|
|
|
+ // weixinObj.onMenuShareTimeline(mess);// 即将废弃
|
|
|
}
|
|
|
|
|
|
// 隐藏功能按钮
|