保誠-保戶業務員媒合平台
HelenHuang
2021-11-12 4ffc0db28966ad106ded6ff0058c2dad7850bf78
PAMapp/components/Consultant/ConsultantCard.vue
@@ -9,7 +9,7 @@
                            :size="50"
                            :src="agentInfo.img"
                            class="cursor--pointer"
                            @click.native="$router.push(`/agentInfo`)"
                            @click.native="showAgentDetail(agentInfo.agentNo);"
                        ></el-avatar>
                        <div class="satisfaction">
                            <i class="icon-star pam-icon icon--yellow satisfaction"></i>
@@ -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,12 +93,13 @@
        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') {
            isLogin() ? this.$router.push('/questionnaire') : this.$router.push('/login');
        const contactStatus = this.agentInfo.contactStatus;
        if (contactStatus !== 'reserved' && contactStatus !== 'contacted') {
            isLogin() ? this.$router.push(`/questionnaire/${this.agentInfo.agentNo}`) : this.$router.push('/login');
        } else {
            this.width = isMobileDevice() ? '80%' : '';
            this.isVisibleDialog = true;
@@ -107,6 +109,10 @@
    @Emit('removeAgent') removeAgent() {
        return this.agentInfo.agentNo;
    }
    showAgentDetail(agentNo: string): void {
        this.$router.push(`/agentInfo/${agentNo}`);
    }
}
</script>