Browse Source

成功 提现 页面 显示 提现金额

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
2cc2fac45e
3 changed files with 27 additions and 21 deletions
  1. 36
      src/view/put-money.vue
  2. 4
      src/view/service-evaluation-status.vue
  3. 8
      src/view/service-evaluation.vue

36
src/view/put-money.vue

@ -84,24 +84,24 @@ export default {
this.$vux.toast.text("请登录微信进行操作", "middle");
return;
}
putMoney.putMoney({ amount: this.inputVal * 100 }).then(res => {
if (res.code == 0) {
this.$router.push({
name: "提现成功",
params: { amount: this.inputVal }
});
} else if (res.code == 666) {
this.$vux.toast.text(res.msg, "middle");
setTimeout(function() {
window.location.href =
locationUrl +
"/mall/web/user/login?callback=" +
encodeURIComponent(window.location.href);
}, 1000);
} else {
this.$vux.toast.text(res.msg, "middle");
}
// this.$vux.toast.text(res)
putMoney.putMoney({ num : this.inputVal * 100 }).then(res => {
if (res.code == 0) {
this.$router.push({
name: "提现成功",
params: { amount: this.inputVal }
});
} else if (res.code == 666) {
this.$vux.toast.text(res.msg, "middle");
setTimeout(function() {
window.location.href =
locationUrl +
"/mall/web/user/login?callback=" +
encodeURIComponent(window.location.href);
}, 1000);
} else {
this.$vux.toast.text(res.msg, "middle");
}
// this.$vux.toast.text(res)
});
}
},

4
src/view/service-evaluation-status.vue

@ -20,11 +20,13 @@
<img v-show="code==0" src="../assets/images/service-evaluation/evaluation-status-0.png" class="evaluation-status-icon">
<img v-show="code==2" src="../assets/images/service-evaluation/evaluation-status-1.png" class="evaluation-status-icon">
<img v-show="code==3" src="../assets/images/service-evaluation/evaluation-status-2.png" class="evaluation-status-icon">
<img v-show="code==4" src="../assets/images/service-evaluation/evaluation-status-3.png" class="evaluation-status-icon">
<img v-show="code==4||code==5" src="../assets/images/service-evaluation/evaluation-status-3.png" class="evaluation-status-icon">
<span v-show="code==0">评价成功</span>
<span v-show="code==2" style="color:#666">不可重复评价</span>
<span v-show="code==3" style="color:#666">已过期</span>
<span v-show="code==4" style="color:#666">账号不一致</span>
<span v-show="code==5" style="color:#666">订单不存在</span>·
</div>
</div>
</div>

8
src/view/service-evaluation.vue

@ -210,7 +210,7 @@ export default {
this.isCanEvaluation = true;
}
} else if (code == 1) {
if (res.msg == "已过期") {
if (res.msg == "已过期" ) {
//
this.code = 3;
this.statusShow = true;
@ -222,7 +222,11 @@ export default {
//
this.code = 4;
this.statusShow = true;
}
} else if (res.msg == "订单不存在") {
//
this.code = 4;
this.statusShow = true;
}
}
});
}

Loading…
Cancel
Save