From b8a24485a158ccdc5a34ad052a31da59258ee4e0 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Mon, 21 Apr 2025 09:46:53 +0800 Subject: [PATCH] =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9=E6=8F=90?= =?UTF-8?q?=E6=AC=BE=E9=A1=B5=E9=9D=A2=E3=80=81=E6=96=B0=E5=A2=9E=E9=87=8D?= =?UTF-8?q?=E7=BD=AE=E6=8F=90=E6=AC=BE=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/setting.js | 4 +++- src/i18n/en.json | 11 ++++++--- src/i18n/tw.json | 7 +++++- src/views/setting/change-password.vue | 31 ++++++++++++++++++++++++ src/views/setting/index.vue | 34 ++++++++++++++++++++++----- src/views/setting/withdrawals-pwd.vue | 9 +++++-- 6 files changed, 83 insertions(+), 13 deletions(-) create mode 100644 src/views/setting/change-password.vue diff --git a/src/api/setting.js b/src/api/setting.js index 47d2536..7666620 100644 --- a/src/api/setting.js +++ b/src/api/setting.js @@ -203,7 +203,9 @@ class Setting { return server.post(`/user/getCode`, data); } - + static withdrawalReset(data) { + return server.post(`/user/withdrawalReset`, data); + } } diff --git a/src/i18n/en.json b/src/i18n/en.json index c30b351..7e0616e 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -221,8 +221,8 @@ "GraphicValidation": "Graphical Verification", "c12": "Rejection Information", "c13": "Withdrawal password", - "c14": "Please fill in the withdrawal password", - "c15": "Reset withdrawal password", + "c14": "Please fill in the Withdrawal Password", + "c15": "Reset Withdrawal Password", "c16": "Send", "c17": "Transfer Address", "c18": "Transfer Amount", @@ -236,7 +236,12 @@ "c26": "The transfer quantity cannot be greater than {name}", "c27": "Transfer Records", "c28": "confirm", - "c29": "Please check your withdrawal address carefully and make sure it is filled in correctly. If you miss or fill in the wrong information, you may lose your assets." + "c29": "Please check your withdrawal address carefully and make sure it is filled in correctly. If you miss or fill in the wrong information, you may lose your assets.", + "c30": "Change Withdrawal Password", + "c31": "To ensure the security of your account, the system will initiate an identity verification process upon your password reset request. Please monitor your registered email closely, as we will begin verifying your identity shortly!", + "c32": "Please enter the original withdrawal password", + "c33": "Original Withdrawal Password", + "c34": "The original withdrawal password cannot be empty" }, "exchange": { "search": "Search", diff --git a/src/i18n/tw.json b/src/i18n/tw.json index f14053a..5017169 100644 --- a/src/i18n/tw.json +++ b/src/i18n/tw.json @@ -237,7 +237,12 @@ "c26": "轉移數量不能大於{name}", "c27": "轉移記錄", "c28": "確認", - "c29": "請認真核對您的提幣地址,務必檢查是否正確填寫。如果您漏添或填錯,將有可能對您的資產造成損失" + "c29": "請認真核對您的提幣地址,務必檢查是否正確填寫。如果您漏添或填錯,將有可能對您的資產造成損失", + "c30": "修改提款密碼", + "c31": "為確保您的帳戶安全,系統將在您提交重置請求後啟動身份核驗流程。請密切留意您的信箱,我們將開始檢驗您的身份!", + "c32": "請輸入原提款密碼", + "c33": "原提款密碼", + "c34": "原提款密碼不能為空" }, "exchange": { "search": "搜索", diff --git a/src/views/setting/change-password.vue b/src/views/setting/change-password.vue new file mode 100644 index 0000000..0f3dd14 --- /dev/null +++ b/src/views/setting/change-password.vue @@ -0,0 +1,31 @@ + + + + + \ No newline at end of file diff --git a/src/views/setting/index.vue b/src/views/setting/index.vue index 1906ea7..f46399e 100644 --- a/src/views/setting/index.vue +++ b/src/views/setting/index.vue @@ -6,7 +6,7 @@
-
+
{{$t('setting.loginPassword')}}
@@ -16,15 +16,24 @@
- +
+
+
+
{{$t('common.c13')}}
+
+
{{$t('common.c13')}}
+ +
+
+
@@ -147,6 +160,7 @@ import WithdrawalsPwd from "./withdrawals-pwd"; import EmailVerify from "./email-verify"; import GoogleVerify from "./google-verify"; import ChangeVerification from "./change-verification"; +import ChangePassword from "./change-password"; import Setting from "../../api/setting"; export default { @@ -157,7 +171,8 @@ export default { GoogleVerify, LoginPwd, ChangeVerification, - WithdrawalsPwd + WithdrawalsPwd, + ChangePassword }, data() { return { @@ -169,6 +184,7 @@ export default { emailShow: false, googleShow: false, verification: false, + Changepassword: false, // 变更校验开关的对象 changeVerificationObj: { status: '', @@ -210,7 +226,13 @@ export default { }); this.verification = true; - } + }, + changepassword(){ + Setting.withdrawalReset().then(res => { + console.log('已请求重置提款密码'); + this.Changepassword=true + }); + } }, created() { this.getUserInfo(); diff --git a/src/views/setting/withdrawals-pwd.vue b/src/views/setting/withdrawals-pwd.vue index ddafb1b..52e93c0 100644 --- a/src/views/setting/withdrawals-pwd.vue +++ b/src/views/setting/withdrawals-pwd.vue @@ -1,12 +1,16 @@