提交 549a95bb 编写于 作者: huangwensu's avatar huangwensu

邀请分享文案修改

上级 788ff144
......@@ -62,7 +62,7 @@ export default {
type: String | Number,
default: ''
},
userId: {
encryptId: {
type: String | Number,
default: ''
},
......@@ -102,15 +102,9 @@ export default {
share() {
let shareUrl = '';
const { NUXT_ENV_APP } = process.env;
const { tempId, taskId, userName, userId, avatarl, token, shareTitle1, shareTitle2, shareIconUrl } = this;
//shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + '/compaign_ssr/?id=' + tempId + '&token=' + token;
shareUrl = `http://10.177.10.217:3000/compaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${userId}&name=${userName}&avatar=${avatarl}`;
// const { id } = this.$route.query;
// this.$sendBuriedData({
// class_name: '',
// component_tag: `200#400089#${id}#${shareTitle1}`
// });
const { tempId, taskId, userName, encryptId, avatarl, token, shareTitle1, shareTitle2, shareIconUrl } = this;
//shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + `/compaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${userId}&name=${userName}&avatar=${avatarl}`;
shareUrl = `http://10.177.10.217:3000/compaign_ssr/login-point?activityId=${tempId}&taskId=${taskId}&id=${encryptId}&name=${userName}&avatar=${avatarl}`;
this.$rocNative.shareWechat({
type: 6,
shareId: 0,
......
......@@ -169,7 +169,7 @@ export default {
// this.taskList.splice(i,1);
// }
if(this.taskList[i].resourceType == 11 && this.taskList[i].resourceId == 1) {
this.$emit('getTaskId',{taskId: this.taskList[i].id});
this.$emit('getTaskId',{taskId: this.taskList[i].id, isFinish: this.taskList[i].isFinish});
}
if(this.taskList[i].resourceType == 10) {
let score = JSON.parse(this.taskList[i].rewardJsonInfo)[0].rewardQuantity;
......
......@@ -10,7 +10,7 @@
:isShowRightIcon="isShowRightIcon"
:tempId="activityId"
:userName="userName"
:userId="userId"
:encryptId="encryptId"
:avatarl="myAvatarl"
:taskId="taskId"
/>
......@@ -107,7 +107,8 @@ import {
checkToken,
selectAppModuleParam,
getSelfAllScore,
checkFirstEnter,
checkFirstEnter,
getEncryptId,
getActivityTime,
inviteFirstEnter,
getCarveStatus,
......@@ -137,10 +138,10 @@ export default {
activityId: 0,
token: '',
shareTitle1: '',
shareTitle2: '',
shareTitle2: '做任务瓜分500W云鹊豆,点一下你也能获得75分哦',
shareTitle3: '',
shareTitle4: '',
shareIconUrl: '',
shareIconUrl: 'https://file.yunqueyi.com/h5/images/commons/share_hd1.png',
isScroll: false,
imgSrc1: require('@/static/images/score.png'),
numText1: 1,
......@@ -190,19 +191,12 @@ export default {
_this.getUserInfo();
};
_this.getActivityTime();
_this.inviteFirstEnter();
_this.$sendBuriedData({
action: '查看量',
component_tag: '360#360000'
});
},
methods: {
// 点赞后进入活动主页
inviteFirstEnter() {
inviteFirstEnter({taskId: this.taskId,activityId: this.activityId}).then(res => {
})
},
// 获取服务器当前时间
getActivityTime() {
getActivityTime().then(res => {
......@@ -258,7 +252,7 @@ export default {
// 获取加密后的doctorId
getEncryptId() {
getEncryptId().then(res => {
if( res && res.code && res.code == '000000' ){
if( res.code == '000000' ){
this.encryptId = res.data;
}
})
......@@ -269,9 +263,10 @@ export default {
getSelfAllScore({ id: this.activityId, token: this.token }).then(res => {
if(res.code == '000000') {
_this.myAvatarl = res.data.avatarImageUrl;
_this.myScore = res.data.totalScore;
_this.myScore = res.data.totalScore;
_this.userId = res.data.id;
_this.userName = res.data.name;
_this.shareTitle1 = `${_this.userName}医生邀请您为他助力`;
}
})
},
......@@ -308,15 +303,22 @@ export default {
// 获取任务id
getTaskId(data) {
this.taskId = data.taskId;
if(!data.isFinish) {
this.inviteFirstEnter();
}
},
// 点赞后进入活动主页
inviteFirstEnter() {
inviteFirstEnter({taskId: this.taskId, activityId: this.activityId}).then(res => {});
},
// 活动任务
activityTaskJump(data) {
let shareUrl = '';
const { NUXT_ENV_APP } = process.env;
if(data.resourceType == 11) { // 邀请好友点赞
const { tempId, token, encryptId, userName, myAvatarl, shareTitle1, shareTitle2, shareIconUrl } = this;
//shareUrl = ENV_CONFIG[NUXT_ENV_APP]['shareUrl'] + '/compaign_ssr/?id=' + tempId + '&token=' + token;
shareUrl = `http://10.177.10.217:3000/compaign_ssr/login-point?activityId=${tempId}&taskId=${data.id}&id=${encryptId}&name=${userName}&avatar=${myAvatarl}`;
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 = `http://10.177.10.217:3000/compaign_ssr/login-point?activityId=${activityId}&taskId=${data.id}&id=${encryptId}&name=${userName}&avatar=${myAvatarl}`;
this.$rocNative.shareWechat({
type: 6,
shareId: 0,
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册