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

邀请分享文案修改

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