| | |
| | | } |
| | | |
| | | function handleSubmit() { |
| | | console.log('type: ', type); |
| | | if (!formRef.value) return; |
| | | formRef.value.validate().then(({ valid, errors }: any) => { |
| | | if (valid) { |
| | |
| | | } |
| | | } |
| | | |
| | | async function personalUserFaceReal() { |
| | | async function personalUserIdentity3Real() { |
| | | try { |
| | | let params: API.PersonalUserIdentity3RealCommand = { |
| | | name: form.name, |
| | |
| | | verifyCode: form.verifyCode, |
| | | }; |
| | | let res = await electronSignServices.personalUserIdentity3Real(params); |
| | | if (res) { |
| | | Taro.navigateTo({ url: `${RouterPath.authenticationResult}` }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | async function personalUserIdentity3Real() {} |
| | | |
| | | async function personalUserFaceReal() { |
| | | try { |
| | | let params: API.PersonalUserFaceRealCommand = { |
| | | name: form.name, |
| | | identity: form.identity, |
| | | identityImg: form.identityImg?.[0]?.path ?? '', |
| | | identityBackImg: form.identityBackImg?.[0]?.path ?? '', |
| | | }; |
| | | let res = await electronSignServices.personalUserFaceReal(params); |
| | | if (res) { |
| | | const encodedUrl = encodeURIComponent(res); |
| | | Taro.navigateTo({ url: `${RouterPath.extraPage}?url=${encodedUrl}` }); |
| | | } |
| | | } catch (error) {} |
| | | } |
| | | </script> |
| | | |
| | | <style lang="scss"> |