| | |
| | | <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> |
| | |
| | | <script lang="ts"> |
| | | import { Vue, Component, Prop } from 'vue-property-decorator'; |
| | | import { SwiperOptions } from 'swiper'; |
| | | import { Consultants } from '~/assets/ts/api/consultant' |
| | | import { Consultant } from '~/shared/models/consultant.model'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | |
| | | @Component |
| | | export default class UiSwiper extends Vue { |
| | | @Prop() agents!: Consultants[]; |
| | | |
| | | @Prop() agents!: Consultant[]; |
| | | |
| | | hideReviews = hideReviews ; |
| | | |
| | | swiperOptions: SwiperOptions = { |
| | | loop: false, |