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

任务显示修改

上级 3455ac61
...@@ -23,14 +23,21 @@ ...@@ -23,14 +23,21 @@
{{handleData(item.rewardJsonInfo)[0].rewardQuantity}}元现金红包/人 {{handleData(item.rewardJsonInfo)[0].rewardQuantity}}元现金红包/人
</div> </div>
<div class="task-b" v-if="handleData(item.rewardJsonInfo)[0].rewardType == 3"> <div class="task-b" v-if="handleData(item.rewardJsonInfo)[0].rewardType == 3">
<span class="score">+{{handleData(item.rewardJsonInfo)[0].rewardQuantity}}</span><span v-if="item.resourceType == 11 || item.resourceType == 8 || item.resourceType == 9">勤奋分/人</span><span v-if="item.resourceType == 1">勤奋分/门</span><span v-if="item.resourceType == 4">勤奋分/份</span> <span class="score">+{{handleData(item.rewardJsonInfo)[0].rewardQuantity}}</span>
<span v-if="item.resourceType == 11 || item.resourceType == 9">勤奋分/人</span>
<span v-if="item.resourceType == 8 && item.taskFrequency == 1">勤奋分 {{item.doctorFinishFrequency}}/{{item.finishFrequency}}</span>
<span v-if="item.resourceType == 8 && item.taskFrequency == 2">勤奋分 {{item.nowCumulativeFrequency}}/{{item.cumulativeFrequency}}</span>
<span v-if="item.resourceType == 1 && item.taskFrequency == 1">勤奋分 {{item.doctorFinishFrequency}}/{{item.finishFrequency}}</span>
<span v-if="item.resourceType == 1 && item.taskFrequency == 2">勤奋分 {{item.nowCumulativeFrequency}}/{{item.cumulativeFrequency}}</span>
<span v-if="item.resourceType == 4 && item.taskFrequency == 1">勤奋分 {{item.doctorFinishFrequency}}/{{item.finishFrequency}}</span>
<span v-if="item.resourceType == 4 && item.taskFrequency == 2">勤奋分 {{item.nowCumulativeFrequency}}/{{item.cumulativeFrequency}}</span>
</div> </div>
<div class="task-b" v-if="handleData(item.rewardJsonInfo)[0].rewardType == 4"> <div class="task-b" v-if="handleData(item.rewardJsonInfo)[0].rewardType == 4">
{{handleData(item.rewardJsonInfo)[0].rewardQuantity}}条短信额度/人 {{handleData(item.rewardJsonInfo)[0].rewardQuantity}}条短信额度/人
</div> </div>
<span class='has-bg' v-if="item.resourceType == 1 && !item.isFinish">去学习</span> <span class='has-bg' v-if="item.resourceType == 1 && !item.isFinish">去学习</span>
<span class='has-bg' v-if="(item.resourceType == 1 || item.resourceType == 8) && item.isFinish">已完成</span> <span class='has-bg finish' v-if="(item.resourceType == 1 || item.resourceType == 8) && item.isFinish">已完成</span>
<span class='has-bg' v-if="item.resourceType == 4">去参加</span> <span class='has-bg' v-if="item.resourceType == 4">去参加</span>
<span class='has-bg' v-if="item.resourceType == 11 || (item.resourceType == 8 && !item.isFinish)">去邀请</span> <span class='has-bg' v-if="item.resourceType == 11 || (item.resourceType == 8 && !item.isFinish)">去邀请</span>
<span class='has-bg' v-if="item.resourceType == 9">去绑定</span> <span class='has-bg' v-if="item.resourceType == 9">去绑定</span>
...@@ -243,6 +250,10 @@ export default { ...@@ -243,6 +250,10 @@ export default {
background:linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%); background:linear-gradient(270deg,rgba(255,88,36,1) 0%,rgba(254,163,86,1) 100%);
border-radius:35px; border-radius:35px;
} }
span.finish {
color: #F68367;
background: rgba(253,234,228,1);
}
.task-b { .task-b {
text-align: center; text-align: center;
font-size: 12px; font-size: 12px;
......
...@@ -166,6 +166,10 @@ export default { ...@@ -166,6 +166,10 @@ export default {
}, },
// 点赞登录 // 点赞登录
gotoPoint() { gotoPoint() {
if(!this.mobilePhone) {
this.$toast('请填写手机号码');
return;
}
this.loadingFlag = true; this.loadingFlag = true;
let param = { let param = {
mobile: this.mobilePhone, mobile: this.mobilePhone,
...@@ -180,7 +184,7 @@ export default { ...@@ -180,7 +184,7 @@ export default {
if(res.data == '900001') { if(res.data == '900001') {
this.$toast('不能给自己点赞哦'); this.$toast('不能给自己点赞哦');
}else { }else {
this.$router.push({path: "/login-point/point-result",query: {code: res.data}}); this.$router.push({path: "/point-result",query: {code: res.data}});
} }
}else if(res.code == '300000') { }else if(res.code == '300000') {
this.$toast(res.message); this.$toast(res.message);
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
<section class="point-container"> <section class="point-container">
<div class="point-bg"> <div class="point-bg">
<div class="point-status"> <div class="point-status">
<img v-if="status == 1 || status == 3" src="../../static/images/point-success-nobg.png" /> <img v-if="status == 1 || status == 3" src="../static/images/point-success-nobg.png" />
<img v-if="status == 2" src="../../static/images/point-fail.png" /> <img v-if="status == 2" src="../static/images/point-fail.png" />
</div> </div>
<div class="status-text"> <div class="status-text">
<p class="fw">{{pointText1}}</p> <p class="fw">{{pointText1}}</p>
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
</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">
<img src="../../static/images/point-award-new.png" /> <img src="../static/images/point-award-new.png" />
</div> </div>
</div> </div>
<div class="btn"> <div class="btn">
<button @click="openApp" v-bp="{ component_tag: '361#3600010'}">{{btnText}}</button> <button @click="openApp" v-bp="{ component_tag: '361#360010'}">{{btnText}}</button>
<button @click="downloadApp">下载APP</button> <button @click="downloadApp">下载APP</button>
</div> </div>
</div> </div>
...@@ -100,7 +100,7 @@ export default { ...@@ -100,7 +100,7 @@ export default {
.point-bg { .point-bg {
width: 100%; width: 100%;
height: 100vh; height: 100vh;
background-image:url('../../static/images/result-bg.png'); background-image:url('../static/images/result-bg.png');
background-size: 100% 100%; background-size: 100% 100%;
} }
.point-status { .point-status {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册