| | |
| | | <p>é»è©±ï¼{{client.phone}}</p> |
| | | <p>Emailï¼{{client.email}}</p> |
| | | <p>æ§å¥ï¼{{gender}}</p> |
| | | <p>年齡ï¼{{client.age}}</p> |
| | | <p>年齡ï¼{{client.age | toAgeLabel }}</p> |
| | | <p>è·æ¥ï¼{{client.job}}</p> |
| | | <p>éæ±ï¼{{client.requirement.split(',').join('ã')}}</p> |
| | | <p v-for="(item, index) in hopeContactTime" :key="index">é£çµ¡ææ®µ{{index + 1 | formatNumber}}ï¼{{ item | formatHopeContactTime}}</p> |
| | |
| | | <p>é»è©±ï¼{{appointmentDetail.phone}}</p> |
| | | <p>Emailï¼{{appointmentDetail.email}}</p> |
| | | <p>æ§å¥ï¼{{gender}}</p> |
| | | <p>年齡ï¼{{appointmentDetail.age}}</p> |
| | | <p>年齡ï¼{{appointmentDetail.age | toAgeLabel }}</p> |
| | | <p>è·æ¥ï¼{{appointmentDetail.job}}</p> |
| | | <p>éæ±ï¼{{appointmentDetail.requirement.split(',').join('ã')}}</p> |
| | | <p |
| | |
| | | { src: '~/plugins/vue-awesome-swiper.js', mode: 'client' }, |
| | | '~/plugins/service.ts', |
| | | '~/plugins/vue-scroll-picker', |
| | | '~/plugins/filters/date.filter.ts' |
| | | '~/plugins/filters/date.filter.ts', |
| | | '~/plugins/filters/age.filter.ts', |
| | | ], |
| | | |
| | | // Auto import components: https://go.nuxtjs.dev/config-components |
¤ñ¹ï·sÀÉ®× |
| | |
| | | import Vue from 'vue' |
| | | |
| | | Vue.filter('toAgeLabel', (value: string): string => { |
| | | |
| | | if (!value || typeof value !== 'string') { |
| | | return '--'; |
| | | }; |
| | | |
| | | const ageLabel = { |
| | | 'under_20': '20æ²ä»¥ä¸', |
| | | '21-30': '21-30 æ²', |
| | | '31-40': '31-40 æ²', |
| | | '41-50': '41-50 æ²', |
| | | '46-55': '46-55 æ²', |
| | | '51-60': '51-60 æ²', |
| | | '61-70': '61-70 æ²', |
| | | 'over_71': '71 æ²ä»¥ä¸' |
| | | }; |
| | | |
| | | return ageLabel[value]; |
| | | }) |