From 18098111cc905e88524e7d9ce788b742637e0824 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 14 十二月 2021 16:02:04 +0800 Subject: [PATCH] refactor: 快速篩選 1. 整理 methods 順序 2. 整理 interface、const --- PAMapp/components/Consultant/ConsultantSwiper.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue index bacf1ca..7f8d13b 100644 --- a/PAMapp/components/Consultant/ConsultantSwiper.vue +++ b/PAMapp/components/Consultant/ConsultantSwiper.vue @@ -12,7 +12,8 @@ <div class="consultantCardStyle" > <UiAvatar :size="80" :fileName="agentInfo.img" class="mb-10"></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.avgScore}}</span> </div> @@ -29,12 +30,15 @@ import { Vue, Component, Prop } from 'vue-property-decorator'; import { SwiperOptions } from 'swiper'; import { Consultant } from '~/assets/ts/models/consultant.model'; - +import { hideReviews } from '~/assets/ts/const/hide-reviews'; @Component export default class UiSwiper extends Vue { + @Prop() agents!: Consultant[]; + hideReviews = hideReviews ; + swiperOptions: SwiperOptions = { loop: false, slideToClickedSlide: false, -- Gitblit v1.8.0