|  |  |  | 
|---|
|  |  |  | import { ProFormCaptcha, ProFormItemCell } from 'senin-mini/components'; | 
|---|
|  |  |  | import * as commonServices from '@12333/services/api/Common'; | 
|---|
|  |  |  | import { FileItem } from '@nutui/nutui-taro/dist/types/__VUE/uploader/type'; | 
|---|
|  |  |  | import { vatLicense, userCredentialVerifyOcrIDCard } from '@12333/hooks'; | 
|---|
|  |  |  | import { vatLicense } from '@12333/hooks'; | 
|---|
|  |  |  | import { Message } from '@12333/utils'; | 
|---|
|  |  |  | import { Photograph } from '@nutui/icons-vue-taro'; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | }; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | function handleFrontImgUrlChange(response: FileItem) { | 
|---|
|  |  |  | userCredentialVerifyOcrIDCard(response, { | 
|---|
|  |  |  | onSuccess(res) { | 
|---|
|  |  |  | if (res.realName) form.legalPersonName = res.realName; | 
|---|
|  |  |  | if (res.idcardNum) form.legalPersonIdNumber = res.idcardNum; | 
|---|
|  |  |  | }, | 
|---|
|  |  |  | }); | 
|---|
|  |  |  | // userCredentialVerifyOcrIDCard(response, { | 
|---|
|  |  |  | //   onSuccess(res) { | 
|---|
|  |  |  | //     if (res.realName) form.legalPersonName = res.realName; | 
|---|
|  |  |  | //     if (res.idcardNum) form.legalPersonIdNumber = res.idcardNum; | 
|---|
|  |  |  | //   }, | 
|---|
|  |  |  | // }); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | </script> | 
|---|
|  |  |  |  | 
|---|