zhengyiming
17 小时以前 10b4a65359213309a942f58564ec843696154950
fix: 实名
3个文件已修改
62 ■■■■■ 已修改文件
apps/cMiniApp/project.config.json 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/project.private.config.json 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue 51 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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,
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": "",
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>