From d4e6cf05333a148f238dd1e4be3862f1197cbe5d Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期二, 16 十一月 2021 12:05:58 +0800
Subject: [PATCH] update: 我的顧問清單/預約清單: 按照時間排序

---
 PAMapp/components/Consultant/ConsultantCard.vue |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index 42cc58b..cf2564a 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -7,7 +7,7 @@
                     <el-col class="flex_column" :xs="5" :sm="3">
                         <UiAvatar
                             :size="50"
-                            :fileName="agentInfo.img"
+                            :fileName="avatarFileName"
                             @click.native="showAgentDetail(agentInfo.agentNo)"
                         ></UiAvatar>
                         <div class="satisfaction">
@@ -20,7 +20,7 @@
                         <div class="professionals">
                             <span
                                 class="professionalsTxt"
-                                v-for="(expertise, index) in agentInfo.expertise"
+                                v-for="(expertise, index) in expertises"
                                 :key="index"
                             >#{{expertise}}</span>
                         </div>
@@ -106,6 +106,14 @@
         name: ''
     };
 
+    get avatarFileName() {
+        console.log('avatarFileName')
+        return this.agentInfo.img ? this.agentInfo.img : this.agentInfo.image;
+    }
+
+    get expertises() {
+        return this.agentInfo.expertise ? this.agentInfo.expertise : this.agentInfo.expertises;
+    }
     get gender() {
         if (this.appointmentDetail.gender) {
             return this.appointmentDetail.gender === 'male' ? '���' : '憟單��';

--
Gitblit v1.8.0