Browse Source

新增提币密码

master
liaoxinyu 1 year ago
parent
commit
1d81c6ed16
  1. 5
      api/setting.js
  2. BIN
      assets/img/info5.png
  3. 6
      i18n/lang/en.json
  4. 6
      i18n/lang/zh-TW.json
  5. 3
      pages.json
  6. 14
      pages/assets/draw.vue
  7. 19
      pages/reg/index.vue
  8. 27
      pages/safe/index.vue
  9. 65
      pages/safe/withdrawals-pwd.vue

5
api/setting.js

@ -77,6 +77,11 @@ class Setting {
static updatePassword(data,{btn}) {
return Serve.post(`/user/updatePassword`, data,{btn});
}
static withdrawalPassword(data,{btn}) {
return Serve.post(`/user/withdrawalPassword`, data,{btn});
}
/**
* 绑定邮箱
* @param {object} data

BIN
assets/img/info5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

6
i18n/lang/en.json

@ -115,7 +115,11 @@
"c10": "Passed real-name authentication",
"c11": "Real-name authentication failed",
"withdrawal2": "Withdrawal has reached the risk control limit of the platform and requires real-name authentication",
"loading": "loading"
"loading": "loading",
"c12": "Rejection Information",
"c13": "Withdrawal password",
"c14": "Please fill in the withdrawal password",
"c15": "Reset withdrawal password"
},
"base": {
"a0": "Title",

6
i18n/lang/zh-TW.json

@ -115,7 +115,11 @@
"c10": "已通過實名認證",
"c11": "實名認證失敗",
"withdrawal2": "提幣達到了平台的風控限制,需要實名認證",
"loading": "加载中"
"loading": "加载中",
"c12": "駁回信息",
"c13": "提款密碼",
"c14": "請填写提款密碼",
"c15": "重置提款密碼"
},
"base": {
"a0": "標題",

3
pages.json

@ -219,6 +219,9 @@
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
},
{
"path" : "pages/safe/withdrawals-pwd"
}
],
"globalStyle": {

14
pages/assets/draw.vue

@ -107,12 +107,12 @@
</v-input>
</view>
<view class="d-flex align-center p-y-xs m-t-ms justify-between color-light fn-15">
<span>{{ $t("reg.a8") }}</span>
<span>{{ $t("common.c13") }}</span>
<!-- <span class="color-light">{{ withdrawFee.withdrawal_fee }} {{coin}}</span> -->
</view>
<view class="d-flex align-end p-y-xs justify-between bg-form-panel-3 rounded-xs p-y-sm">
<v-input type="password" v-model="form.password" class="color-light w-max fn-13 rounded-xs" :placeholder="$t('reg.a9')">
<v-input type="password" v-model="form.withdrawal_psw" class="color-light w-max fn-13 rounded-xs" :placeholder="$t('common.c14')">
</v-input>
</view>
@ -252,7 +252,7 @@ export default {
form: {
coin_id: "",
amount: "",
password:"",
withdrawal_psw:"",
address: "",
addressType: "",
code_type: 1,
@ -356,8 +356,8 @@ export default {
this.$toast(this.$t('assets.c2'))
return
}
if (!this.form.password) {
this.$toast(this.$t('reg.a9'))
if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14'))
return
}
// if (!this.form.gr_code) {
@ -394,8 +394,8 @@ export default {
this.$toast(this.$t('assets.c2'))
return
}
if(!this.form.password){
this.$toast(this.$t('reg.a9'))
if(!this.form.withdrawal_psw){
this.$toast(this.$t('common.c14'))
return
}
if (!this.form.emailcode) {

19
pages/reg/index.vue

@ -121,6 +121,10 @@
:placeholder="$t('reg.b1')"
></v-input>
</view>
<view class="form-item m-b-md p-b-xs">
<view class="label m-b-xs color-light">{{$t('common.c13')}}</view>
<v-input class="color-light" v-model="form.withdrawal_psw" type="password" :placeholder="$t('common.c14')"></v-input>
</view>
<!-- <view class="form-item border-b m-b-md p-b-xs">
<view class="label m-b-xs">{{$t('reg.c6')}}</view>
<v-input class="color-light" v-model="form.invitationCode" type="password" :placeholder="$t('reg.c7')"></v-input>
@ -177,7 +181,8 @@ export default {
password: "",
password_confirmation: "",
invite_code: "",
gr_code: "",
gr_code: "",
withdrawal_psw:""
},
Graph_che:'',
gc_key:'', // tuxiangyanzheng key
@ -210,10 +215,14 @@ export default {
}
return;
}
if (!this.form.invite_code) {
this.$toast(this.$t('reg.c7'));
return;
}
if (!this.form.invite_code) {
this.$toast(this.$t('reg.c7'));
return;
}
if (!this.form.withdrawal_psw) {
this.$toast(this.$t('common.c14'));
return;
}
this.form.type=this.form.type
this.form.country_code = this.country_code || 86;

27
pages/safe/index.vue

@ -1,7 +1,8 @@
<template>
<v-page>
<v-header :title="$t('safe.c7')"></v-header>
<view style="background-color: #121212;height: 100%;">
<view class="layout-main" style="background-color: #121212;">
<scroll-view>
<view class=" m-x-lg m-y-lg p-x-md bg-panel-3 rounded-md box-shadow">
<view class="list">
<!-- --------google------ -->
@ -26,6 +27,7 @@
</view>
<van-icon name="arrow" />
</v-link>
<!-- ----------交易密码---------- -->
<!-- <v-link
tag="li"
@ -63,11 +65,23 @@
</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" 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>
<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="view" :to="{path: status!=2&&status!=1?'/pages/auth/certification':''}"
style="display: flex;justify-content: space-between;align-items: center;padding: 10px 0px;"
class="item link-active d-flex p-x-md align-center">
class="item link-active p-x-md align-center" style="display: flex;justify-content: space-between;align-items: center;padding: 10px 0px;">
<view style="display: flex;align-items: center;">
<view class="img_info">
<img src="@/assets/img/info2.png" style="width: 20px;" />
@ -79,6 +93,10 @@
</view>
<van-icon name="arrow" />
</v-link>
<view style="color: #409EFF;padding-bottom: 20rpx;margin: 0rpx 30rpx;" v-if="status==3">
<view style="width: 600rpx;color: #fff;">{{$t('common.c12')}}</view>
<view style="width: 600rpx;text-align: left;word-wrap: break-word;">{{remark}}</view>
</view>
</view>
</view>
<view class=" m-x-lg m-y-lg bg-panel-3 rounded-md box-shadow">
@ -110,6 +128,7 @@
</v-link>
</view>
</view>
</scroll-view>
</view>
<van-popup
:show="switchShow"
@ -142,6 +161,7 @@ export default {
switchShow: false,
switchType: 0,
status: 0,
remark:''
};
},
methods: {
@ -155,6 +175,7 @@ export default {
getAuthInfo() {
Profile.getAuthInfo().then(res => {
this.status = res.data.status
this.remark = res.data.remark
// this.user_auth_level = res.data.primary_status
})
},

65
pages/safe/withdrawals-pwd.vue

@ -0,0 +1,65 @@
<template>
<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('safe.b3')}}</view>
<view class="input">
<v-input type="password" v-model="form.password" :placeholder="$t('safe.b4')"></v-input>
</view>
</view>
<view class="form-item border-b p-y-md color-light">
<view class="label m-b-xs">{{$t('safe.b5')}}</view>
<view class="input">
<v-input type="password" v-model="form.password_confirmation" :placeholder="$t('safe.b6')"></v-input>
</view>
</view>
<view class="p-md ">
<v-button block type="white" class="w-max rounded-md" ref="btn" @click="setPassword">{{$t('safe.b7')}}</v-button>
</view>
</main>
<van-toast id="van-toast" />
</v-page>
</template>
<script>
import Member from "@/api/member";
import { mapState } from "vuex";
import Setting from "@/api/setting";
export default {
data() {
return {
form: {
password: "",
password_confirmation: ""
}
};
},
computed: {
...mapState({
user: "user",
}),
},
methods: {
setPassword() {
let data = this.form;
Setting.withdrawalPassword(data, { btn: this.$refs.btn })
.then((res) => {
if(res.code==200){
this.$back();
this.$toast.success(this.$t('safe.d3'));
}
}).catch(() => {});
},
},
};
</script>
<style lang="scss" scoped>
.layout-page{
background-color: #121212 !important;
background: none;
}
.bg-panel-3{
background-color: #121212;
}
</style>
Loading…
Cancel
Save