| | |
| | | <div class="pam-rec-agent-card__content"> |
| | | <div class="pam-rec-agent-card__content-header"> |
| | | <div class="pam-rec-agent-card__avatar"> |
| | | <UiAvatar :fileName="info.img" ></UiAvatar> |
| | | <UiAvatar |
| | | :agentNo="info.agentNo" > |
| | | </UiAvatar> |
| | | </div> |
| | | <div class="pam-rec-agent-card__main-info"> |
| | | <div class="fz-20 pt-10 rec-desktop-name">{{ info.name }}</div> |
| | | <div class="text--middle pt-10 rec-desktop-name">{{ info.name }}</div> |
| | | <div class="rec-role">{{ info.role }}</div> |
| | | <span class="rec-detail" @click="showAgentDetail(info.agentNo)">詳細資料</span> |
| | | <span class="rec-detail fix-chrome-click--issue" @click="showAgentDetail(info.agentNo)">詳細資料</span> |
| | | </div> |
| | | </div> |
| | | <div class="pam-rec-agent-card__content-body"> |
| | |
| | | {{ info.seniority }} |
| | | </div> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <!-- TODO:隱藏滿意度 --> |
| | | <el-col :span="12" v-if="!hideReviews"> |
| | | <div class="field__label"> |
| | | 客戶滿意度 |
| | | </div> |
| | |
| | | > |
| | | <div class="text--center mdTxt"> |
| | | <p class="mb-50">{{popUpTxt}}</p> |
| | | <p class="text--primary cursor--pointer" |
| | | @click="isVisiblePopUp = false">我知道了</p> |
| | | <div class="text--center"> |
| | | <el-button |
| | | type="primary" |
| | | @click="isVisiblePopUp = false" |
| | | >我知道了</el-button> |
| | | </div> |
| | | </div> |
| | | </PopUpFrame> |
| | | |
| | | </div> |
| | | </template> |
| | | <script lang="ts"> |
| | | import {Vue,Component, State} from 'nuxt-property-decorator'; |
| | | import { AgentOfStrictQuery } from '~/assets/ts/api/consultant'; |
| | | import { AgentOfStrictQuery } from '~/shared/models/strict-query.model'; |
| | | import { hideReviews } from '~/shared/const/hide-reviews'; |
| | | import { Vue,Component, State, namespace, Action} from 'nuxt-property-decorator'; |
| | | |
| | | const localStorage = namespace('localStorage'); |
| | | |
| | | @Component |
| | | export default class Reslut extends Vue{ |
| | | @State('strictQueryList') strictQueryList!: AgentOfStrictQuery; |
| | | @State('strictQueryList') |
| | | strictQueryList!: AgentOfStrictQuery[]; |
| | | |
| | | @Action |
| | | storeStrictQueryList!: (data: any) => Promise<number>; |
| | | |
| | | @localStorage.State |
| | | recommendConsultantItem!: string; |
| | | |
| | | pageList: any[] = []; |
| | | isVisiblePopUp = false; |
| | | popUpTxt = ''; |
| | | hideReviews = hideReviews; |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | mounted(): void { |
| | | if (this.recommendConsultantItem && this.strictQueryList.length === 0) { |
| | | const strictQueryDto = JSON.parse(this.recommendConsultantItem); |
| | | this.storeStrictQueryList(strictQueryDto); |
| | | } |
| | | } |
| | | |
| | | ////////////////////////////////////////////////////////////////////// |
| | | changePage(pageList: any[]) { |
| | | this.pageList = pageList; |
| | | } |
| | | |
| | | showAgentDetail(agentNo: string): void { |
| | | this.$router.push(`/agentInfo/${agentNo}`); |
| | | } |
| | | |
| | | openPopUp(txt: string) { |
| | | this.popUpTxt = txt; |
| | | this.isVisiblePopUp = true; |