From eb2d7d3d9fc64ac74a5f6575057d1566e6657b96 Mon Sep 17 00:00:00 2001 From: Jack <jack.su@pollex.com.tw> Date: 星期三, 29 十二月 2021 19:37:01 +0800 Subject: [PATCH] [ADD] 新增預約單備註API [ADD] 更新預約單備註API [ADD] 刪除預約單備註API [ADD] 顧問查詢自己的預約單清單時帶出備註資料 --- PAMapp/components/Consultant/ConsultantSwiper.vue | 17 +++++++++++++---- 1 files changed, 13 insertions(+), 4 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantSwiper.vue b/PAMapp/components/Consultant/ConsultantSwiper.vue index bacf1ca..82f28d2 100644 --- a/PAMapp/components/Consultant/ConsultantSwiper.vue +++ b/PAMapp/components/Consultant/ConsultantSwiper.vue @@ -10,9 +10,15 @@ :key="index" > <div class="consultantCardStyle" > - <UiAvatar :size="80" :fileName="agentInfo.img" class="mb-10"></UiAvatar> + <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.avgScore}}</span> </div> @@ -28,13 +34,16 @@ <script lang="ts"> import { Vue, Component, Prop } from 'vue-property-decorator'; import { SwiperOptions } from 'swiper'; -import { Consultant } from '~/assets/ts/models/consultant.model'; - +import { Consultant } from '~/shared/models/consultant.model'; +import { hideReviews } from '~/shared/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