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: