From 49f26d3f32796eceafefe73e1d45f1fe73bf4eb9 Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期三, 20 八月 2025 15:28:41 +0800
Subject: [PATCH] feat: 实名

---
 apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.config.ts        |    3 +++
 apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue |   10 ++++++++--
 apps/bMiniApp/src/pages/mine/index.vue                                            |   13 -------------
 apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.vue              |   18 ++++++++++++++++++
 apps/cMiniApp/src/constants/router.ts                                             |    1 +
 apps/cMiniApp/src/app.config.ts                                                   |    1 +
 apps/cMiniApp/project.private.config.json                                         |    7 +++++++
 7 files changed, 38 insertions(+), 15 deletions(-)

diff --git a/apps/bMiniApp/src/pages/mine/index.vue b/apps/bMiniApp/src/pages/mine/index.vue
index 0f9af53..4c05055 100644
--- a/apps/bMiniApp/src/pages/mine/index.vue
+++ b/apps/bMiniApp/src/pages/mine/index.vue
@@ -18,19 +18,6 @@
             <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">
diff --git a/apps/cMiniApp/project.private.config.json b/apps/cMiniApp/project.private.config.json
index 5c9b9cc..145ea39 100644
--- a/apps/cMiniApp/project.private.config.json
+++ b/apps/cMiniApp/project.private.config.json
@@ -85,6 +85,13 @@
                     "query": "",
                     "launchMode": "default",
                     "scene": null
+                },
+                {
+                    "name": "",
+                    "pathName": "subpackages/authentication/authenticationHome/authenticationHome",
+                    "query": "",
+                    "launchMode": "default",
+                    "scene": null
                 }
             ]
         }
diff --git a/apps/cMiniApp/src/app.config.ts b/apps/cMiniApp/src/app.config.ts
index 73865fd..8a968fd 100644
--- a/apps/cMiniApp/src/app.config.ts
+++ b/apps/cMiniApp/src/app.config.ts
@@ -66,6 +66,7 @@
         'authenticationResult/authenticationResult',
         'authenticationRealName/authenticationRealName',
         'authenticationFace/authenticationFace',
+        'extraPage/extraPage',
       ],
     },
     {
diff --git a/apps/cMiniApp/src/constants/router.ts b/apps/cMiniApp/src/constants/router.ts
index fda33b4..d394882 100644
--- a/apps/cMiniApp/src/constants/router.ts
+++ b/apps/cMiniApp/src/constants/router.ts
@@ -29,6 +29,7 @@
   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',
diff --git a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
index 28412d9..f1c3fe3 100644
--- a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
@@ -159,6 +159,7 @@
 }
 
 function handleSubmit() {
+  console.log('type: ', type);
   if (!formRef.value) return;
   formRef.value.validate().then(({ valid, errors }: any) => {
     if (valid) {
@@ -176,7 +177,7 @@
   }
 }
 
-async function personalUserFaceReal() {
+async function personalUserIdentity3Real() {
   try {
     let params: API.PersonalUserIdentity3RealCommand = {
       name: form.name,
@@ -188,11 +189,12 @@
     };
     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,
@@ -201,6 +203,10 @@
       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>
diff --git a/apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.config.ts b/apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.config.ts
new file mode 100644
index 0000000..305fdb1
--- /dev/null
+++ b/apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.config.ts
@@ -0,0 +1,3 @@
+export default definePageConfig({
+  disableScroll: true,
+});
diff --git a/apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.vue b/apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.vue
new file mode 100644
index 0000000..72ae572
--- /dev/null
+++ b/apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.vue
@@ -0,0 +1,18 @@
+<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>

--
Gitblit v1.9.1