From fdedea98f7c2af0144de16a6e291310869f6d113 Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期一, 31 七月 2023 12:24:06 +0800
Subject: [PATCH] Update: 調整諮詢方式 property name

---
 PAMapp/components/Consultant/ConsultantCard.vue |   27 ++++++++++++++++-----------
 1 files changed, 16 insertions(+), 11 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue
index 3fb5605..68d697a 100644
--- a/PAMapp/components/Consultant/ConsultantCard.vue
+++ b/PAMapp/components/Consultant/ConsultantCard.vue
@@ -1,6 +1,6 @@
 <template>
     <div>
-        <el-row type="flex" class="rowStyle" :class="{'new': !agentInfo.customerViewTime }">
+        <el-row type="flex" class="rowStyle" :class="{'new': !agentInfo.customerViewTime && $route.name !== 'myConsultantList-contactedList' }">
             <el-col class="flex_column pl-5" :xs="5" :sm="3">
                 <UiAvatar
                     :size="50"
@@ -12,16 +12,20 @@
                       class="icon-star pam-icon icon--yellow satisfaction"
                        style="margin-top: 0"></i>
                     <template v-if="isAppointment">
-                      <span v-if="agentInfo.appointmentScore">
-                          {{ agentInfo.appointmentScore }}
-                      </span>
-                      <div class="unfilled text--center "
-                          style="display:flex"
-                          v-else>�憛�<br />皛踵�漲</div>
+                      <template v-if="agentInfo.appointmentStatus === 'closed'
+                                    || agentInfo.appointmentStatus === 'done'">
+                        <span v-if="agentInfo.appointmentScore">
+                            {{ agentInfo.appointmentScore }}
+                        </span>
+                        <div class="unfilled text--center "
+                            style="display:flex"
+                            v-else>�憛�<br />皛踵�漲</div>
+                      </template>
                     </template>
                     <template v-else>
                       <span v-if="agentInfo.avgScore">{{ agentInfo.avgScore }}</span>
-                      <span v-else>撠<br />皛踵�漲</span>
+                      <span class="unfilled text--center "
+                          style="display:flex" v-else>撠<br />皛踵�漲</span>
                     </template>
 
                 </div>
@@ -41,7 +45,7 @@
                     @click="isRemoveAgentPopup = true"
                 >蝘駁</div>
                 <div
-                    v-if="notScoreAppointmentYet"
+                    v-if="notScoreAppointmentYet && (agentInfo.appointmentStatus === 'closed' || agentInfo.appointmentStatus === 'done')"
                     class="text--primary text--underline cursor--pointer xsTxt text--bold"
                     @click="reviewsBtn = true">蝯虫�遛��漲閰��</div>
             </el-col>
@@ -72,7 +76,8 @@
                     <p>�批嚗{gender}}</p>
                     <p>撟湧翩嚗{appointmentDetail.age | toAgeLabel }}</p>
                     <p>�璆哨�{appointmentDetail.job}}</p>
-                    <p>��瘙�{appointmentDetail.requirement.split(',').join('��')}}</p>
+                    <p>隢株岷�撘�{appointmentDetail.consultationMethod }}</p>
+                    <p>��瘙�{appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('��') : '--'}}</p>
                     <p
                         v-for="(item, index) in hopeContactTime"
                         :key="index"
@@ -87,7 +92,7 @@
                     </div>
                 </div>
 
-                <div v-if="notScoreAppointmentYet" class="reserved-btn">
+                <div v-if="notScoreAppointmentYet && (agentInfo.appointmentStatus === 'closed' || agentInfo.appointmentStatus === 'done')" class="reserved-btn">
                     <el-button type="primary"
                         @click.native="reviewsBtn = true">蝯虫�遛��漲閰��</el-button>
                 </div>

--
Gitblit v1.8.0