提交 0a72bc63 编写于 作者: huangwensu's avatar huangwensu

点赞结果文案修改

上级 bfc3ff37
...@@ -106,6 +106,7 @@ import { ...@@ -106,6 +106,7 @@ import {
getSelfAllScore, getSelfAllScore,
checkFirstEnter, checkFirstEnter,
getActivityTime, getActivityTime,
inviteFirstEnter,
getCarveStatus } from "@/service"; getCarveStatus } from "@/service";
import { setEventByModuleCode } from "@/utils" import { setEventByModuleCode } from "@/utils"
import { ENV_CONFIG } from '@/utils/enumerate'; import { ENV_CONFIG } from '@/utils/enumerate';
...@@ -182,8 +183,15 @@ export default { ...@@ -182,8 +183,15 @@ export default {
_this.getUserInfo(); _this.getUserInfo();
}; };
_this.getActivityTime(); _this.getActivityTime();
_this.inviteFirstEnter();
}, },
methods: { methods: {
// 首次邀请进入
inviteFirstEnter() {
// inviteFirstEnter({taskId: this.taskId,activityId: this.activityId}).then(res => {
// })
},
// 获取服务器当前时间 // 获取服务器当前时间
getActivityTime() { getActivityTime() {
getActivityTime().then(res => { getActivityTime().then(res => {
......
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</div> </div>
</template> </template>
<script> <script>
import { getCaptchaGet, getAuthCode } from '@/service'; import { getCaptchaGet, getAuthCode, pointResult } from '@/service';
const TIMEALL = 60000; // 倒计时常量 60 秒 const TIMEALL = 60000; // 倒计时常量 60 秒
export default { export default {
data() { data() {
...@@ -111,8 +111,24 @@ export default { ...@@ -111,8 +111,24 @@ export default {
this.notSend = true; this.notSend = true;
this.btnMsg = '重新获取'; this.btnMsg = '重新获取';
}, },
// 点赞登录
gotoPoint() { gotoPoint() {
this.$router.push({path: "/login-point/point-result",query: {}}); let param = {
mobile: this.mobilePhone,
authCode: this.authCode,
id: this.userId,
taskId: this.taskId,
activityId: this.activityId
}
pointResult(param).then(res => {
if(res.code == '000000') {
if(res.data.code == '900001') {
this.$toast('不能给自己点赞哦');
}else {
this.$router.push({path: "/login-point/point-result",query: {code: res.data.code}});
}
}
})
} }
} }
} }
......
<template> <template>
<section class="point-container"> <section class="point-container">
<div :class="{'point-bg': (status != 3)}"> <div class="point-bg">
<div class="point-status"> <div class="point-status">
<img v-if="status == 1 || status == 2" src="../../static/images/point-success-nobg.png" /> <img v-if="status == 1 || status == 3" src="../../static/images/point-success.png" />
<img v-if="status == 3" src="../../static/images/point-success.png" /> <img v-if="status == 2" src="../../static/images/point-fail.png" />
<img v-if="status == 4" src="../../static/images/point-fail.png" />
</div> </div>
<div class="status-text"> <div class="status-text">
<p :class="{'fw': status != 3}">{{pointText1}}</p> <p class="fw">{{pointText1}}</p>
<p :class="{'fw': status != 3}">{{pointText2}}</p> <p class="fw">{{pointText2}}</p>
</div> </div>
<div class="point-award"> <div class="point-award">
<div v-if="status != 3" class="award-con"> <div v-if="status != 3" class="award-con">
<!-- <div>达到100勤奋分,即有资格瓜分100W云鹊豆</div> -->
<img src="../../static/images/point-award-new.png" /> <img src="../../static/images/point-award-new.png" />
</div> </div>
</div> </div>
...@@ -25,45 +23,49 @@ ...@@ -25,45 +23,49 @@
</template> </template>
<script> <script>
export default { export default {
props: {
status: {
type: String | Number,
default: 1
}
},
data() { data() {
return { return {
pointText1: "", pointText1: "",
pointText2: "", pointText2: "",
btnText: "" btnText: "",
code: '',
status: 1
} }
}, },
created() { created() {
if(this.status == 1) { this.code = this.$route.query.code;
this.pointText1 = "点赞成功,感谢您为TA拿下5勤奋分"; if(this.code == '900002'){
this.status = 1;
this.pointText1 = "点赞成功";
this.pointText2 = "登陆云鹊医APP,您也可获得75勤奋分"; this.pointText2 = "登陆云鹊医APP,您也可获得75勤奋分";
this.btnText = "打开APP参与瓜分云鹊豆"; this.btnText = "打开APP参与瓜分云鹊豆";
}else if(this.status == 2) { }else if(this.code == '900003') {
this.status = 1;
this.pointText1 = "点赞成功"; this.pointText1 = "点赞成功";
this.pointText2 = "登陆云鹊医APP,参加活动瓜分云鹊豆"; this.pointText2 = "登陆云鹊医APP,参加活动瓜分云鹊豆";
this.btnText = "打开APP参与瓜分云鹊豆"; this.btnText = "打开APP参与瓜分云鹊豆";
}else if(this.status == 3) { }else if(this.code == '900004') {
this.pointText1 = "该活动已结束"; this.status = 1;
this.pointText2 = "登陆云鹊医APP,查看更多精彩内容"; this.pointText1 = "点赞成功,感谢您为TA拿下5勤奋分";
this.btnText = "打开APP";
}else if(this.status = 4) {
this.pointText1 = "抱歉!您的点赞次数已达3次上限!";
this.pointText2 = "登陆云鹊医APP,您也可获得75勤奋分"; this.pointText2 = "登陆云鹊医APP,您也可获得75勤奋分";
this.btnText = "打开APP参与瓜分云鹊豆"; this.btnText = "打开APP参与瓜分云鹊豆";
}else if(this.status == 5){ }else if(this.code = '900005') {
this.pointText1 = "点赞成功"; this.status = 2;
this.pointText1 = "抱歉!您的点赞次数已达3次上限!";
this.pointText2 = "登陆云鹊医APP,您也可获得75勤奋分"; this.pointText2 = "登陆云鹊医APP,您也可获得75勤奋分";
this.btnText = "打开APP参与瓜分云鹊豆"; this.btnText = "打开APP参与瓜分云鹊豆";
}else if(this.status == 6) { }else if(this.code == '900006') {
this.status = 3;
this.pointText1 = "该活动已结束";
this.pointText2 = "登陆云鹊医APP,查看更多精彩内容";
this.btnText = "打开APP";
}else if(this.code == '900007') {
this.status = 2;
this.pointText1 = "抱歉!您的点赞次数已达3次上限!"; this.pointText1 = "抱歉!您的点赞次数已达3次上限!";
this.pointText2 = "登陆云鹊医APP,参加活动瓜分云鹊豆"; this.pointText2 = "登陆云鹊医APP,参加活动瓜分云鹊豆";
this.btnText = "打开APP参与瓜分云鹊豆"; this.btnText = "打开APP参与瓜分云鹊豆";
}else { }else {
this.status = 1;
this.pointText1 = "点赞成功"; this.pointText1 = "点赞成功";
this.pointText2 = "登陆云鹊医APP,参加活动瓜分云鹊豆"; this.pointText2 = "登陆云鹊医APP,参加活动瓜分云鹊豆";
this.btnText = "打开APP参与瓜分云鹊豆"; this.btnText = "打开APP参与瓜分云鹊豆";
......
...@@ -119,4 +119,14 @@ export const getCarveStatus = ( data ) => { ...@@ -119,4 +119,14 @@ export const getCarveStatus = ( data ) => {
data: data, data: data,
withCredentials: true withCredentials: true
}) })
}
// 登录点赞
export const pointResult = ( data ) => {
}
// 第一次邀请进入
export const inviteFirstEnter = () => {
} }
\ No newline at end of file
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册