From 65cc72b7270f97f52a85fdc848f501e2b2eccdc2 Mon Sep 17 00:00:00 2001 From: Tomas <tomasysh@gmail.com> Date: 星期一, 17 一月 2022 13:38:49 +0800 Subject: [PATCH] update: 顧問_預約清單 0 調整從 mobile sms 進入時,導頁的判斷 --- PAMapp/pages/myAppointmentList.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/PAMapp/pages/myAppointmentList.vue b/PAMapp/pages/myAppointmentList.vue index 69adaab..0e9f410 100644 --- a/PAMapp/pages/myAppointmentList.vue +++ b/PAMapp/pages/myAppointmentList.vue @@ -110,13 +110,18 @@ } } - // TODO: 隤踵蝔�Ⅳ [Tomas, 2022/1/14 12:02] private redirectAppointmentStatus() { const currentAppointmentIndex = this.myAppointmentList .findIndex(item => item.id === +this.currentAppointmentIdFromMsg); if (currentAppointmentIndex > -1) { const communicateStatus = this.myAppointmentList[currentAppointmentIndex].communicateStatus; - const pathName = communicateStatus === 'reserved' ? 'appointmentList' : 'closedList'; + let pathName = 'closedList' + if (communicateStatus === this.contactStatus.RESERVED || communicateStatus === this.contactStatus.PICKED) { + pathName = 'contactedList'; + } + if (communicateStatus === this.contactStatus.CONTACTED) { + pathName = 'contactedList'; + } this.$router.push( { path: '/myAppointmentList/' + pathName, -- Gitblit v1.8.0