From 391d7db141245798c64aa8acb0f143ab4152aa79 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期三, 10 十一月 2021 10:47:46 +0800 Subject: [PATCH] TODO#130015/130016 [推薦保險顧問/我的顧問清單] api 串接 --- PAMapp/components/Consultant/ConsultantCard.vue | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index 4202531..baa10d8 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -9,11 +9,11 @@ :size="50" :src="agentInfo.img" class="cursor--pointer" - @click.native="$router.push('/agentInfo')" + @click.native="$router.push(`/agentInfo`)" ></el-avatar> <div class="satisfaction"> <i class="icon-star pam-icon icon--yellow satisfaction"></i> - <span>{{agentInfo.satisfaction}}</span> + <span>{{agentInfo.avgScore }}</span> </div> </el-col> <el-col :xs="10" :sm="15"> @@ -21,9 +21,9 @@ <div class="professionals"> <span class="professionalsTxt" - v-for="(professional, index) in agentInfo.professionals" + v-for="(expertise, index) in agentInfo.expertise" :key="index" - >#{{professional}}</span> + >#{{expertise}}</span> </div> <div class="delete" @@ -65,12 +65,12 @@ <script lang="ts"> import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator'; -import { Agents } from '~/plugins/api/home'; +import { Consultants } from '~/assets/ts/api/consultant'; import { isMobileDevice } from '~/assets/ts/device'; @Component export default class ConsultantCard extends Vue { - @Prop() agentInfo!: Agents; + @Prop() agentInfo!: Consultants; isVisibleDialog = false; width: string = ''; -- Gitblit v1.8.0