Browse Source

新增提币密码

master
liaoxinyu 5 months ago
parent
commit
2ded93b829
  1. 3
      src/api/setting.js
  2. 6
      src/i18n/en.json
  3. 6
      src/i18n/tw.json
  4. 6
      src/views/profile/certification.vue
  5. 19
      src/views/setting/index.vue
  6. 47
      src/views/setting/withdrawals-pwd.vue
  7. 23
      src/views/signUp/index.vue
  8. 22
      src/views/wallet/exchange-assets.vue

3
src/api/setting.js

@ -65,6 +65,9 @@ class Setting {
static setOrResetPaypwd(data) {
return server.post(`/user/setOrResetPaypwd`, data);
}
static withdrawalPassword(data) {
return server.post(`/user/withdrawalPassword`, data);
}
/**
* 设置或重置登录密码
* @param {object} data

6
src/i18n/en.json

@ -184,7 +184,11 @@
"footerTips2": "Legal Notice: The website is operated by {name}",
"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"
"learn": "Learn",
"c12": "Rejection Information",
"c13": "Withdrawal password",
"c14": "Please fill in the withdrawal password",
"c15": "Reset withdrawal password"
},
"exchange": {
"search": "Search",

6
src/i18n/tw.json

@ -185,7 +185,11 @@
"footerTips2": "法律聲明:該網站由{name}公司運營",
"footerTips3": "風險提示:數位資產交易有可能導致您的本金損失,請確保您充分理解其中的風險",
"footerTips4": "受限地區:無法為特定國家/地區的居民提供服務,例如:以色列和伊斯蘭共和國",
"learn": "學習"
"learn": "學習",
"c12": "駁回信息",
"c13": "提款密碼",
"c14": "請填写提款密碼",
"c15": "重置提款密碼"
},
"exchange": {
"search": "蒐索",

6
src/views/profile/certification.vue

@ -241,7 +241,11 @@
</div>
<div v-else-if="detail.status==3">
<p class="mt-3 mb-4">{{detail.status_text_lang}}{{$t('profile.resetApply')}}</p>
<i class="el-icon-s-release my-4 decreace" style="font-size:60px"></i>
<!-- <i class="el-icon-s-release my-4 decreace" style="font-size:60px"></i> -->
<div style="margin-bottom: 40px;color: #409EFF;display: flex;justify-content: center;">
<div style="width: 100px;color: #000;">{{$t('common.c12')}}</div>
<div style="width: 350px;text-align: left;word-wrap: break-word;">{{detail.remark}}</div>
</div>
<div class="text-center">
<button
type="button"

19
src/views/setting/index.vue

@ -15,6 +15,16 @@
</div>
</div>
</div>
<div class="col-md-6 d-flex">
<div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column">
<div class="heading">{{$t('common.c13')}}</div>
<div class="tab-content flex-fill d-flex flex-column justify-content-between align-items-start">
<div>{{$t('common.c13')}}</div>
<button class="btn btn-primary btn-sm" @click="WithdrawalsShow=true">{{$t('common.c15')}}</button>
</div>
</div>
</div>
<!-- 交易密码 -->
<!-- <div class="col-md-6 d-flex">
<div class="panel-box bg-panel shadow-sm mb-4 w-100 d-flex flex-column">
@ -117,6 +127,10 @@
<v-box v-model="loginShow" :title="$t('setting.loginPassword')">
<login-pwd @close="loginShow=false" @change="getUserInfo" :detail="detail" id="loginPwd" />
</v-box>
<!-- 提币密码 -->
<v-box v-model="WithdrawalsShow" :title="$t('common.c13')">
<withdrawals-pwd @close="WithdrawalsShow=false" @change="getUserInfo" :detail="detail" id="" />
</v-box>
<!-- 校验开关 -->
<v-box v-model="verification" :title="`${changeVerificationObj.status?$t('setting.open'):$t('setting.close')}${changeVerificationObj.name}`">
@ -132,6 +146,7 @@ import LoginPwd from "./login-pwd";
import EmailVerify from "./email-verify";
import GoogleVerify from "./google-verify";
import ChangeVerification from "./change-verification";
import WithdrawalsPwd from "./withdrawals-pwd";
import Setting from "../../api/setting";
export default {
@ -141,7 +156,8 @@ export default {
EmailVerify,
GoogleVerify,
LoginPwd,
ChangeVerification
ChangeVerification,
WithdrawalsPwd
},
data() {
return {
@ -152,6 +168,7 @@ export default {
emailShow: false,
googleShow: false,
verification: false,
WithdrawalsShow: false,
//
changeVerificationObj: {
status: '',

47
src/views/setting/withdrawals-pwd.vue

@ -0,0 +1,47 @@
<template>
<div class="edit-password">
<div class="form-group">
<label>{{$t('setting.newPassword')}}</label>
<input type="password" required v-model="form.password" class="form-control" :placeholder="$t('setting.enterNewPassword')" />
</div>
<div class="form-group">
<label>{{$t('setting.confirmPassword')}}</label>
<input type="password" v-model="form.password_confirmation" required class="form-control" :placeholder="$t('setting.pleaseConfirmPassword')" />
</div>
<div class="text-center">
<button type="button" class="btn w-25 btn-secondary" @click="$emit('close')">{{$t('common.cancelBtn')}}</button>
<button type="button" class="btn w-25 btn-primary" @click="setPassword">{{$t('common.confirmBtn')}}</button>
</div>
</div>
</template>
<script>
import Member from "@/api/member";
import Setting from "../../api/setting";
export default {
props: ["detail"],
data() {
return {
form: {
password: "",
password_confirmation: ""
}
};
},
methods: {
setPassword() {
let data = this.form;
if (utils.validate(".edit-password")) {
Setting.withdrawalPassword(data).then(res => {
this.$message.success(this.$t('setting.changeSuccess'));
this.$emit("close");
}).catch(err => {});
}
}
},
activated() {}
};
</script>
<style>
</style>

23
src/views/signUp/index.vue

@ -64,6 +64,13 @@
<label @click="showType('repwdType')"></label>
</div>
<div style="margin-top: 30px;">{{$t('common.c13')}}</div>
<div class="form-group row password">
<!-- 使用data-type指定额外的类型验证 -->
<input :type="repwdType" id="withdrawal_psw" v-model="user.withdrawal_psw" required :placeholder="$t('common.c13')" class="form-control" />
<label @click="showType('repwdType')"></label>
</div>
<div style="margin-top: 30px;">{{$t('homeNewText.ee6')}}</div>
<div class="form-group row password" style="justify-content: space-between;">
<!-- 增加图形验证码 -->
@ -199,7 +206,8 @@ export default {
country_id: "", // id
phone: "",
parentCode: "",
gc_code: ""
gc_code: "",
withdrawal_psw:""
},
isAgree: false,
@ -309,6 +317,16 @@ export default {
);
return;
}
if(this.withdrawal_psw==""){
this.$message(
{
type: "warning",
message: this.$t("common.c14") + "!"
},
1000
);
return;
}
//
// if (this.user.parentCode) {
@ -528,7 +546,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
};
//

22
src/views/wallet/exchange-assets.vue

@ -440,8 +440,8 @@
<span>{{$t('login.password')}}</span>
</label>
<div class="input-group input-group-sm">
<input type="password" v-model="withdraw.password"
:placeholder="$t('common.enterPwd')" class="form-control"
<input type="password" v-model="withdraw.withdrawal_psw"
:placeholder="$t('common.c13')" class="form-control"
id="formGroupPWDInput" />
</div>
</div>
@ -542,7 +542,8 @@
addressType: 2, // 1 omni 2 erc20,
code_type: 1,
code: '',
emailcode: ''
emailcode: '',
withdrawal_psw:'',
},
withdrawFee: {
@ -797,14 +798,21 @@
});
return;
}
if (!this.withdraw.password) {
// if (!this.withdraw.password) {
// this.$message({
// // message: this.$t('login.password'),
// message: this.$t('common.enterPwd'),
// type: "warn",
// duration: 2000,
// });
// return;
// }
if (!this.withdraw.withdrawal_psw) {
this.$message({
// message: this.$t('login.password'),
message: this.$t('common.enterPwd'),
message: this.$t('common.c14'),
type: "warn",
duration: 2000,
});
return;
}
if (this.getEmailCodeLock) {
return

Loading…
Cancel
Save