Browse Source

新增提币密码

master
liaoxinyu 1 year ago
parent
commit
5a0371016a
  1. 5
      src/api/setting.js
  2. 6
      src/i18n/en.json
  3. 6
      src/i18n/tw.json
  4. 12
      src/views/profile/index.vue
  5. 6
      src/views/profile/mergecertification.vue
  6. 18
      src/views/setting/index.vue
  7. 47
      src/views/setting/withdrawals-pwd.vue
  8. 37
      src/views/signUp/index.vue
  9. 11
      src/views/wallet/exchange-assets.vue

5
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

6
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",

6
src/i18n/tw.json

@ -218,7 +218,11 @@
"footerTips3": "風險提示:數位資產交易有可能導致您的本金損失,請確保您充分理解其中的風險",
"footerTips4": "受限地區:無法為特定國家/地區的居民提供服務,例如:以色列和伊斯蘭共和國",
"learn": "學院",
"GraphicValidation": "圖形驗證"
"GraphicValidation": "圖形驗證",
"c12": "駁回信息",
"c13": "提款密碼",
"c14": "請填写提款密碼",
"c15": "重置提款密碼"
},
"exchange": {
"search": "搜索",

12
src/views/profile/index.vue

@ -11,27 +11,29 @@
<div class="panel-box bg-panel shadow-sm w-100">
<div class="heading d-flex justify-content-between align-items-center">
<div class="h6">{{$t('profile.userInfo')}}</div>
<div class="status fn-14" style="color: #EB4F43;">{{detail.user_auth_level_text }}</div>
<div class="status fn-14" style="color: #EB4F43;" v-if="detail.user_auth_level==2">{{detail.user_auth_level_text }}</div>
<div class="status fn-14" style="color: #EB4F43;" v-else>{{$t("common.notCertified")}}</div>
</div>
<div class="tab-content">
<div class="mobile fn-30 font-weight-bolder">
{{detail.account }}
<!-- | userFilter -->
</div>
<div class="label my-2">{{$t('profile.verState')}}</div>
<div class="label my-2" v-if="detail.user_auth_level==2">{{$t('profile.verState')}}</div>
<div class="d-flex align-items-center">
<div class="icon mr-2">
<img src="../../assets/img/icon/top2.png" style="width: 37px;height: 48px;" alt v-if="detail.user_auth_level==2"/>
<img src="../../assets/img/icon/top1.png" style="width: 37px;height: 48px;" alt v-else/>
<!-- <img src="../../assets/img/icon/top1.png" style="width: 37px;height: 48px;" alt v-else/> -->
</div>
<div style="width: 411px;">
<div style="width: 411px;" v-if="detail.user_auth_level==2">
<!-- {{$t('profile.max')}}
<span class="font-weight-bold">1k</span>
<span class="font-weight-bold ">USD</span>
<span class="font-weight-bold">24</span>
{{$t('profile.limitH')}}
{{$t('profile.tips')}} -->
{{detail.user_auth_level==2?$t('profile.tips2'):$t('profile.tips1')}}
<!-- {{detail.user_auth_level==2?$t('profile.tips2'):$t('profile.tips1')}} -->
{{$t('profile.tips2')}}
</div>
</div>
</div>

6
src/views/profile/mergecertification.vue

@ -136,7 +136,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: #fff;">{{$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" class="btn w-25 btn-outline-danger"
@click="setp=0">{{$t('profile.recertification')}}</button>

18
src/views/setting/index.vue

@ -15,6 +15,15 @@
</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" style="color: #f1f1f1;">{{$t('common.c13')}}</div>
<div class="tab-content flex-fill d-flex align-items-center">
<div style="color: #999;margin-right: 80px;">{{$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 +126,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}`">
@ -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,

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>

37
src/views/signUp/index.vue

@ -60,6 +60,11 @@
<input :type="repwdType" id="repassword" v-model="user.repassword" required :placeholder="$t('login.confirm-password')" class="form-control" />
<label @click="showType('repwdType')"></label>
</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 class="form-group row password">
<!-- 增加图形验证码 -->
<input :type="txtType" id="gccode" v-model="user.gc_code" required :placeholder="$t('common.GraphicValidation')" class="form-control col-8" />
@ -91,7 +96,7 @@
{{$t('login.enterEmailCode',{email:ajar.email,num:6})}}
<br />
{{$t('login.accountActivated')}}
<div style="display: inline-block;" class="rightText" @click.prevent="step = 1;">{{$t('login.backOld')}}</div>{{lang=='zh-TW'||lang=='jp'?'。':'.'}}
<div style="display: inline-block;" class="rightText" @click.prevent="step = 1;">{{$t('login.backOld')}}</div>{{langs=='zh-TW'||langs=='jp'?'。':'.'}}
<!-- <a href @click.prevent="step = 1;">{{$t('login.backOld')}}</a>{{lang=='zh-TW'||lang=='jp'?'。':'.'}} -->
</div>
<section class="my-codes">
@ -103,9 +108,9 @@
<aside class="prompt">
<header class="prompt__no-recieved">{{$t('login.notEmail')}}</header>
<ul class="prompt__inner">
<li>· {{$t('login.confirmEmail')}}{{lang=='zh-TW'||lang=='jp'?'。':'.'}}</li>
<li>· {{$t('login.confing')}}{{lang=='zh-TW'||lang=='jp'?'。':'.'}}</li>
<li>· {{$t('login.checkTrashCan')}}{{lang=='zh-TW'||lang=='jp'?'。':'.'}}</li>
<li>· {{$t('login.confirmEmail')}}{{langs=='zh-TW'||langs=='jp'?'。':'.'}}</li>
<li>· {{$t('login.confing')}}{{langs=='zh-TW'||langs=='jp'?'。':'.'}}</li>
<li>· {{$t('login.checkTrashCan')}}{{langs=='zh-TW'||langs=='jp'?'。':'.'}}</li>
</ul>
</aside>
</div>
@ -117,7 +122,7 @@
) {{$t('login.enterPhone2',{num:6})}}
<br />
{{$t('login.accountActivated')}}
<a href @click.prevent="step = 1;">{{$t('login.backOld')}}</a>{{lang=='zh-TW'||lang=='jp'?'。':'.'}}
<a href @click.prevent="step = 1;">{{$t('login.backOld')}}</a>{{langs=='zh-TW'||langs=='jp'?'。':'.'}}
</div>
<section class="my-codes">
<header class="my-codes__title">Code</header>
@ -128,8 +133,8 @@
<aside class="prompt">
<header class="prompt__no-recieved">{{$t('login.smsNotReceived')}}</header>
<ul class="prompt__inner">
<li>· {{$t('login.phoneCorrect')}}{{lang=='zh-TW'||lang=='jp'?'。':'.'}}</li>
<li>· {{$t('login.securePhone')}}{{lang=='zh-TW'||lang=='jp'?'。':'.'}}</li>
<li>· {{$t('login.phoneCorrect')}}{{langs=='zh-TW'||langs=='jp'?'。':'.'}}</li>
<li>· {{$t('login.securePhone')}}{{langs=='zh-TW'||langs=='jp'?'。':'.'}}</li>
</ul>
</aside>
</div>
@ -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
};
//

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

@ -17,7 +17,8 @@
<div class="d-flex px-5 fn-16">
<!-- <div class="w-6/24">{{ phoneNumbe }}</div> -->
<div class="w-5/24" style="word-wrap: break-word;">{{ userInfo.email }}</div>
<div class="w-6/24">{{ userInfo.user_auth_level_text }}</div>
<div class="w-6/24" v-if="userInfo.user_auth_level==2">{{ userInfo.user_auth_level_text }}</div>
<div class="w-6/24" v-else>{{$t("common.notCertified")}}</div>
<!-- <div class="w-6/24">{{ userInfo.country_code }}</div> -->
</div>
</div>
@ -381,7 +382,7 @@
</div>
<span class="text-right">{{$t('wallet.handlingFee1')}}: {{withdrawCoin=='USDT'&&withdraw.addressType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee }} {{withdrawCoin}}</span>
<div class="input-group input-group-sm password">
<input type="password" v-model="withdraw.password" required :placeholder="$t('login.password')" class="form-control" />
<input type="password" v-model="withdraw.withdrawal_psw" required :placeholder="$t('common.c13')" class="form-control" />
</div>
@ -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,
});

Loading…
Cancel
Save