Commit f647ecee by 潘琦

评论星级小于等三颗星,评价内容必填;

parent 487422da
...@@ -205,6 +205,14 @@ export default { ...@@ -205,6 +205,14 @@ export default {
}) })
return return
} }
if (this.form.starsChecked <= 3 && this.form.commentContent === '') {
this.$toast({
message: '请填写对医生的服务进行评价',
position: 'center',
duration: 3 * 1000
})
return
}
let params = { let params = {
voucherId: this.voucherId, voucherId: this.voucherId,
doctorEvaluationType: this.form.DoctorRadio === '满意' ? 5 : this.form.DoctorRadio === '不满意' ? 3 : '', doctorEvaluationType: this.form.DoctorRadio === '满意' ? 5 : this.form.DoctorRadio === '不满意' ? 3 : '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment