Browse Source

修改 评论效果

feature/feature-compatible
fengchengzhi 7 years ago
parent
commit
51ad1917e0
2 changed files with 30 additions and 30 deletions
  1. 2
      src/view/put-money.vue
  2. 58
      src/view/service-evaluation.vue

2
src/view/put-money.vue

@ -112,7 +112,7 @@
mounted() {
//
this.currentAmount = this.getParam("currentAmount")
this.$vux.toast.text(this.currentAmount,'middle')
//this.$vux.toast.text(this.currentAmount,'middle')
}
}
</script>

58
src/view/service-evaluation.vue

@ -79,6 +79,8 @@ import { setTimeout } from "timers";
import model from "../models/evaluation-model.js";
import status from "./service-evaluation-status.vue";
import { Alert, Toast } from "vux";
import configs from '../configs';
var locationUrl = configs.locationUrl;
export default {
data() {
@ -151,24 +153,19 @@ export default {
this.code = 0;
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;
this.statusShow = true;
} else if (code == 3) {
//
this.code = 3;
this.statusShow = true;
} else if (code == 4) {
//
this.code = 4;
this.statusShow = true;
if (res.msg == "已过期") {
//
this.code = 3;
this.statusShow = true;
} else if (res.msg == "不可重复评价") {
//
this.code = 2;
this.statusShow = true;
} else if (res.msg == "账号不一致") {
//
this.code = 4;
this.statusShow = true;
}
}
});
}
@ -191,23 +188,26 @@ export default {
model.getEvaluationNews({ bookNo: this.getParam("bookNo") }).then(res => {
let code = res.code;
if (code == 0) {
this.cleanerName = res.response.cleanerName
var times = ''
if (res.response.timeType == 1) {
times = '8:00~12:00'
} else {
times = '14:00~16:00'
}
this.serviceTime = res.response.bookTime +' '+ times
//
if (!res.response.userId) {
this.alertTip = res.msg;
this.alertTip = '请登录账号';
this.alertShow = true;
setTimeout(() => {
this.alertShow = false;
}, 3000);
window.location.href = locationUrl + '/mall/web/user/login?callback=' + encodeURIComponent(window.location.href);
}, 3000);
} else {
this.isCanEvaluation = true;
this.cleanerName = res.response.cleanerName
var times = ''
if (res.response.timeType == 1) {
times = '8:00~12:00'
} else {
times = '14:00~16:00'
}
this.serviceTime = res.response.bookTime +' '+ times
this.isCanEvaluation = true;
}
} else if (code == 1) {
this.code = 4;

Loading…
Cancel
Save