|
|
@ -97,6 +97,8 @@ export default { |
|
|
statusShow: false, |
|
|
statusShow: false, |
|
|
//提示信息 |
|
|
//提示信息 |
|
|
alertTip: '请完整填写评价', |
|
|
alertTip: '请完整填写评价', |
|
|
|
|
|
//用于判断是否可进行提交评论 |
|
|
|
|
|
isCanEvaluation: false, |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
@ -115,6 +117,7 @@ export default { |
|
|
}, |
|
|
}, |
|
|
//提示 |
|
|
//提示 |
|
|
submit() { |
|
|
submit() { |
|
|
|
|
|
if(!isCanEvaluation) return; |
|
|
if ( |
|
|
if ( |
|
|
this.timeScore == 0 || |
|
|
this.timeScore == 0 || |
|
|
this.serviceScore == 0 || |
|
|
this.serviceScore == 0 || |
|
|
@ -187,8 +190,26 @@ export default { |
|
|
this.name = this.getParam("name") |
|
|
this.name = this.getParam("name") |
|
|
this.time = this.getParam("bookTime") |
|
|
this.time = this.getParam("bookTime") |
|
|
this.code = this.getParam("code") |
|
|
this.code = this.getParam("code") |
|
|
// this.$vux.toast.text(this.getParam("name"),'middle') |
|
|
|
|
|
// this.$vux.toast.text(this.getParam("time"),'middle') |
|
|
|
|
|
|
|
|
//判断用户是否登录 |
|
|
|
|
|
model.getEvaluationNews(this.getParam("bookNo")) |
|
|
|
|
|
.then(res => { |
|
|
|
|
|
let code = res.code; |
|
|
|
|
|
if (code == 0) { |
|
|
|
|
|
//成功 |
|
|
|
|
|
if (!res.response.userId){ |
|
|
|
|
|
this.alertTip = res.msg |
|
|
|
|
|
this.alertShow = true; |
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
this.alertShow = false; |
|
|
|
|
|
}, 3000); |
|
|
|
|
|
} else { |
|
|
|
|
|
this.isCanEvaluation = true |
|
|
|
|
|
} |
|
|
|
|
|
} else if (code == 1) { |
|
|
|
|
|
this.code = 4; |
|
|
|
|
|
this.statusShow = true; |
|
|
|
|
|
} |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
|