Merge branch 'master' of http://120.26.58.240:8888/r/flexJobMiniApp
| | |
| | | |
| | | const form = reactive({ |
| | | name: '', |
| | | billingMethod: EnumBillingMethod.Month, |
| | | billingMethod: EnumBillingMethod.Day, |
| | | serviceFee: '' as any as number, |
| | | settlementCycle: EnumSettlementCycle.Month, |
| | | settlementCycle: EnumSettlementCycle.Day, |
| | | benefits: [] as string[], |
| | | ageMinLimit: '' as any as number, |
| | | ageMaxLimit: '' as any as number, |
| | |
| | | "description": "", |
| | | "setting": { |
| | | "urlCheck": false, |
| | | "es6": false, |
| | | "enhance": false, |
| | | "es6": true, |
| | | "enhance": true, |
| | | "postcss": false, |
| | | "preloadBackgroundData": false, |
| | | "minified": false, |
| | |
| | | v-model.trim="form.name" |
| | | class="nut-input-text bole-input-text" |
| | | placeholder="请填写姓名" |
| | | :formatter="filterNotCN" |
| | | type="text" |
| | | /> |
| | | </nut-form-item> |
| | |
| | | class="nut-input-text bole-input-text" |
| | | placeholder="请输入验证码" |
| | | type="number" |
| | | :max-length="6" |
| | | /> |
| | | </nut-form-item> |
| | | </template> |
| | |
| | | import { FileItem } from '@nutui/nutui-taro/dist/types/__VUE/uploader/type'; |
| | | import { Photograph } from '@nutui/icons-vue-taro'; |
| | | import { FormRules } from '@nutui/nutui-taro/dist/types/__VUE/form/types'; |
| | | import { FormValidator } from '@12333/utils'; |
| | | import { FormValidator, filterNotCN } from '@12333/utils'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { userCredentialVerifyOcrIDCard } from '@12333/hooks'; |
| | | import { EnumOcrAccess } from '@12333/constants'; |
| | |
| | | if (!phone) return ''; |
| | | return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); |
| | | }; |
| | | |
| | | export function filterCN(str: string) { |
| | | return str.replace(/[\u4e00-\u9fa5]/gi, ''); |
| | | } |
| | | |
| | | export function filterNotCN(str: string) { |
| | | return str.replace(/[^\u4e00-\u9fa5]/gi, ''); |
| | | } |