wupengfei
昨天 49f26d3f32796eceafefe73e1d45f1fe73bf4eb9
feat: 实名
2个文件已添加
5个文件已修改
53 ■■■■ 已修改文件
apps/bMiniApp/src/pages/mine/index.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/project.private.config.json 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/app.config.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/constants/router.ts 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/authentication/authenticationRealName/InnerPage.vue 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.config.ts 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.vue 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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">
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
                }
            ]
        }
apps/cMiniApp/src/app.config.ts
@@ -66,6 +66,7 @@
        'authenticationResult/authenticationResult',
        'authenticationRealName/authenticationRealName',
        'authenticationFace/authenticationFace',
        'extraPage/extraPage',
      ],
    },
    {
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',
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>
apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.config.ts
New file
@@ -0,0 +1,3 @@
export default definePageConfig({
  disableScroll: true,
});
apps/cMiniApp/src/subpackages/authentication/extraPage/extraPage.vue
New file
@@ -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>