From f03c312b38771751a19372413beeaf7338cfabbc Mon Sep 17 00:00:00 2001 From: xingyy <64720302+Concur-max@users.noreply.github.com> Date: Fri, 28 Feb 2025 11:14:57 +0800 Subject: [PATCH] =?UTF-8?q?feat(realAuth):=20=E6=B7=BB=E5=8A=A0=E8=AF=81?= =?UTF-8?q?=E4=BB=B6=E7=B1=BB=E5=9E=8B=E5=92=8C=E5=8F=B7=E7=A0=81=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在实名认证页面添加证件类型和号码输入字段 - 更新国际化文件,添加相关翻译 - 修改个人资料页面,增加证件类型和号码显示 - 更新收集码签名页面,调整身份证件类型选择 --- app/components/x-van-select/index.vue | 2 +- .../signature/personal-Info/index.vue | 3 ++- app/pages/realAuth/components/detail.vue | 17 +++++++++++++++-- app/pages/realAuth/index.vue | 13 ++++++++++++- i18n/locales/en-US.json | 7 ++++++- i18n/locales/ja-JP.json | 7 ++++++- i18n/locales/zh-CN.json | 7 ++++++- i18n/locales/zh-TW.json | 7 ++++++- nuxt.config.js | 2 +- 9 files changed, 55 insertions(+), 10 deletions(-) diff --git a/app/components/x-van-select/index.vue b/app/components/x-van-select/index.vue index f147d1f..df7a53a 100644 --- a/app/components/x-van-select/index.vue +++ b/app/components/x-van-select/index.vue @@ -1,7 +1,7 @@ @@ -35,7 +40,7 @@ const {userInfo}= authStore() diff --git a/app/pages/realAuth/index.vue b/app/pages/realAuth/index.vue index a304d51..6e945f0 100644 --- a/app/pages/realAuth/index.vue +++ b/app/pages/realAuth/index.vue @@ -17,6 +17,11 @@ const { locale } = useI18n() const {userInfo,selectedZone}= authStore() const active=ref(locale.value==='zh-CN'?0:1) const { t } = useI18n() +const columns1 = ref([ + {text: t('realAuth.idCard'), value: '1'}, + {text: t('realAuth.passport'), value: '2'}, + {text: t('realAuth.other'), value: '3'}, +]) const form=ref({ realName: "", sex:'', @@ -124,6 +129,12 @@ const goLogin=()=>{ +
+ +
+
+ +
@@ -135,7 +146,7 @@ const goLogin=()=>{ -
+
{{ $t('realAuth.cancel') }}
diff --git a/i18n/locales/en-US.json b/i18n/locales/en-US.json index 689ba6f..4905db7 100644 --- a/i18n/locales/en-US.json +++ b/i18n/locales/en-US.json @@ -157,7 +157,12 @@ "male": "Male", "female": "Female" } - } + }, + "idTye": "Document Type", + "passport": "passport", + "other": "other", + "idNumber": "ID number", + "idNumberPlaceholder": "Please enter your ID number" }, "detail": { "text1": "Artist", diff --git a/i18n/locales/ja-JP.json b/i18n/locales/ja-JP.json index b552932..5a604a4 100644 --- a/i18n/locales/ja-JP.json +++ b/i18n/locales/ja-JP.json @@ -157,7 +157,12 @@ "male": "男性", "female": "女性" } - } + }, + "idTye": "ドキュメントタイプ", + "passport": "パスポート", + "other": "他の", + "idNumber": "ID番号", + "idNumberPlaceholder": "ID番号を入力してください" }, "detail": { "text1": "アーティスト", diff --git a/i18n/locales/zh-CN.json b/i18n/locales/zh-CN.json index adaf9d8..062c7f5 100644 --- a/i18n/locales/zh-CN.json +++ b/i18n/locales/zh-CN.json @@ -157,7 +157,12 @@ "male": "男", "female": "女" } - } + }, + "idTye": "证件类型", + "passport": "护照", + "other": "其他", + "idNumber": "证件号", + "idNumberPlaceholder": "请输入证件号" }, "detail": { "text1": "作者", diff --git a/i18n/locales/zh-TW.json b/i18n/locales/zh-TW.json index 51b5060..1d60898 100644 --- a/i18n/locales/zh-TW.json +++ b/i18n/locales/zh-TW.json @@ -208,7 +208,12 @@ "male": "男", "female": "女" } - } + }, + "idTye": "證件類型", + "passport": "護照", + "other": "其他", + "idNumber": "證件號", + "idNumberPlaceholder": "請輸入證件號" }, "detail": { "text1": "作者", diff --git a/nuxt.config.js b/nuxt.config.js index e144652..d8e8076 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -127,7 +127,7 @@ export default defineNuxtConfig({ compatibilityVersion: 4, }, // 指定 Nuxt 应用程序的兼容性日期,确保应用程序在未来的 Nuxt 版本中保持稳定性 - compatibilityDate: '2025-01-09', + compatibilityDate: '2025-02-28', devServer: { host: '0.0.0.0', // Set the host to 'localhost' port: 3000, // Set the port to 3000 or any other port you prefer