From 7eb57571830d0677857cea565b09c4f38d286b8d Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期三, 29 十二月 2021 10:31:36 +0800
Subject: [PATCH] [update] 調整預約單通知的簡訊與email文案,並重購SendMsgService

---
 PAMapp/components/Client/ClientCard.vue |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/PAMapp/components/Client/ClientCard.vue b/PAMapp/components/Client/ClientCard.vue
index e3548a1..aff2a7e 100644
--- a/PAMapp/components/Client/ClientCard.vue
+++ b/PAMapp/components/Client/ClientCard.vue
@@ -175,21 +175,21 @@
         }
     }
 
-    get latestUpdateTime() {
+    get displayTime(): string {
         if (this.isReserved) {
-            return this.client.consultantReadTime ? this.client.consultantReadTime : this.client.appointmentDate;
+            return this.client.appointmentDate;
         } else {
-            return this.client.contactTime;
+            return this.client.lastModifiedDate;
         }
     }
 
     get time() {
-        const formatDate = (this.$options.filters as any).formatDate(this.latestUpdateTime);
+        const formatDate = (this.$options.filters as any).formatDate(this.displayTime);
         return formatDate.split(' ')[1]
     }
 
     get date() {
-        const formatDate = (this.$options.filters as any).formatDate(this.latestUpdateTime);
+        const formatDate = (this.$options.filters as any).formatDate(this.displayTime);
         return formatDate.split(' ')[0];
     }
 

--
Gitblit v1.8.0