From 2cc2fac45e3dd62fc7dc62fc37999cd0919662fd Mon Sep 17 00:00:00 2001 From: fengchengzhi Date: Thu, 26 Jul 2018 01:11:20 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=90=E5=8A=9F=20=E6=8F=90=E7=8E=B0=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=20=E6=98=BE=E7=A4=BA=20=E6=8F=90=E7=8E=B0?= =?UTF-8?q?=E9=87=91=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/view/put-money.vue | 36 +++++++++++++------------- src/view/service-evaluation-status.vue | 4 ++- src/view/service-evaluation.vue | 8 ++++-- 3 files changed, 27 insertions(+), 21 deletions(-) diff --git a/src/view/put-money.vue b/src/view/put-money.vue index 8fd8c38..e5d95af 100644 --- a/src/view/put-money.vue +++ b/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) }); } }, diff --git a/src/view/service-evaluation-status.vue b/src/view/service-evaluation-status.vue index ab84807..3833a1a 100644 --- a/src/view/service-evaluation-status.vue +++ b/src/view/service-evaluation-status.vue @@ -20,11 +20,13 @@ - + + 评价成功 不可重复评价 已过期 账号不一致 + 订单不存在· diff --git a/src/view/service-evaluation.vue b/src/view/service-evaluation.vue index 63f15dc..30fe922 100644 --- a/src/view/service-evaluation.vue +++ b/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; + } } }); }