Browse Source

显示修改提款页面、新增重置提款密码

master
liaoxinyu 8 months ago
parent
commit
0de4a37638
  1. 5
      api/setting.js
  2. BIN
      assets/img/info6.png
  3. 9
      i18n/lang/en.json
  4. 7
      i18n/lang/zh-TW.json
  5. 37
      pages/safe/index.vue
  6. 11
      pages/safe/withdrawals-pwd.vue

5
api/setting.js

@ -195,8 +195,9 @@ class Setting {
return Serve.post(`/user/getCode`, data);
}
static withdrawalReset(data) {
return Serve.post(`/user/withdrawalReset`, data);
}
}
export default Setting;

BIN
assets/img/info6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

9
i18n/lang/en.json

@ -119,7 +119,7 @@
"c12": "Rejection Information",
"c13": "Withdrawal password",
"c14": "Please fill in the withdrawal password",
"c15": "Reset withdrawal password",
"c15": "Reset Withdrawal Password",
"rejection":"Reason for rejection",
"c16": "Send",
"c17": "Transfer Address",
@ -134,7 +134,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"
},
"base": {
"a0": "Title",

7
i18n/lang/zh-TW.json

@ -134,7 +134,12 @@
"c26": "轉移數量不能大於{name}",
"c27": "轉移記錄",
"c28": "確認",
"c29": "請認真核對您的提幣地址,務必檢查是否正確填寫。如果您漏添或填錯,將有可能對您的資產造成損失"
"c29": "請認真核對您的提幣地址,務必檢查是否正確填寫。如果您漏添或填錯,將有可能對您的資產造成損失",
"c30": "修改提款密碼",
"c31": "為確保您的帳戶安全,系統將在您提交重置請求後啟動身份核驗流程。請密切留意您的信箱,我們將開始檢驗您的身份!",
"c32": "請輸入原提款密碼",
"c33": "原提款密碼",
"c34": "原提款密碼不能為空"
},
"base": {
"a0": "標題",

37
pages/safe/index.vue

@ -66,19 +66,32 @@
</view>
</view>
<!-- 提款密码 -->
<!-- <view class=" m-x-lg m-y-lg bg-panel-3 rounded-md box-shadow">
<view class=" m-x-lg m-y-lg bg-panel-3 rounded-md box-shadow">
<view class="list">
<v-link tag="li" to="/pages/safe/withdrawals-pwd" class="item link-active d-flex p-x-md align-center" style="padding: 10px 0px;">
<view class="img_info">
<img src="@/assets/img/info5.png" style="width: 20px;" />
</view>
<view class="flex-fill d-flex justify-between m-r-xs">
<view class="color-light">{{$t('common.c13')}}</view>
<view class="color-light">{{$t('common.c30')}}</view>
</view>
<van-icon name="arrow" />
</v-link>
</view>
</view>
<view class=" m-x-lg m-y-lg bg-panel-3 rounded-md box-shadow">
<view class="list">
<v-link tag="li" @click.native="ResetClick" to="" class="item link-active d-flex p-x-md align-center" style="padding: 10px 0px;">
<view class="img_info">
<img src="@/assets/img/info6.png" style="width: 20px;" />
</view>
<view class="flex-fill d-flex justify-between m-r-xs">
<view class="color-light">{{$t('common.c15')}}</view>
</view>
<van-icon name="arrow" />
</v-link>
</view>
</view> -->
</view>
<view class=" m-x-lg m-y-lg bg-panel-3 rounded-md box-shadow">
<view class="list">
<v-link tag="view" :to="{path: status!=2&&status!=1?'/pages/auth/certification':''}"
@ -141,13 +154,17 @@
>
<switch-page v-if="switchShow" @close="switchShow=false" :type="switchType" />
</van-popup>
<van-toast id="van-toast" />
<van-dialog id="van-dialog" />
</v-page>
</template>
<script>
import { mapState ,mapActions} from "vuex";
import Dialog from '../../wxcomponents/vant/dialog/dialog';
import switchPage from "./switch";
import Profile from "@/api/profile";
import Setting from "@/api/setting";
export default {
components: {
switchPage,
@ -180,6 +197,17 @@ export default {
// this.user_auth_level = res.data.primary_status
})
},
ResetClick(){
Dialog.alert({
title: this.$t('common.c30'),
message: this.$t('common.c31'),
confirmButtonText: this.$t('common.c28')
}).then(() => {
Setting.withdrawalReset().then((res) => {
console.log('已请求重置提款密码');
});
});
}
},
onShow() {
this.setUserInfo()
@ -191,6 +219,9 @@ export default {
};
</script>
<style scoped>
::v-deep .van-button--default{
border:0px;
}
.bg-panel-3{
background-color: #242424;
}

11
pages/safe/withdrawals-pwd.vue

@ -2,6 +2,12 @@
<v-page class="pos-login">
<v-header :title="$t('common.c13')"></v-header>
<main class="bg-panel-3 p-x-lg p-y-lg rounded-md box-shadow">
<view class="form-item border-b p-y-md color-light">
<view class="label m-b-xs">{{$t('common.c33')}}</view>
<view class="input">
<v-input type="password" v-model="form.psw" :placeholder="$t('common.c32')"></v-input>
</view>
</view>
<view class="form-item border-b p-y-md color-light">
<view class="label m-b-xs">{{$t('safe.b3')}}</view>
<view class="input">
@ -30,6 +36,7 @@ export default {
data() {
return {
form: {
psw: "",
password: "",
password_confirmation: ""
}
@ -42,6 +49,10 @@ export default {
},
methods: {
setPassword() {
if(this.form.psw==""){
this.$toast(this.$t('common.c34'));
return
}
let data = this.form;
Setting.withdrawalPassword(data, { btn: this.$refs.btn })
.then((res) => {

Loading…
Cancel
Save