From 33d0d51a799302ebc3ff47b86dbce4c1912abd22 Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期二, 30 十一月 2021 10:10:43 +0800
Subject: [PATCH] [update] 【todo 131218】嚴選配對 與 快速篩選 的滿意度評分皆改成 列出指定滿意度評分以上的顧問

---
 PAMapp/components/Consultant/ConsultantSwiper.vue |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue
index 29fa092..66f2a72 100644
--- a/PAMapp/components/Consultant/ConsultantSwiper.vue
+++ b/PAMapp/components/Consultant/ConsultantSwiper.vue
@@ -5,16 +5,16 @@
       class="swiperStyle"
       @click-slide="clkItem"
     >
-        <swiper-slide
+        <swiper-slide class="fix-chrome-click--issue"
           v-for="(agentInfo, index) in agents"
           :key="index"
         >
             <div class="consultantCardStyle" >
-              <el-avatar class="mb-10" :size="80" :src="agentInfo.img"></el-avatar>
+              <UiAvatar :size="80" :fileName="agentInfo.img" class="mb-10"></UiAvatar>
               <div class="name">{{agentInfo.name}}</div>
               <div>
                 <i class="icon-star pam-icon icon--yellow"></i>
-                <span class="satisfaction">{{agentInfo.satisfaction}}</span>
+                <span class="satisfaction">{{agentInfo.avgScore}}</span>
               </div>
           </div>
         </swiper-slide>
@@ -28,14 +28,14 @@
 <script lang="ts">
 import { Vue, Component, Prop } from 'vue-property-decorator';
 import { SwiperOptions } from 'swiper';
-import { Agents } from '~/plugins/api/home'
+import { Consultants } from '~/assets/ts/api/consultant'
 
 @Component
 export default class UiSwiper extends Vue {
-    @Prop() agents!: Agents[];
+    @Prop() agents!: Consultants[];
 
     swiperOptions: SwiperOptions = {
-        loop: true,
+      loop: false,
         slideToClickedSlide: false,
         navigation: {
           nextEl: '.swiper-button-next',
@@ -44,20 +44,19 @@
         breakpoints: {
           320: {
             slidesPerView: 3,
-            slidesPerGroup: 3,
             spaceBetween: 3
           },
           768: {
             slidesPerView: 6,
-            slidesPerGroup: 6,
             spaceBetween: 3
           }
         }
     }
 
     clkItem(loopIndex: number, realIndex: number) {
-      this.$router.push('/agentInfo');
       console.log(loopIndex, realIndex, 'clkItem')
+      const agentNo = this.agents[loopIndex].agentNo;
+      this.$router.push(`/agentInfo/${agentNo}`);
     }
 
 }
@@ -77,6 +76,7 @@
   }
 
   .swiper-button-next,.swiper-button-prev {
+    @extend .fix-chrome-click--issue;
     background-color: $PRIMARY_WHITE;
     top: 0px;
     height: 100%;

--
Gitblit v1.8.0