From affca36983f0e5be6d510328b338993134a2246e Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期四, 27 一月 2022 10:45:59 +0800
Subject: [PATCH] update: [顧問卡片] 調整滿意度顯示判斷邏輯

---
 PAMapp/components/Consultant/ConsultantCard.vue   |   22 ++++++++++++++--------
 PAMapp/components/Consultant/ConsultantSwiper.vue |    2 +-
 2 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index a1be707..268987e 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -8,14 +8,20 @@
                     @click.native="showAgentDetail(agentInfo.agentNo)"
                 ></UiAvatar>
                 <div v-if="!hideReviews">
-                    <i class="icon-star pam-icon icon--yellow satisfaction"  v-if="notScoreAppointmentYet"></i>
-                    <span v-if="notScoreAppointmentYet">
-                        {{ agentInfo.satisfactionScore }}
-                    </span>
-                    <div class="unfilled text--center "
-                        style="display:flex"
-                        v-if="notScoreAppointmentYet">�憛�<br />皛踵�漲</div>
-                    <span v-if="agentInfo.contactStatus !== 'contacted'">{{ agentInfo.avgScore }}</span>
+                    <i class="icon-star pam-icon icon--yellow satisfaction"></i>
+                      <template v-if="isAppointment">
+                      <span v-if="notScoreAppointmentYet">
+                          {{ agentInfo.satisfactionScore }}
+                      </span>
+                      <div class="unfilled text--center "
+                          style="display:flex"
+                          v-if="notScoreAppointmentYet">�憛�<br />皛踵�漲</div>
+                    </template>
+                    <template v-else>
+                      <span v-if="agentInfo.avgScore">{{ agentInfo.avgScore }}</span>
+                      <span v-else>撠<br />皛踵�漲</span>
+                    </template>
+
                 </div>
             </el-col>
             <el-col :xs="10" :sm="15">
diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue
index 39d3475..ae61981 100644
--- a/PAMapp/components/Consultant/ConsultantSwiper.vue
+++ b/PAMapp/components/Consultant/ConsultantSwiper.vue
@@ -17,7 +17,7 @@
               >
               </UiAvatar>
               <div class="name">{{agentInfo.name}}</div>
-              <div v-if="!hideReviews">
+              <div v-if="!hideReviews" style="display: flex; align-items: center; justify-content: center; margin-top: 4px">
                 <i class="icon-star pam-icon icon--yellow"></i>
                 <span class="satisfaction">{{agentInfo.avgScore}}</span>
               </div>

--
Gitblit v1.8.0