Commit 4efd9f3d by yuzhenWang

合并分支1

parents fac6a46a 390791bf
...@@ -351,6 +351,11 @@ ...@@ -351,6 +351,11 @@
api.obtainToken().then(res=>{ api.obtainToken().then(res=>{
if(res.success){ if(res.success){
uni.setStorageSync('uni-token',res.data['token']); uni.setStorageSync('uni-token',res.data['token']);
// #ifdef H5
initJssdkShare(() => {
setWechatShare();
}, window.location.href);
// #endif
} }
}) })
} }
...@@ -360,11 +365,7 @@ ...@@ -360,11 +365,7 @@
}, },
onShow() { onShow() {
this.checkToken(); this.checkToken();
// #ifdef H5
initJssdkShare(() => {
setWechatShare();
}, window.location.href);
// #endif
}, },
destroyed() { destroyed() {
uni.hideToast(); uni.hideToast();
......
...@@ -352,13 +352,13 @@ ...@@ -352,13 +352,13 @@
'邀请加盟', '邀请加盟',
'pages/inviteJoin/inviteJoin' 'pages/inviteJoin/inviteJoin'
) )
setTimeout(()=>{ // setTimeout(()=>{
// #ifdef H5 // // #ifdef H5
initJssdkShare(() => { // initJssdkShare(() => {
setWechatShare(); // setWechatShare();
}, window.location.href); // }, window.location.href);
// #endif // // #endif
},500) // },500)
}, },
closeShare() { closeShare() {
......
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