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/ConsultantCard.vue | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index fcbb9b7..92bb8ef 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -46,6 +46,7 @@ <Ui-Dialog :isVisible.sync="isVisibleDialog" :width="width" + class="pam-myDemand-dialog" > <div v-if="appointmentDetail"> <h5 class="subTitle text--center mb-30">������</h5> @@ -57,11 +58,11 @@ <p>�批嚗{gender}}</p> <p>撟湧翩嚗{appointmentDetail.age}}</p> <p>�璆哨�{appointmentDetail.job}}</p> - <p>��瘙�{appointmentDetail.requirement.replace(',', '��')}}</p> + <p>��瘙�{appointmentDetail.requirement.split(',').join('��')}}</p> <p v-for="(item, index) in hopeContactTime" :key="index" - >��蝯⊥�挾{{index + 1 | formatNumber}}嚗{item}}</p> + >��蝯⊥�挾{{index + 1 | formatNumber}}嚗{ item | formatHopeContactTime }}</p> </div> </div> </Ui-Dialog> @@ -82,6 +83,15 @@ const upperNumber = ['�', '銝�', '鈭�', '銝�', '���', '鈭�', '�', '銝�', '�', '銋�', '���'] return upperNumber[index]; } + }, + formatHopeContactTime(item: string): string { + if (item) { + const [hopeDay, hopeTime] = item.split('��'); + const day = hopeDay.split(',').length > 6 ? '銝����' : hopeDay; + const time = hopeTime.split(',').length > 3 ? '銝����' : hopeTime; + return `${day}��${time}`; + } + return ''; } } }) @@ -139,7 +149,7 @@ get hopeContactTime() { const contactList = this.appointmentDetail.hopeContactTime .split("'").map(item => item.slice(0, item.length)); - return contactList.filter(item => !!item) + return contactList.filter(item => !!item && item !== ",") } reserveCommunication() { const contactStatus = this.agentInfo.contactStatus; @@ -253,8 +263,8 @@ .dialogInfo { font-size: 20px; - overflow:scroll; + overflow-y:scroll; height: 400px; } -</style> \ No newline at end of file +</style> -- Gitblit v1.8.0