<template>
|
<div>
|
<div class="mdTxt pb-10">嚴選顧問推薦</div>
|
<ul class="pam-rec-agent__list">
|
<li class="pam-rec-agent-card" v-for="(strictQueryList,index) in pageList" :key="index">
|
<div class="pam-rec-agent-card__content">
|
<div class="pam-rec-agent-card__content-header">
|
<div class="pam-rec-agent-card__avatar">
|
|
|
<UiAvatar :size="120" :fileName="strictQueryList.img" ></UiAvatar>
|
</div>
|
<div class="pam-rec-agent-card__main-info">
|
<div class="fz-20 pt-10 rec-desktop-name">{{ strictQueryList.name }}</div>
|
<div class="rec-role">{{ strictQueryList.role }}</div>
|
<span class="rec-detail" @click="showAgentDetail(strictQueryList.agentNo)">詳細資料</span>
|
</div>
|
</div>
|
<div class="pam-rec-agent-card__content-body">
|
<el-row type="flex" class="pam-paragraph">
|
<div class="field">
|
<div class="field__label">
|
專長領域
|
</div>
|
<div class="field__content expertieses-container">
|
<div class="pr-10 pb-10" v-for="(expert, index) in strictQueryList.expertise" :key="index">
|
#{{ expert }}
|
</div>
|
</div>
|
</div>
|
</el-row>
|
|
<el-row type="flex" class="pam-paragraph">
|
<el-col :span="12">
|
<div class="field__label">
|
服務資歷
|
</div>
|
<div class="field__content">
|
{{ strictQueryList.seniority }}
|
</div>
|
</el-col>
|
<el-col :span="12">
|
<div class="field__label">
|
客戶滿意度
|
</div>
|
<div class="field__content">
|
<i class="icon-star" style="color:#F2C75C"></i>
|
{{ strictQueryList.avgScore }}
|
</div>
|
</el-col>
|
</el-row>
|
|
</div>
|
<div class="pam-rec-agent-card__content-footer">
|
<el-row
|
type="flex"
|
justify="center"
|
>
|
<el-button class="btn">+ 顧問清單</el-button>
|
<el-button class="btn2" type="primary" style="margin-left: 10px" @click="$router.push('/questionnaire')"
|
>進行預約</el-button>
|
</el-row>
|
|
<!-- <AddAndReservedBtns :cusClass=""></AddAndReservedBtns> -->
|
</div>
|
</div>
|
</li>
|
</ul>
|
|
<UiPagination
|
:totalList="strictQueryList"
|
@changePage="changePage"
|
:pageSize = 6
|
></UiPagination>
|
|
</div>
|
</template>
|
<script lang="ts">
|
import {Vue,Component, State} from 'nuxt-property-decorator';
|
import { AgentOfStrictQuery } from '~/assets/ts/api/consultant';
|
|
@Component
|
export default class Reslut extends Vue{
|
@State('strictQueryList') strictQueryList!: AgentOfStrictQuery;
|
|
pageList: any[] = [];
|
|
changePage(pageList: any[]) {
|
this.pageList = pageList;
|
}
|
showAgentDetail(agentNo: string): void {
|
this.$router.push(`/agentInfo/${agentNo}`);
|
}
|
|
|
}
|
</script>
|
|
<style lang="scss" scoped>
|
.btn{
|
width: 139px;
|
height: 47px;
|
}
|
.btn2{
|
width: 120px;
|
height: 47px;
|
}
|
|
.pam-rec-agent-card {
|
margin-bottom: 10px;
|
border-radius: 10px;
|
border: 1px solid $LIGHT_GREY;
|
padding: 20px 33px;
|
margin-right:-20px;
|
margin-left:-20px;
|
|
.pam-rec-agent-card__content {
|
width: 270px;
|
.pam-rec-agent-card__content-header {
|
display: flex;
|
.pam-rec-agent-card__avatar {
|
display: flex;
|
flex-direction: row;
|
margin-right: 20px;
|
|
}
|
.pam-rec-agent-card__main-info {
|
display: flex;
|
flex-direction: column;
|
justify-content: flex-end;
|
.rec-role {
|
font-size: 16px;
|
color: $PRUDENTIAL_GREY;
|
font-weight: bold;
|
margin-top: 4px;
|
}
|
.rec-detail{
|
font-size: 20px;
|
color:$PRIMARY_RED;
|
font-weight: bold;
|
padding-top: 30px;
|
cursor: pointer;
|
}
|
}
|
}
|
}
|
}
|
|
.field__label {
|
font-size: 16px;
|
color: $PRUDENTIAL_GREY;
|
font-weight:bold;
|
margin-bottom: 7px;
|
}
|
.field__content{
|
font-size: 18px;
|
}
|
.expertieses-container {
|
display: flex;
|
flex-wrap: wrap;
|
}
|
|
@include desktop{
|
.btn{
|
width: 90px;
|
height: 43px;
|
margin-left: 29px;
|
margin-right: 0px
|
}
|
.btn2{
|
width: 90px;
|
height: 43px;
|
}
|
.page-container{}
|
.pam-rec-agent__list{
|
display: flex;
|
flex-wrap: wrap;
|
flex-direction:row;
|
width: auto;
|
}
|
.pam-paragraph{
|
margin-top: 10px;
|
}
|
.pam-rec-agent-card {
|
margin-right: 20px;
|
margin-bottom: 10px;
|
border-radius: 10px;
|
border: 1px solid $LIGHT_GREY;
|
padding-top: 15px;
|
padding-bottom: 15px;
|
padding-left: 28px;
|
padding-right: 20px;
|
width: 30%;
|
margin-left: 10px;
|
|
.pam-rec-agent-card__content {
|
width: 170px;
|
.pam-rec-agent-card__content-header {
|
display: flex;
|
.pam-rec-agent-card__avatar {
|
display: flex;
|
flex-direction: row;
|
margin-right: 20px;
|
.avatar{
|
width: 80px;
|
height: 80px;
|
border-radius: 50%;
|
margin-bottom: 10px;
|
}
|
}
|
.pam-rec-agent-card__main-info {
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
.rec-desktop-name{
|
font-size: 12px;
|
font-weight: bold;
|
}
|
.rec-role {
|
font-size: 12px;
|
color:$PRUDENTIAL_GREY;
|
}
|
.rec-detail{
|
font-size: 12px;
|
color:$PRIMARY_RED;
|
font-weight: bold;
|
padding-top: 10px;
|
}
|
}
|
}
|
}
|
|
}
|
.field__label {
|
font-size: 12px;
|
color: $PRUDENTIAL_GREY;
|
font-weight:bold;
|
margin-bottom: 7px;
|
}
|
.field__content{
|
font-size: 12px;
|
}
|
.expertieses-container {
|
display: flex;
|
flex-wrap: wrap;
|
|
}
|
.btn{
|
width: 90px;
|
height: 43px;
|
font-size: 14px;
|
display: flex;
|
justify-content: center;
|
padding-top: 12px;
|
margin-right: 20px;
|
}
|
.btn2{
|
width: 90px;
|
height: 43px;
|
font-size: 14px;
|
display: flex;
|
justify-content: center;
|
padding-top: 12px;
|
margin-right: -10px;
|
}
|
.el-row--flex.is-justify-center{
|
justify-content:none;
|
}
|
}
|
</style>
|