From c9c705cc198b2da645a3a404ac47ad9e17df4c93 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期四, 25 十一月 2021 12:15:09 +0800 Subject: [PATCH] fix: TODO#130850 嚴選配對: 熱門檢索 #防疫 label 為空值 --- PAMapp/components/Consultant/ConsultantSwiper.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue index 44d95ed..66f2a72 100644 --- a/PAMapp/components/Consultant/ConsultantSwiper.vue +++ b/PAMapp/components/Consultant/ConsultantSwiper.vue @@ -5,12 +5,12 @@ 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> @@ -35,7 +35,7 @@ @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