提交 9b409867 编写于 作者: chengxiang.li's avatar chengxiang.li

活动主页面分享逻辑更新

上级 441e29fc
...@@ -356,10 +356,10 @@ ...@@ -356,10 +356,10 @@
vm = this; vm = this;
}, },
mounted() { mounted() {
// 这里需要删掉!!! // // 这里需要删掉!!!
vm.getUserActivityInfo(); // vm.getUserActivityInfo();
vm.getTasks(); // vm.getTasks();
// 这里需要删掉!!! // // 这里需要删掉!!!
vm.isWeb = vm.$rocNative.isWeb; vm.isWeb = vm.$rocNative.isWeb;
// vm.shareObj.shareUrl = `${getShareUrl()}year_end_ssr/shareActive?id=${vm.encryptId}&taskId=${vm.eachInviteAward.taskId}&activityId=${vm.eachInviteAward.activityId}` // vm.shareObj.shareUrl = `${getShareUrl()}year_end_ssr/shareActive?id=${vm.encryptId}&taskId=${vm.eachInviteAward.taskId}&activityId=${vm.eachInviteAward.activityId}`
...@@ -636,7 +636,7 @@ ...@@ -636,7 +636,7 @@
}); });
}, },
handleLoginCheck(cb) { handleLoginCheck(cb) {
vm.shareObj.shareUrl = shareWxUrl(); vm.shareObj.shareUrl = vm.shareWxUrl();
if( !this.isLogin ){ // 未登录 >>> 去登录 if( !this.isLogin ){ // 未登录 >>> 去登录
this.goToLogin(); this.goToLogin();
}else if( this.isLogin && !this.isJoin ){ // 已登录 && 未加入机构 >>>> 去加入机构 }else if( this.isLogin && !this.isJoin ){ // 已登录 && 未加入机构 >>>> 去加入机构
...@@ -738,7 +738,7 @@ ...@@ -738,7 +738,7 @@
}, },
// 去邀请 按钮 // 去邀请 按钮
handleInviteClick() { handleInviteClick() {
vm.shareObj.shareUrl = shareWxUrl(); vm.shareObj.shareUrl = vm.shareWxUrl();
let cb = this.goToShare; let cb = this.goToShare;
this.handleLoginCheck(cb); this.handleLoginCheck(cb);
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册