| | |
| | | <div class="user-info" v-if="isLogin"> |
| | | <div class="user-info-item"> |
| | | <div class="user-info-item-name">{{ userDetail?.name ?? '' }}</div> |
| | | <div class="user-info-item-gender"> |
| | | <img |
| | | v-if="userDetail?.gender === EnumUserGender.Male" |
| | | :src="IconMale" |
| | | class="user-info-item-gender-icon" |
| | | /> |
| | | <img |
| | | v-else-if="userDetail?.gender === EnumUserGender.Female" |
| | | :src="IconFemale" |
| | | class="user-info-item-gender-icon" |
| | | /> |
| | | </div> |
| | | <div class="user-info-item-position">{{ (userDetail?.roles ?? []).join(',') }}</div> |
| | | </div> |
| | | <div class="user-info-item"> |
| | | <template v-if="isCertified"> |
| | |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | }, |
| | | { |
| | | "name": "", |
| | | "pathName": "subpackages/authentication/authenticationHome/authenticationHome", |
| | | "query": "", |
| | | "launchMode": "default", |
| | | "scene": null |
| | | } |
| | | ] |
| | | } |
| | |
| | | 'authenticationResult/authenticationResult', |
| | | 'authenticationRealName/authenticationRealName', |
| | | 'authenticationFace/authenticationFace', |
| | | 'extraPage/extraPage', |
| | | ], |
| | | }, |
| | | { |
| | |
| | | authenticationJBR = '/subpackages/authentication/authenticationJBR/authenticationJBR', |
| | | authenticationRealName = '/subpackages/authentication/authenticationRealName/authenticationRealName', |
| | | authenticationFace = '/subpackages/authentication/authenticationFace/authenticationFace', |
| | | extraPage = '/subpackages/authentication/extraPage/extraPage', |
| | | citySelect = '/subpackages/city/citySelect/citySelect', |
| | | |
| | | mineSign = '/subpackages/mine/mineSign/mineSign', |
| | |
| | | } |
| | | |
| | | 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, |
| | |
| | | }; |
| | | 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, |
| | |
| | | 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> |
New file |
| | |
| | | export default definePageConfig({ |
| | | disableScroll: true, |
| | | }); |
New file |
| | |
| | | <template> |
| | | <!-- web-view 组件用于加载外部链接 --> |
| | | <web-view :src="urla" /> |
| | | </template> |
| | | |
| | | <script setup lang="ts"> |
| | | import Taro from '@tarojs/taro'; |
| | | |
| | | defineOptions({ |
| | | name: 'authenticationFaRen', |
| | | }); |
| | | |
| | | const router = Taro.useRouter(); |
| | | |
| | | const url = (router.params.url as string) ?? ''; |
| | | |
| | | const urla = computed(() => decodeURIComponent(url)); |
| | | </script> |