| | |
| | | :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 v-if="!hideReviews"> |
| | | <!-- TODO:隱藏滿意度 --> |
| | |
| | | @Component |
| | | export default class UiSwiper extends Vue { |
| | | |
| | | @Prop() agents!: Consultant[]; |
| | | @Prop() |
| | | agents!: Consultant[]; |
| | | |
| | | hideReviews = hideReviews ; |
| | | |
| | | swiperOptions: SwiperOptions = { |
| | | loop: false, |
| | | slideToClickedSlide: false, |
| | |
| | | } |
| | | } |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | |
| | | clkItem(loopIndex: number, realIndex: number) { |
| | | const agentNo = this.agents[loopIndex].agentNo; |
| | | this.$router.push(`/agentInfo/${agentNo}`); |