From ae881cc8d8c73dc7c42c78c2b0790294d1164e25 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期一, 13 十二月 2021 11:07:35 +0800
Subject: [PATCH] Merge branch 'master' of https://192.168.0.10:8443/r/pcalife/PAM

---
 PAMapp/components/QuickFilter/QuickFilterConsultantList.vue |   24 ++++++++++++++++--------
 1 files changed, 16 insertions(+), 8 deletions(-)

diff --git a/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue b/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
index 402eb5e..d76e739 100644
--- a/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
+++ b/PAMapp/components/QuickFilter/QuickFilterConsultantList.vue
@@ -31,7 +31,8 @@
                         <div class="smTxt_bold mb-10 text--prudential_grey">����風</div>
                         <div class="mb-10">{{item.seniority}}</div>
                     </el-col>
-                    <el-col :span="12">
+                    <el-col :span="12" v-if="!hideReviews">
+                        <!-- TODO:���遛��漲 -->
                         <div class="smTxt_bold mb-10 text--prudential_grey">摰X皛踵�漲</div>
                         <div>
                             <i class="icon-star pam-icon icon--yellow "></i>
@@ -82,7 +83,7 @@
 import { ElCarousel } from 'element-ui/types/carousel';
 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 {
@@ -91,20 +92,27 @@
     popUpTxt = '����憿批��';
     startPosition = 0;
     endPosition = 0;
+    startYPosition = 0;
+    endYPosition = 0;
+    hideReviews = hideReviews ;
 
     moveStart(event: TouchEvent) {
         this.startPosition = event.changedTouches[0].clientX;
+        this.startYPosition = event.changedTouches[0].clientY;
     }
 
     moveEnd(event: TouchEvent) {
         this.endPosition = event.changedTouches[0].clientX;
-        if (this.endPosition < this.startPosition) {
-            this.nextCard();
-            return;
-        }
+        this.endYPosition = event.changedTouches[0].clientY;
+        if (Math.abs(this.endYPosition - this.startYPosition) < 50) {
+            if (this.endPosition < this.startPosition) {
+                this.nextCard();
+                return;
+            }
 
-        if (this.endPosition > this.startPosition) {
-            this.prevCard();
+            if (this.endPosition > this.startPosition) {
+                this.prevCard();
+            }
         }
     }
 

--
Gitblit v1.8.0