From a8e5dcd396b2934e0abdd97e2241bd020afe569b Mon Sep 17 00:00:00 2001 From: Mila <Mila@pollex.com.tw> Date: 星期四, 11 十一月 2021 14:49:23 +0800 Subject: [PATCH] TODO#130018 [加入顧問] API 串接 --- PAMapp/components/Consultant/ConsultantCard.vue | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/PAMapp/components/Consultant/ConsultantCard.vue b/PAMapp/components/Consultant/ConsultantCard.vue index 47965a1..e771df0 100644 --- a/PAMapp/components/Consultant/ConsultantCard.vue +++ b/PAMapp/components/Consultant/ConsultantCard.vue @@ -27,7 +27,8 @@ </div> <div class="delete" - v-if="agentInfo.contactStatus === 'picked'" + v-if="agentInfo.contactStatus !== 'reserved' + || agentInfo.contactStatus !== 'contacted'" @click="removeAgent" >蝘駁</div> </el-col> @@ -92,11 +93,12 @@ let date = newDate.getDate(); let hours = newDate.getHours(); let minutes = newDate.getMinutes(); - return `${year}/${month}/${date} ${hours} : ${minutes}` + return isLogin() ? `${year}/${month}/${date} ${hours} : ${minutes}` : '' } reserveCommunication() { - if (this.agentInfo.contactStatus === 'picked') { + const contactStatus = this.agentInfo.contactStatus; + if (contactStatus !== 'reserved' && contactStatus !== 'contacted') { isLogin() ? this.$router.push('/questionnaire') : this.$router.push('/login'); } else { this.width = isMobileDevice() ? '80%' : ''; -- Gitblit v1.8.0