| | |
| | | // for type re-export |
| | | declare global { |
| | | // @ts-ignore |
| | | export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' |
| | | export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' |
| | | import('vue') |
| | | // @ts-ignore |
| | | export type { BackType, BackType } from './src/constants/enum' |
| | |
| | | // for type re-export |
| | | declare global { |
| | | // @ts-ignore |
| | | export type { Component, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' |
| | | export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue' |
| | | import('vue') |
| | | // @ts-ignore |
| | | export type { BackType, BackType } from './src/constants/enum' |
| | |
| | | |
| | | 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; |
| | |
| | | access?: EnumOcrAccess; |
| | | scene?: string; |
| | | isOssUrl?: boolean; |
| | | response?: FileItem; |
| | | url?: string; |
| | | onSuccess?: (res: API.GetIdentityFrontOcrCommandResult) => any; |
| | | }; |
| | | |
| | |
| | | options: UserCredentialVerifyOcrIDCardOptions = {} |
| | | ) { |
| | | try { |
| | | const { onSuccess, access, isOssUrl, response, scene } = options; |
| | | if (response?.path) { |
| | | const { onSuccess, access, isOssUrl, url, scene } = options; |
| | | if (url) { |
| | | let res = await ocrUtilsServices.getIdentityFrontOcr({ |
| | | access: access, |
| | | url: response.path, |
| | | url: url, |
| | | isOssUrl: isOssUrl, |
| | | }); |
| | | onSuccess?.(res); |