From 84efab848d77c44a7b46e06a12cbfee64e13e9c5 Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期二, 30 十一月 2021 10:33:47 +0800 Subject: [PATCH] fixed: TODO#130845 推薦保險顧問: 伍夠勇跟左邊左右滑動疊到 --- PAMapp/components/Consultant/ConsultantList.vue | 38 +++++++++++++++++++------------------- 1 files changed, 19 insertions(+), 19 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantList.vue b/PAMapp/components/Consultant/ConsultantList.vue index 250f084..e9d23e7 100644 --- a/PAMapp/components/Consultant/ConsultantList.vue +++ b/PAMapp/components/Consultant/ConsultantList.vue @@ -1,47 +1,47 @@ <template> <div> + <template v-if="agents.length > 0"> <ConsultantCard v-for="(agent, index) in agents" :key="index" :agentInfo="agent" - @removeAgent="removeAgent" ></ConsultantCard> </template> - <template v-else-if="noLogin"> - <div class="emptyRowStyle"> - <div class="mdTxt login" @click="$router.push('/login')">��</div> - <div class="smTxt txt">���憭歇�憿批��</div> - </div> - </template> - <template v-else> + <template v-if="isLogin && agents.length === 0"> <div class="emptyRowStyle"> <div class="smTxt txt">����撌脤憿批��</div> + </div> + </template> + <template v-if="!isLogin"> + <div class="emptyRowStyle"> + <div class="mdTxt login fix-chrome-click--issue" @click="$router.push('/login')">�� | 閮餃��</div> + <div class="smTxt txt ">���憭�</div> </div> </template> </div> </template> <script lang="ts"> -import { Vue, Component, Prop, Emit } from 'nuxt-property-decorator'; -import { Agents } from '~/plugins/api/home'; +import { Vue, Component, Prop } from 'nuxt-property-decorator'; +import { Consultants } from '~/assets/ts/api/consultant'; +import { isLogin } from '~/assets/ts/auth'; @Component export default class ConsultantList extends Vue { - @Prop() agents!: Agents[]; + @Prop() agents!: Consultants[]; - noLogin = false; - - @Emit('removeAgent') removeAgent(agentId: number) { - return agentId; + get isLogin() { + return isLogin(); } + } </script> <style lang="scss" scoped> .emptyRowStyle { - background-color: $white; + background-color: $PRIMARY_WHITE; width: 100%; height: 100px; display: flex; @@ -49,14 +49,14 @@ align-items: center; .login { - color: $primaryRed; + color: $PRIMARY_RED; cursor: pointer; } .txt { - color: $prudentialGrey; + color: $PRUDENTIAL_GREY; margin-left: 17px; } } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0