保誠-保戶業務員媒合平台
Tomas
2023-08-05 4b38e2fdc99e681edfd5ec5d923a9ca8b8de8d38
PAMapp/components/Consultant/ConsultantCard.vue
@@ -76,7 +76,7 @@
                    <p>性別:{{gender}}</p>
                    <p>年齡:{{appointmentDetail.age | toAgeLabel }}</p>
                    <p>職業:{{appointmentDetail.job}}</p>
                    <p>諮詢方式:{{appointmentDetail.consultationMethod | toConsulType }}</p>
                    <p>諮詢方式:{{appointmentDetail.consultationMethod | toConsultationMethod }}</p>
                    <p>需求:{{appointmentDetail.requirement ? appointmentDetail.requirement.split(',').join('、') : '--'}}</p>
                    <p
                        v-for="(item, index) in hopeContactTime"
@@ -175,15 +175,15 @@
                return upperNumber[index];
            }
        },
        formatHopeContactTime(item: string): string {
      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 '';
          const [hopeDay, hopeTime] = item.split('、');
          const day = hopeDay.split(',').length > 6 ? '不限日期' : hopeDay;
          const time = hopeTime.split(',').length > 3 ? '不限時間' : hopeTime;
          return `${day}、${time}`;
        }
        return ''; // 修正:移至 if (item) 的內部
      },
    }
})
export default class ConsultantCard extends Vue {