From 2961569ad7a13d74bd55b33c588d22a7bb1f705d Mon Sep 17 00:00:00 2001
From: Tomas <tomasysh@gmail.com>
Date: 星期三, 15 十二月 2021 13:09:16 +0800
Subject: [PATCH] Merge branch 'master' of https://dev.pollex.com.tw:8443/r/pcalife/PAM

---
 PAMapp/components/Consultant/ConsultantSwiper.vue |   20 ++++++++++++++------
 1 files changed, 14 insertions(+), 6 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue
index 66f2a72..7f8d13b 100644
--- a/PAMapp/components/Consultant/ConsultantSwiper.vue
+++ b/PAMapp/components/Consultant/ConsultantSwiper.vue
@@ -12,7 +12,8 @@
             <div class="consultantCardStyle" >
               <UiAvatar :size="80" :fileName="agentInfo.img" class="mb-10"></UiAvatar>
               <div class="name">{{agentInfo.name}}</div>
-              <div>
+              <div v-if="!hideReviews">
+                <!-- TODO:���遛��漲 -->
                 <i class="icon-star pam-icon icon--yellow"></i>
                 <span class="satisfaction">{{agentInfo.avgScore}}</span>
               </div>
@@ -28,12 +29,16 @@
 <script lang="ts">
 import { Vue, Component, Prop } from 'vue-property-decorator';
 import { SwiperOptions } from 'swiper';
-import { Consultants } from '~/assets/ts/api/consultant'
+import { Consultant } from '~/assets/ts/models/consultant.model';
+import { hideReviews } from '~/assets/ts/const/hide-reviews';
 
 @Component
 export default class UiSwiper extends Vue {
-    @Prop() agents!: Consultants[];
 
+    @Prop() agents!: Consultant[];
+
+    hideReviews = hideReviews ;
+    
     swiperOptions: SwiperOptions = {
       loop: false,
         slideToClickedSlide: false,
@@ -44,17 +49,16 @@
         breakpoints: {
           320: {
             slidesPerView: 3,
-            spaceBetween: 3
+            spaceBetween: -20
           },
           768: {
             slidesPerView: 6,
-            spaceBetween: 3
+            spaceBetween: -20
           }
         }
     }
 
     clkItem(loopIndex: number, realIndex: number) {
-      console.log(loopIndex, realIndex, 'clkItem')
       const agentNo = this.agents[loopIndex].agentNo;
       this.$router.push(`/agentInfo/${agentNo}`);
     }
@@ -86,6 +90,10 @@
       font-weight: bold;
       color: #707A81;
     }
+
+    &.swiper-button-disabled {
+      pointer-events: auto;
+    }
   }
 
   .swiper-button-prev {

--
Gitblit v1.8.0