From 5a0371016abc83d0fb6d9b1f3bca5fdeddcf00d7 Mon Sep 17 00:00:00 2001 From: liaoxinyu Date: Sat, 14 Sep 2024 11:59:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=90=E5=B8=81=E5=AF=86?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/setting.js | 5 +++ src/i18n/en.json | 6 ++- src/i18n/tw.json | 6 ++- src/views/profile/index.vue | 12 +++--- src/views/profile/mergecertification.vue | 6 ++- src/views/setting/index.vue | 18 ++++++++- src/views/setting/withdrawals-pwd.vue | 47 ++++++++++++++++++++++++ src/views/signUp/index.vue | 37 ++++++++++++++----- src/views/wallet/exchange-assets.vue | 11 +++--- 9 files changed, 124 insertions(+), 24 deletions(-) create mode 100644 src/views/setting/withdrawals-pwd.vue diff --git a/src/api/setting.js b/src/api/setting.js index 2eaabc5..47d2536 100644 --- a/src/api/setting.js +++ b/src/api/setting.js @@ -65,6 +65,11 @@ class Setting { static setOrResetPaypwd(data) { return server.post(`/user/setOrResetPaypwd`, data); } + + static withdrawalPassword(data) { + return server.post(`/user/withdrawalPassword`, data); + } + /** * 设置或重置登录密码 * @param {object} data diff --git a/src/i18n/en.json b/src/i18n/en.json index 3baae3c..5144624 100644 --- a/src/i18n/en.json +++ b/src/i18n/en.json @@ -217,7 +217,11 @@ "footerTips3": "Risk Tip: Digital asset trading may cause your principal loss,please make sure you fully understand the risks.", "footerTips4": "Restricted Areas: Unable to provide services to residents of specific countries / regions,such as Israel and the Islamic Republic of China", "learn": "Learn", - "GraphicValidation": "Graphical Verification" + "GraphicValidation": "Graphical Verification", + "c12": "Rejection Information", + "c13": "Withdrawal password", + "c14": "Please fill in the withdrawal password", + "c15": "Reset withdrawal password" }, "exchange": { "search": "Search", diff --git a/src/i18n/tw.json b/src/i18n/tw.json index a711400..132d220 100644 --- a/src/i18n/tw.json +++ b/src/i18n/tw.json @@ -218,7 +218,11 @@ "footerTips3": "風險提示:數位資產交易有可能導致您的本金損失,請確保您充分理解其中的風險", "footerTips4": "受限地區:無法為特定國家/地區的居民提供服務,例如:以色列和伊斯蘭共和國", "learn": "學院", - "GraphicValidation": "圖形驗證" + "GraphicValidation": "圖形驗證", + "c12": "駁回信息", + "c13": "提款密碼", + "c14": "請填写提款密碼", + "c15": "重置提款密碼" }, "exchange": { "search": "搜索", diff --git a/src/views/profile/index.vue b/src/views/profile/index.vue index 53e3cf1..da0269d 100644 --- a/src/views/profile/index.vue +++ b/src/views/profile/index.vue @@ -11,27 +11,29 @@
{{$t('profile.userInfo')}}
-
{{detail.user_auth_level_text }}
+
{{detail.user_auth_level_text }}
+
{{$t("common.notCertified")}}
{{detail.account }}
-
{{$t('profile.verState')}}:
+
{{$t('profile.verState')}}:
- +
-
+
- {{detail.user_auth_level==2?$t('profile.tips2'):$t('profile.tips1')}} + + {{$t('profile.tips2')}}
diff --git a/src/views/profile/mergecertification.vue b/src/views/profile/mergecertification.vue index 77a5054..b1143b2 100644 --- a/src/views/profile/mergecertification.vue +++ b/src/views/profile/mergecertification.vue @@ -136,7 +136,11 @@

{{detail.status_text_lang}}!{{$t('profile.resetApply')}}

- + +
+
{{$t('common.c12')}}:
+
{{detail.remark}}
+
diff --git a/src/views/setting/index.vue b/src/views/setting/index.vue index 1092283..30ca5ac 100644 --- a/src/views/setting/index.vue +++ b/src/views/setting/index.vue @@ -15,6 +15,15 @@
+
+
+
{{$t('common.c13')}}
+
+
{{$t('common.c13')}}
+ +
+
+
@@ -129,6 +142,7 @@ import SmsVerify from "./sms-verify"; import TransPwd from "./trans-pwd"; import LoginPwd from "./login-pwd"; +import WithdrawalsPwd from "./withdrawals-pwd"; import EmailVerify from "./email-verify"; import GoogleVerify from "./google-verify"; import ChangeVerification from "./change-verification"; @@ -141,12 +155,14 @@ export default { EmailVerify, GoogleVerify, LoginPwd, - ChangeVerification + ChangeVerification, + WithdrawalsPwd }, data() { return { detail: {}, loginShow: false, + WithdrawalsShow: false, smsShow: false, transShow: false, emailShow: false, diff --git a/src/views/setting/withdrawals-pwd.vue b/src/views/setting/withdrawals-pwd.vue new file mode 100644 index 0000000..ddafb1b --- /dev/null +++ b/src/views/setting/withdrawals-pwd.vue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file diff --git a/src/views/signUp/index.vue b/src/views/signUp/index.vue index 347effb..af6886f 100644 --- a/src/views/signUp/index.vue +++ b/src/views/signUp/index.vue @@ -60,6 +60,11 @@ +
+ + + +
@@ -91,7 +96,7 @@ {{$t('login.enterEmailCode',{email:ajar.email,num:6})}}
{{$t('login.accountActivated')}}, -
{{$t('login.backOld')}}
{{lang=='zh-TW'||lang=='jp'?'。':'.'}} +
{{$t('login.backOld')}}
{{langs=='zh-TW'||langs=='jp'?'。':'.'}}
@@ -103,9 +108,9 @@ @@ -117,7 +122,7 @@ ) {{$t('login.enterPhone2',{num:6})}}
{{$t('login.accountActivated')}}, - {{$t('login.backOld')}}{{lang=='zh-TW'||lang=='jp'?'。':'.'}} + {{$t('login.backOld')}}{{langs=='zh-TW'||langs=='jp'?'。':'.'}}
Code
@@ -128,8 +133,8 @@ @@ -193,7 +198,8 @@ export default { repassword: "", country_id: "", // 区号id phone: "", - parentCode: "" + parentCode: "", + withdrawal_psw:"" }, isAgree: false, @@ -221,7 +227,7 @@ export default { gc_key:'', // tuxiangyanzheng key codes: new Array(6), - lang: localStorage.getItem('lang') + langs: localStorage.getItem('lang') }; }, @@ -308,6 +314,16 @@ export default { ); return; } + if(this.withdrawal_psw==""){ + this.$message( + { + type: "warning", + message: this.$t("common.c14") + "!" + }, + 1000 + ); + return; + } // 滑块安全性验证 // if (this.user.parentCode) { @@ -526,7 +542,8 @@ export default { password: this.user.password, password_confirmation: this.user.password, code: this.codes.join(""), - invite_code: this.user.parentCode + invite_code: this.user.parentCode, + withdrawal_psw:this.user.withdrawal_psw }; // 分离参数 diff --git a/src/views/wallet/exchange-assets.vue b/src/views/wallet/exchange-assets.vue index 5d4c027..74753db 100644 --- a/src/views/wallet/exchange-assets.vue +++ b/src/views/wallet/exchange-assets.vue @@ -17,7 +17,8 @@
{{ userInfo.email }}
-
{{ userInfo.user_auth_level_text }}
+
{{ userInfo.user_auth_level_text }}
+
{{$t("common.notCertified")}}
@@ -381,7 +382,7 @@ {{$t('wallet.handlingFee1')}}: {{withdrawCoin=='USDT'&&withdraw.addressType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee }} {{withdrawCoin}}
- +
@@ -489,7 +490,7 @@ export default { addressType: 2, // 默认提币类型 1 为 omni; 2 为 erc20, code_type: 1, code: '', - password:'', + withdrawal_psw:'', emailcode: '', gc_code: ''// 图形验证码 }, @@ -770,9 +771,9 @@ export default { }); return; } - if(!this.withdraw.password){ + if(!this.withdraw.withdrawal_psw){ this.$message({ - message: this.$t('common.enterPwd'), + message: this.$t('common.c14'), // type: "warn", duration : 2000, });