diff --git a/src/view/put-money.vue b/src/view/put-money.vue
index 845550d..d55c01f 100644
--- a/src/view/put-money.vue
+++ b/src/view/put-money.vue
@@ -44,6 +44,7 @@
export default{
data() {
return {
+ //提现金额验证提示
inputCue : '(请输入整数金额)',
//默认一开始输入款的值不符合验证规则
isActive:false,
@@ -73,7 +74,8 @@
methods:{
//提交申请
submit() {
- if(this.isActive) {
+ if(this.isActive) {
+ console.log(this.inputVal)
putMoney.putMoney(
{amount:this.inputVal}
).then(res => {
@@ -82,6 +84,7 @@
}else {
this.$vux.toast.text(res.msg,'middle')
}
+ this.$vux.toast.text(res)
})
}
},
diff --git a/src/view/service-evaluation.vue b/src/view/service-evaluation.vue
index 1edce86..42c71f9 100644
--- a/src/view/service-evaluation.vue
+++ b/src/view/service-evaluation.vue
@@ -68,7 +68,7 @@
- 请完整填写评价
+ {{alertTip}}
@@ -94,7 +94,9 @@ export default {
content: "",
alertShow: false,
code: 4,
- statusShow: false
+ statusShow: false,
+ //提示信息
+ alertTip: '请完整填写评价',
};
},
components: {
@@ -118,6 +120,7 @@ export default {
this.serviceScore == 0 ||
this.professionScore == 0
) {
+ this.alertTip = '请完整填写评价'
this.alertShow = true;
setTimeout(() => {
this.alertShow = false;
@@ -146,6 +149,11 @@ export default {
this.statusShow = true;
} else if (code == 1) {
//订单不存在
+ this.alertTip = res.msg
+ this.alertShow = true;
+ setTimeout(() => {
+ this.alertShow = false;
+ }, 3000);
} else if (code == 2) {
//不可重复评价
this.code = 2;
@@ -164,9 +172,9 @@ export default {
},
getParam(name) {
var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
- // var r = window.location.search.substr(1).match(reg);
- var url = '?name=林同学&time=2018:07:07';
- var r = url.substr(1).match(reg);
+ var r = window.location.search.substr(1).match(reg);
+ // var url = '?name=林同学&time=2018:07:07';
+ // var r = url.substr(1).match(reg);
if (r != null) return unescape(r[2]);
return null;
},