From c99a662edbd0c23e5c88e8a1531f9b10af6539d8 Mon Sep 17 00:00:00 2001 From: HelenHuang <LinHuang@pollex.com.tw> Date: 星期五, 21 一月 2022 16:47:03 +0800 Subject: [PATCH] Fixed#134576 修正 [ 顧問管理流程 ] 未聯絡預約單資訊明細 : 應只顯示「傳送約訪通知」按鈕,目前畫面顯示結案、約訪紀錄、系統通知紀錄編輯 --- PAMapp/components/Consultant/ConsultantSwiper.vue | 56 +++++++++++++++++++++++++++++++++++++++----------------- 1 files changed, 39 insertions(+), 17 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue index 29fa092..01f568b 100644 --- a/PAMapp/components/Consultant/ConsultantSwiper.vue +++ b/PAMapp/components/Consultant/ConsultantSwiper.vue @@ -5,22 +5,32 @@ 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 + class="mb-10" + :size="80" + :agentNo="agentInfo.agentNo" + > + </UiAvatar> <div class="name">{{agentInfo.name}}</div> - <div> + <div v-if="!hideReviews"> + <!-- TODO:���遛��漲 --> <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> - <div class="swiper-button-prev" slot="button-prev"></div> - <div class="swiper-button-next" slot="button-next"></div> + <div class="swiper-button-prev" slot="button-prev"> + <i class="icon-left"></i> + </div> + <div class="swiper-button-next" slot="button-next"> + <i class="icon-right"></i> + </div> </swiper> </div> </template> @@ -28,14 +38,18 @@ <script lang="ts"> import { Vue, Component, Prop } from 'vue-property-decorator'; import { SwiperOptions } from 'swiper'; -import { Agents } from '~/plugins/api/home' +import { Consultant } from '~/shared/models/consultant.model'; +import { hideReviews } from '~/shared/const/hide-reviews'; @Component export default class UiSwiper extends Vue { - @Prop() agents!: Agents[]; + @Prop() + agents!: Consultant[]; + + hideReviews = hideReviews ; swiperOptions: SwiperOptions = { - loop: true, + loop: false, slideToClickedSlide: false, navigation: { nextEl: '.swiper-button-next', @@ -44,20 +58,20 @@ breakpoints: { 320: { slidesPerView: 3, - slidesPerGroup: 3, - spaceBetween: 3 + spaceBetween: -20 }, 768: { slidesPerView: 6, - slidesPerGroup: 6, - spaceBetween: 3 + spaceBetween: -20 } } } + ////////////////////////////////////////////////////////////////////// + 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,14 +91,22 @@ } .swiper-button-next,.swiper-button-prev { + @extend .fix-chrome-click--issue; background-color: $PRIMARY_WHITE; top: 0px; height: 100%; &:after { + display: none; + } + + .icon-right,.icon-left { font-size: 20px; - font-weight: bold; - color: #707A81; + color: $CORAL; + } + + &.swiper-button-disabled { + pointer-events: auto; } } -- Gitblit v1.8.0