From 6fa4bba623713c396432ba8b863846883d6a1906 Mon Sep 17 00:00:00 2001
From: wayne <wayne8692wayne8692@gmail.com>
Date: 星期三, 26 一月 2022 10:52:23 +0800
Subject: [PATCH] Merge branch 'pollex-dev' into sit

---
 PAMapp/components/QuickFilter/QuickFilterConsultantList.vue |   31 +++++++++++++++++++------------
 1 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue b/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
index d76e739..71555ba 100644
--- a/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
+++ b/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
@@ -19,7 +19,7 @@
             >
                 <UiAvatar
                     :size="200"
-                    :fileName="item.img"
+                    :agentNo="item.agentNo"
                     class="mx-auto"
                     @click.native="showAgentDetail(item.agentNo)"
                 ></UiAvatar>
@@ -80,14 +80,16 @@
 </template>
 
 <script lang="ts">
+import { Consultant } from '~/shared/models/consultant.model';
 import { ElCarousel } from 'element-ui/types/carousel';
+import { hideReviews } from '~/shared/const/hide-reviews';
 import { Vue, Component, Prop } from 'vue-property-decorator';
-import { Consultant } from '~/assets/ts/models/consultant.model';
-import { hideReviews } from '~/assets/ts/const/hide-reviews';
 
 @Component
 export default class QuickFilterConsultantList extends Vue {
-    @Prop() consultantList!: Consultant[];
+    @Prop()
+    consultantList!: Consultant[];
+
     isVisiblePopUp = false;
     popUpTxt = '����憿批��';
     startPosition = 0;
@@ -95,6 +97,8 @@
     startYPosition = 0;
     endYPosition = 0;
     hideReviews = hideReviews ;
+
+    //////////////////////////////////////////////////////////////////
 
     moveStart(event: TouchEvent) {
         this.startPosition = event.changedTouches[0].clientX;
@@ -116,13 +120,7 @@
         }
     }
 
-    nextCard() {
-        (this.$refs.carouselRef as ElCarousel).next();
-    }
-
-    prevCard() {
-        (this.$refs.carouselRef as ElCarousel).prev();
-    }
+    //////////////////////////////////////////////////////////////////
 
     openPopUp(txt: string) {
         this.popUpTxt = txt;
@@ -132,6 +130,15 @@
     showAgentDetail(agentNo: string): void {
         this.$router.push(`/agentInfo/${agentNo}`);
     }
+
+    nextCard() {
+        (this.$refs.carouselRef as ElCarousel).next();
+    }
+
+    prevCard() {
+        (this.$refs.carouselRef as ElCarousel).prev();
+    }
+
 }
 </script>
 
@@ -218,4 +225,4 @@
         }
     }
 
-</style>
\ No newline at end of file
+</style>

--
Gitblit v1.8.0