From 10b4a65359213309a942f58564ec843696154950 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 20 八月 2025 10:55:18 +0800
Subject: [PATCH] fix: 实名

---
 apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue |   51 +++++++++++++------------
 apps/cMiniApp/project.config.json                                                 |    4 +-
 apps/cMiniApp/project.private.config.json                                         |    7 +++
 3 files changed, 35 insertions(+), 27 deletions(-)

diff --git a/apps/cMiniApp/project.config.json b/apps/cMiniApp/project.config.json
index cc53dd5..1d057ff 100644
--- a/apps/cMiniApp/project.config.json
+++ b/apps/cMiniApp/project.config.json
@@ -3,8 +3,8 @@
     "description": "",
     "setting": {
         "urlCheck": false,
-        "es6": false,
-        "enhance": false,
+        "es6": true,
+        "enhance": true,
         "postcss": false,
         "preloadBackgroundData": false,
         "minified": false,
diff --git a/apps/cMiniApp/project.private.config.json b/apps/cMiniApp/project.private.config.json
index 51fe64c..5c9b9cc 100644
--- a/apps/cMiniApp/project.private.config.json
+++ b/apps/cMiniApp/project.private.config.json
@@ -10,6 +10,13 @@
         "miniprogram": {
             "list": [
                 {
+                    "name": "瀹炲悕璁よ瘉",
+                    "pathName": "subpackages/authentication/authenticationRealName/authenticationRealName",
+                    "query": "type=realName",
+                    "launchMode": "default",
+                    "scene": null
+                },
+                {
                     "name": "鎴戠殑绠�鍘�",
                     "pathName": "subpackages/curriculum/mineCurriculumVitae/mineCurriculumVitae",
                     "query": "",
diff --git a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
index 2ab5db4..fbfe46a 100644
--- a/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
+++ b/apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue
@@ -3,14 +3,9 @@
     <nut-form :model-value="form" ref="formRef" :rules="rules">
       <ProFormItemCell label="韬唤璇佺収鐗�:" required>
         <div class="id-imgUrl-wrapper">
-          <nut-form-item
-            label=" "
-            class="bole-form-item"
-            prop="legalPersonIdFrontImgUrl"
-            label-width="0px"
-          >
+          <nut-form-item label=" " class="bole-form-item" prop="identityImg" label-width="0px">
             <Uploader
-              v-model:file-list="form.legalPersonIdFrontImgUrl"
+              v-model:file-list="form.identityImg"
               :maximum="1"
               :limitFileSize="10"
               class="bole-uploader nopaddingtop"
@@ -24,14 +19,9 @@
               </template>
             </Uploader>
           </nut-form-item>
-          <nut-form-item
-            label=" "
-            class="bole-form-item"
-            prop="legalPersonIdBackImgUrl"
-            label-width="0px"
-          >
+          <nut-form-item label=" " class="bole-form-item" prop="identityBackImg" label-width="0px">
             <Uploader
-              v-model:file-list="form.legalPersonIdBackImgUrl"
+              v-model:file-list="form.identityBackImg"
               :maximum="1"
               :limitFileSize="10"
               class="bole-uploader nopaddingtop"
@@ -83,9 +73,9 @@
             </template>
           </nut-input>
         </nut-form-item>
-        <nut-form-item label="鐭俊楠岃瘉鐮�:" class="bole-form-item" prop="verificationCode" required>
+        <nut-form-item label="鐭俊楠岃瘉鐮�:" class="bole-form-item" prop="verifyCode" required>
           <nut-input
-            v-model.trim="form.verificationCode"
+            v-model.trim="form.verifyCode"
             class="nut-input-text bole-input-text"
             placeholder="璇疯緭鍏ラ獙璇佺爜"
             type="number"
@@ -102,7 +92,6 @@
 </template>
 
 <script setup lang="ts">
-import { VerificationCodeBusinessType } from '@12333/constants';
 import { ProFormCaptcha, ProFormItemCell } from 'senin-mini/components';
 import * as electronSignServices from '@12333/services/apiV2/electronSign';
 import { FileItem } from '@nutui/nutui-taro/dist/types/__VUE/uploader/type';
@@ -119,12 +108,12 @@
 const type = router.params?.type ?? '';
 
 const form = reactive({
-  legalPersonIdFrontImgUrl: [] as FileItem[],
-  legalPersonIdBackImgUrl: [] as FileItem[],
+  identityImg: [] as FileItem[],
+  identityBackImg: [] as FileItem[],
   name: '',
   identity: '',
   phoneNumber: '',
-  verificationCode: '',
+  verifyCode: '',
 });
 
 const formRef = ref<any>(null);
@@ -132,21 +121,21 @@
 
 const rules: FormRules = {
   name: [{ required: true, message: '璇峰~鍐欏鍚�' }],
-  legalPersonIdFrontImgUrl: [
+  identityImg: [
     { required: true, message: '璇蜂笂浼犺韩浠借瘉浜哄儚闈�', validator: FormValidator.validatorArray },
   ],
-  legalPersonIdBackImgUrl: [
+  identityBackImg: [
     { required: true, message: '璇蜂笂浼犺韩浠借瘉鍥藉窘闈�', validator: FormValidator.validatorArray },
   ],
   identity: [
     { required: true, message: '璇峰~鍐欒韩浠借瘉鍙风爜' },
     { message: '璇疯緭鍏ユ纭殑韬唤璇佸彿鐮�', validator: FormValidator.validatorIDCard },
   ],
-  legalPersonContactPhone: [
+  phoneNumber: [
     { required: true, message: '璇峰~鍐欐墜鏈哄彿鐮�' },
     { message: '璇疯緭鍏ユ纭殑鎵嬫満鍙风爜', validator: FormValidator.validatorPhoneNumber },
   ],
-  verificationCode: [{ required: true, message: '璇疯緭鍏ラ獙璇佺爜' }],
+  verifyCode: [{ required: true, message: '璇疯緭鍏ラ獙璇佺爜' }],
 };
 
 async function onGetCaptcha(phoneNumber: string) {
@@ -187,7 +176,19 @@
   }
 }
 
-async function personalUserFaceReal() {}
+async function personalUserFaceReal() {
+  try {
+    let params: API.PersonalUserIdentity3RealCommand = {
+      name: form.name,
+      phoneNumber: form.phoneNumber,
+      identity: form.identity,
+      identityImg: form.identityImg?.[0]?.path ?? '',
+      identityBackImg: form.identityBackImg?.[0]?.path ?? '',
+      verifyCode: form.verifyCode,
+    };
+    let res = await electronSignServices.personalUserIdentity3Real(params);
+  } catch (error) {}
+}
 async function personalUserIdentity3Real() {}
 </script>
 

--
Gitblit v1.9.1