From 505f666d3ecf3688778c079a8bbfb366d695cf22 Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期五, 12 十一月 2021 17:32:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

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

diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue
index 29fa092..21e04da 100644
--- a/PAMapp/components/Consultant/ConsultantSwiper.vue
+++ b/PAMapp/components/Consultant/ConsultantSwiper.vue
@@ -14,7 +14,7 @@
               <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,11 +28,11 @@
 <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,
@@ -56,7 +56,8 @@
     }
 
     clkItem(loopIndex: number, realIndex: number) {
-      this.$router.push('/agentInfo');
+      const agentNo = this.agents[realIndex].agentNo;
+      this.$router.push(`/agentInfo/${agentNo}`);
       console.log(loopIndex, realIndex, 'clkItem')
     }
 

--
Gitblit v1.8.0