From 1f6532e8350694f13eb26b9854c7a16b1c185d13 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Wed, 22 Apr 2026 18:09:05 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E6=9C=9F=E5=B8=83=E5=B1=80=E5=B7=B2?= =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=81=E6=B3=A8=E5=86=8C=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E5=B7=B2=E9=9A=90=E8=97=8F=E9=82=80=E8=AF=B7=E7=A0=81=E3=80=81?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=A1=B5=E9=9D=A2=E6=96=B0=E5=A2=9E=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/en.json | 3 ++- src/i18n/tw.json | 3 ++- src/views/profile/certification.vue | 42 +++++++++++++++++++++-------- src/views/signUp/index.vue | 41 +++++++++++++++++++--------- 4 files changed, 64 insertions(+), 25 deletions(-) diff --git a/src/i18n/en.json b/src/i18n/en.json index 0850b54..8b1e304 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -811,7 +811,8 @@ "clickToVerify": "Click to verify", "clickToVerify1": "Completed", "tips1": "Primary Certification: To withdraw cash, you need to complete advanced certification.", - "tips2": "Advanced Certification: Up to 500k USDT 24-hour withdrawal limit. For more withdrawal amount, please contact customer service" + "tips2": "Advanced Certification: Up to 500k USDT 24-hour withdrawal limit. For more withdrawal amount, please contact customer service", + "date1": "Please enter the date." }, "setting": { "smsVer": "SMS Verification", diff --git a/src/i18n/tw.json b/src/i18n/tw.json index bcc6c6e..c7919dc 100644 --- a/src/i18n/tw.json +++ b/src/i18n/tw.json @@ -753,7 +753,8 @@ "clickToVerify": "點擊驗證", "clickToVerify1": "已完成", "tips1": "初級認證:要選取現金,您需要完成高級認證。", - "tips2": "高級認證:最高5000USDT 24小時提款限額。 如需更多取款金額,請聯系客服" + "tips2": "高級認證:最高5000USDT 24小時提款限額。 如需更多取款金額,請聯系客服", + "date1": "請輸入日期" }, "setting": { "smsVer": "簡訊驗證", diff --git a/src/views/profile/certification.vue b/src/views/profile/certification.vue index 5a92660..77a5ec4 100644 --- a/src/views/profile/certification.vue +++ b/src/views/profile/certification.vue @@ -29,15 +29,18 @@ :placeholder="$t('profile.pleaseEnterName')" /> - - - - - - - - - +
+ + + +
@@ -99,8 +102,8 @@
--> -
{{$t('profile.contactInformation')}}
-
+
{{$t('profile.contactInformation')}}
+
@@ -314,6 +317,23 @@ export default { } }, methods: { + formatDateInput(e) { + let value = e.target.value; + // 1. 移除非数字和横线 + value = value.replace(/[^\d-]/g, ''); + // 2. 自动添加横线(4位年份后加横线,7位后加横线) + if (/^\d{4}$/.test(value)) { + value = value + '-'; + } else if (/^\d{4}-\d{2}$/.test(value)) { + value = value + '-'; + } + // 3. 限制长度不超过10 + if (value.length > 10) value = value.slice(0, 10); + // 4. 更新模型(避免光标跳动问题,可使用 nextTick) + this.$nextTick(() => { + this.form.birthday = value; + }); + }, // 获取实名信息 getAuthInfo() { Profile.getAuthInfo() diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue index 0c2e5b8..04b891a 100644 --- a/src/views/signUp/index.vue +++ b/src/views/signUp/index.vue @@ -27,6 +27,18 @@
+
+
+
+
+ + + +
+ +
+
+
@@ -66,9 +78,10 @@
- +
+
@@ -292,17 +305,17 @@ export default { ); return; } - if (this.user.parentCode=="") { - // 没有填写推荐人/邀请码 - this.$message( - { - type: "warning", - message: this.$t("login.c7") + "!" - }, - 1000 - ); - return; - } + // if (this.user.parentCode=="") { + // // 没有填写推荐人/邀请码 + // this.$message( + // { + // type: "warning", + // message: this.$t("login.c7") + "!" + // }, + // 1000 + // ); + // return; + // } if(this.user.withdrawal_psw==""){ this.$message( { @@ -342,7 +355,9 @@ export default { // console.log(token); Member.sendEmailCode({ email: this.user.email, + phone: this.user.phone, gc_code: this.user.gc_code, + country_code: this.country.country_code, gc_key: this.gc_key, token }).then(data => { @@ -548,6 +563,8 @@ export default { case 1: data.type = `2`; data.account = this.user.email; + data.phone = this.user.phone; + data.country_code = this.country.country_code; break; default: