From 176b380f392efab0a84dd79560dca22e8053d0e4 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 27 十二月 2021 12:32:35 +0800
Subject: [PATCH] refactor component: careerSelect

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

diff --git a/PAMapp/components/Client/ClientCard.vue b/PAMapp/components/Client/ClientCard.vue
index b600629..aff2a7e 100644
--- a/PAMapp/components/Client/ClientCard.vue
+++ b/PAMapp/components/Client/ClientCard.vue
@@ -97,7 +97,7 @@
 import { Vue, Component, Prop, Action } from 'nuxt-property-decorator';
 
 import appointmentService from '~/shared/services/appointment.service';
-import { isMobileDevice } from '~/shared/device';
+import UtilsService from '~/shared/services/utils.service';
 import { hideReviews } from '~/shared/const/hide-reviews';
 import { ClientInfo } from '~/shared/models/client.model';
 import myConsultantService from '~/shared/services/my-consultant.service';
@@ -175,26 +175,26 @@
         }
     }
 
-    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];
     }
 
     openDetail() {
-        this.dialogWidth = isMobileDevice() ? '80%' : '';
+        this.dialogWidth = UtilsService.isMobileDevice() ? '80%' : '';
         this.isVisibleDialog = true;
     }
 

--
Gitblit v1.8.0