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

点赞结果文案修改

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