|  |  |  | 
|---|
|  |  |  | name: 'InnerPage', | 
|---|
|  |  |  | }); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | const { userDetail } = useUser(); | 
|---|
|  |  |  | const { userDetail, updateUserInfo } = useUser(); | 
|---|
|  |  |  | const router = Taro.useRouter(); | 
|---|
|  |  |  | const type = router.params?.type ?? ''; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 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) {} | 
|---|