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 | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue index 7f01888..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> @@ -28,13 +29,16 @@ <script lang="ts"> import { Vue, Component, Prop } from 'vue-property-decorator'; import { SwiperOptions } from 'swiper'; -import { Consultants } from '~/assets/ts/models/consultant.model'; - +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!: Consultants[]; + @Prop() agents!: Consultant[]; + + hideReviews = hideReviews ; + swiperOptions: SwiperOptions = { loop: false, slideToClickedSlide: false, -- Gitblit v1.8.0