| | |
| | | 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'; |
| | |
| | | name: 'InnerPage', |
| | | }); |
| | | |
| | | const { userDetail, updateUserInfo } = useUser(); |
| | | const router = Taro.useRouter(); |
| | | const type = router.params?.type ?? ''; |
| | | |
| | |
| | | identityBackImg: [] as FileItem[], |
| | | name: '', |
| | | identity: '', |
| | | phoneNumber: '', |
| | | phoneNumber: userDetail.value?.contactPhoneNumber, |
| | | verifyCode: '', |
| | | }); |
| | | |
| | |
| | | |
| | | function handleFrontImgUrlChange(response: FileItem) { |
| | | userCredentialVerifyOcrIDCard({ |
| | | response: response, |
| | | url: response?.url, |
| | | access: EnumOcrAccess.Baidu, |
| | | isOssUrl: true, |
| | | onSuccess(res) { |
| | | if (res.model?.name) form.name = res.model?.name; |
| | | if (res.model?.identity) form.identity = res.model?.identity; |
| | |
| | | }; |
| | | let res = await electronSignServices.personalUserFaceReal(params); |
| | | if (res) { |
| | | const encodedUrl = encodeURIComponent(res); |
| | | // 为了兼容旧版本的api res直接是faceUrl |
| | | const encodedUrl = encodeURIComponent(typeof res === 'string' ? res : res.faceUrl); |
| | | updateUserInfo(); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | } |
| | | } catch (error) {} |