提交 56e84859 编写于 作者: huangwensu's avatar huangwensu

绑定居民微信分享添加任务id参数

上级 34d8a02a
...@@ -169,7 +169,7 @@ export default { ...@@ -169,7 +169,7 @@ export default {
// this.taskList.splice(i,1); // this.taskList.splice(i,1);
// } // }
if(this.taskList[i].resourceType == 11 && this.taskList[i].resourceId == 1) { if(this.taskList[i].resourceType == 11 && this.taskList[i].resourceId == 1) {
this.$emit('getTaskId',{taskId: this.taskList[i].id, isFinish: this.taskList[i].isFinish}); this.$emit('getTaskId',{taskId: this.taskList[i].id});
} }
if(this.taskList[i].resourceType == 10) { if(this.taskList[i].resourceType == 10) {
let score = JSON.parse(this.taskList[i].rewardJsonInfo)[0].rewardQuantity; let score = JSON.parse(this.taskList[i].rewardJsonInfo)[0].rewardQuantity;
......
...@@ -300,12 +300,10 @@ export default { ...@@ -300,12 +300,10 @@ export default {
}; };
this.$router.push({path: "/perdetails",query: queryData}); this.$router.push({path: "/perdetails",query: queryData});
}, },
// 获取任务id // 获取点赞任务id
getTaskId(data) { getTaskId(data) {
this.taskId = data.taskId; this.taskId = data.taskId;
if(!data.isFinish) { this.inviteFirstEnter();
this.inviteFirstEnter();
}
}, },
// 点赞后进入活动主页 // 点赞后进入活动主页
inviteFirstEnter() { inviteFirstEnter() {
...@@ -317,8 +315,8 @@ export default { ...@@ -317,8 +315,8 @@ export default {
const { NUXT_ENV_APP } = process.env; const { NUXT_ENV_APP } = process.env;
if(data.resourceType == 11) { // 邀请好友点赞 if(data.resourceType == 11) { // 邀请好友点赞
const { activityId, token, encryptId, userName, myAvatarl, shareTitle1, shareTitle2, shareIconUrl } = this; const { activityId, token, encryptId, userName, myAvatarl, shareTitle1, shareTitle2, shareIconUrl } = this;
//shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + `/compaign_ssr/login-point?activityId=${tempId}&taskId=${data.id}&id=${encryptId}&name=${userName}&avatar=${myAvatarl}`; shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + `/compaign_ssr/login-point?activityId=${activityId}&taskId=${data.id}&id=${encryptId}&name=${userName}&avatar=${myAvatarl}`;
shareUrl = `http://10.177.10.217:3000/compaign_ssr/login-point?activityId=${activityId}&taskId=${data.id}&id=${encryptId}&name=${userName}&avatar=${myAvatarl}`; //shareUrl = `http://10.177.10.217:3000/compaign_ssr/login-point?activityId=${activityId}&taskId=${data.id}&id=${encryptId}&name=${userName}&avatar=${myAvatarl}`;
this.$rocNative.shareWechat({ this.$rocNative.shareWechat({
type: 6, type: 6,
shareId: 0, shareId: 0,
...@@ -330,7 +328,7 @@ export default { ...@@ -330,7 +328,7 @@ export default {
}else if(data.resourceType == 9) { // 绑定居民微信 }else if(data.resourceType == 9) { // 绑定居民微信
const { userId, origin, activityId, shareTitle3, shareTitle4, shareIconUrl } = this; const { userId, origin, activityId, shareTitle3, shareTitle4, shareIconUrl } = this;
let doctorId = Base64.encode(userId); let doctorId = Base64.encode(userId);
shareUrl = `${ENV_CONFIG[NUXT_ENV_APP]['shareUrl']}/active_news/activity/qrcode?doctorId=${doctorId}&origin=${origin}&activityId=${activityId}`; shareUrl = `${ENV_CONFIG[NUXT_ENV_APP]['shareUrl']}/active_news/activity/qrcode?doctorId=${doctorId}&origin=${origin}&activityId=${activityId}&taskId=${data.id}`;
this.$rocNative.shareWechat({ this.$rocNative.shareWechat({
type: 6, type: 6,
shareId: 0, shareId: 0,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册