From ac3328cdae3612f12b1c4354ed291805da0af918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com> Date: Wed, 8 Nov 2023 11:45:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9C=8D=E5=8A=A1=E8=AE=B0?= =?UTF-8?q?=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesC/servicerecord/servicerecord.vue | 29 +++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/pagesC/servicerecord/servicerecord.vue b/pagesC/servicerecord/servicerecord.vue index 987163d..a4ede94 100644 --- a/pagesC/servicerecord/servicerecord.vue +++ b/pagesC/servicerecord/servicerecord.vue @@ -137,7 +137,7 @@ export default { data() { return { - count: 4, + count: 5, value: 2, tabslist: [{ name: '全部', @@ -160,7 +160,8 @@ openId: '', orderNo: '', orderSource: 'FAMILY_DOCTOR', - evaluateChanne: 'WE_CHAT_APPLET', + evaluateChannel: 'WE_CHAT_APPLET', + evaluateSatisfaction:'', }, query: { pageNum: 1, @@ -174,13 +175,27 @@ }, onShow() { const value = uni.getStorageSync('userinfo'); - this.query.identity=value.cardNo + this.query.identity = value.cardNo this.info() }, - + watch: { //监听 + 'list.compositeScore'() { + if (this.list.compositeScore == 5) { + this.list.evaluateSatisfaction = 'VERYSATISFIED' + } else if (this.list.compositeScore == 4) { + this.list.evaluateSatisfaction = 'SATISFIED' + } else if (this.list.compositeScore == 3) { + this.list.evaluateSatisfaction = 'COMMONLY' + } else if (this.list.compositeScore == 2) { + this.list.evaluateSatisfaction = 'DISSATISFIED' + } else if (this.list.compositeScore == 1) { + this.list.evaluateSatisfaction = 'VERYDISSATISFIED' + } + }, + }, methods: { - cancel(){ - this.evaluateshow=false + cancel() { + this.evaluateshow = false }, submit(item) { console.log(this.list, '45') @@ -239,7 +254,7 @@ this.list.patientId = uni.getStorageSync('patientId'); this.list.openId = uni.getStorageSync('openid'); this.list.orderSource = 'FAMILY_DOCTOR' - this.list.evaluateChanne = 'WE_CHAT_APPLET' + this.list.evaluateChannel = 'WE_CHAT_APPLET' } }