Browse Source

修改提币页面

master
liaoxinyu 3 months ago
parent
commit
34383cf8ae
  1. BIN
      src/assets/img/home/Ewmlogin.png
  2. BIN
      src/assets/img/icon/tishi.png
  3. BIN
      src/assets/img/icon/zhuanzan.png
  4. 2
      src/components/CommonFooter.vue
  5. 2
      src/components/KLine.vue
  6. 9
      src/components/SecondaryNav.vue
  7. 2
      src/index.html
  8. 8
      src/router/wallet.js
  9. 10
      src/views/contract/exchange-store.vue
  10. 2
      src/views/contract/handicap.vue
  11. 26
      src/views/contract/history-commission.vue
  12. 17
      src/views/contract/index.vue
  13. 4
      src/views/home/index.vue
  14. 2
      src/views/signIn/index.vue
  15. 8
      src/views/wallet/exchange-assets.vue
  16. 25
      src/views/wallet/funding.vue
  17. 415
      src/views/wallet/withdrawal.vue
  18. 3
      static/css/bootstrap.min.css

BIN
src/assets/img/home/Ewmlogin.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
src/assets/img/icon/tishi.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

BIN
src/assets/img/icon/zhuanzan.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 367 B

2
src/components/CommonFooter.vue

@ -452,7 +452,7 @@ export default {
//
Member.getUnameByUid({user_id:user.pid}).then(rfres=>{
// query referr uname
this.ifurl ="https://cs.btcaholic.com/chat/?toid="+rfres.username+"&room_id="+user.account+"&usid="+user.user_id;
this.ifurl ="https://cs.btcooc.com/chat/?toid="+rfres.username+"&room_id="+user.account+"&usid="+user.user_id;
// show popup
this.ispopup = ! this.ispopup
this.chatRead()

2
src/components/KLine.vue

@ -311,7 +311,7 @@ export default {
this.model.subscribe([
{
cmd: "sub",
msg: `Kline_${this.symbol}_${this.interval}min`
msg: `Kline_${this.symbol}_1day`
}
]);
// console.log(this.lang)

9
src/components/SecondaryNav.vue

@ -50,11 +50,16 @@ export default {
// },
{
url: `/wallet/funding`,
label: this.$t('common.rechargeWithdraw')
// label: this.$t('common.rechargeWithdraw')
label: this.$t('common.c19')
},{
url: `/wallet/address`,
label: this.$t('common.addressManagement'),
}
},
{
url: `/wallet/withdrawal`,
label: this.$t('common.c16'),
}
];
},

2
src/index.html

@ -26,7 +26,7 @@
}
}
}
if (localStorage.appConfig) {
if (localStorage.appConfig&&localStorage.appConfig!==undefined) {
var config = JSON.parse(localStorage.appConfig);
document.getElementById('appTitle').innerText = config.name
document.getElementById('appIcon').href = config.titles_logo

8
src/router/wallet.js

@ -7,6 +7,7 @@ import Reward from '@/views/wallet/reward';
import Funding from '@/views/wallet/funding';
import Address from '@/views/wallet/address';
import Otc from '@/views/wallet/otc-assets';
import Withdrawal from '@/views/wallet/withdrawal';
export default [
{
@ -47,5 +48,10 @@ export default [
name : "otcAssets",
path : "/wallet/otc", // 地址管理
component : Otc
}
},
{
name : "withdrawal",
path : "/wallet/withdrawal", // 提币管理
component : Withdrawal
},
]

10
src/views/contract/exchange-store.vue

@ -97,6 +97,7 @@
class="form-control"
v-model="margin"
:placeholder="tips"
@input="inputEnter"
/>
<!-- <div class="input-group-append">
<span class="input-group-text">{{ $t("contract.e2") }}</span>
@ -336,13 +337,18 @@ export default {
// console.info(this.form.lever_rate)
// console.info(this.margin)
if (!this.form.lever_rate || !this.margin) return 0;
let p=this.margin*this.form.lever_rate;
let p = Math.round(this.margin*this.form.lever_rate);
this.form.amount=p;
return p
}
},
methods: {
inputEnter() {
this.margin = this.margin
.replace(/[^\d.]/g, "") //
.replace(/^(\d*\.?\d{0,2}).*$/, "$1"); //
},
//
contractAccount(boo) {
if (!this.isLogin) return;
@ -356,7 +362,7 @@ export default {
// if (!this.form.lever_rate) {
// this.form.lever_rate = res.lever_rate;
// }
if (this.form.lever_rate && !boo) {
if (this.form.lever_rate) {
this.openNum();
}
});

2
src/views/contract/handicap.vue

@ -206,6 +206,7 @@ export default {
// }
this.newPriceObj.price = msg.close;
this.$emit("input", this.newPriceObj);
localStorage.setItem("price",this.newPriceObj.price)
// console.log(this.newPriceObj.price, 'this.newPriceObj.price-----')
// const closeStr = msg.close.toString();
// this.newPriceObj.price = this.symbol === 'BTC' ? closeStr.slice(0, closeStr.indexOf('.') + 2) : closeStr.slice(0, closeStr.indexOf('.') + 4);
@ -228,6 +229,7 @@ export default {
this.newPriceObj = this.tradeList[0];
// }
this.$emit("input", this.newPriceObj);
localStorage.setItem("price",this.newPriceObj.price)
});
},
//

26
src/views/contract/history-commission.vue

@ -11,6 +11,7 @@
<th>{{$t('contract.b5')}}/{{$t('contract.b6')}}</th>
<th>{{$t('contract.b7')}}</th>
<th>{{$t('contract.b8')}}</th>
<th>{{$t('option.yield')}}</th>
<th>{{$t('contract.j0')}}</th>
<!-- <th>{{$t('contract.k1')}}</th> -->
<th>{{$t('contract.b9')}}</th>
@ -28,7 +29,8 @@
<td>{{item.avg_price||'--'}}/{{ item.entrust_price || "--" }}</td>
<td>{{ item.margin * 1 }}</td>
<td>{{ item.fee * 1 }}</td>
<td>
<td :class="color_text(item)">{{ item.profitRate }}</td>
<td :class="color_text(item)">
{{item.profit||'--'}}
</td>
<!-- <td>
@ -181,7 +183,27 @@ export default {
this.order_details = res;
$("#history").modal("show");
});
}
},
color_text(item){
if (item && item.profit && item.profit.indexOf('-') === 0) {
return 'red'
}else if(item.profit == null){
return 'black'
}else{
return 'green'
}
}
}
};
</script>
<style lang="scss" scoped>
.red{
color: #ff231f;
}
.green{
color: #53b987;
}
.black{
color: #797979;
}
</style>

17
src/views/contract/index.vue

@ -47,7 +47,8 @@
<div style="font-weight: 500;color: #000;">{{ item.symbol }}/{{ parent.coin_name }}</div>
</td>
<td class="w-7/24 " :class="item.increase < 0 ? 'decreace' : 'increace'" style="font-weight: bold;">
{{ item.price }}
<!-- {{ item.price }} -->
{{item.symbol == activeSymbol ? price1 : item.price}}
</td>
<td class="w-7/24" :class="item.increase < 0 ? 'decreace' : 'increace'" style="font-weight: bold;">
{{ item.increaseStr }}
@ -60,7 +61,8 @@
</el-popover>
</div>
<div class="price border-right" style="padding: 0px 30px;" :class="{ decreace: activeContract.increase < 0, increace: activeContract.increase >= 0 }">
<div class="current">{{ activeContract.price }}$</div>
<!-- <div class="current">{{ activeContract.price }}$</div> -->
<span class="current">{{price1}}$</span>
<div class="zf">{{ activeContract.increaseStr }}</div>
</div>
<!-- 币种价值数据 -->
@ -198,7 +200,9 @@ export default {
symbolDetail:{},
currentIcon: '',
imge:[],
Liste:[]
Liste:[],
price1:0,
intervalId:''
};
},
computed: {
@ -245,6 +249,7 @@ export default {
if(item.symbol==this.activeContract.symbol) item.realtimePrice=this.activeContract.price
})
});
this.startWatchingPrice();
},
//
mounted: function () {
@ -254,6 +259,12 @@ export default {
}, 2000)
},
methods: {
startWatchingPrice(){
this.intervalId = setInterval(() => {
let newPrice = localStorage.getItem('price');
this.price1 = newPrice;
}, 10); //
},
ispopover1(item){
this.activeSymbol=item;
this.getMarketList();

4
src/views/home/index.vue

@ -295,7 +295,7 @@
<span>Google Play</span>
</div>
<div class="ant-dropdown" v-show="showDrop1">
<!-- <img src="@/assets/img/home/Ewmlogin.png" alt="" /> -->
<img src="@/assets/img/home/Ewmlogin.png" alt="" />
</div>
</div>
<div style="position: relative;">
@ -304,7 +304,7 @@
<span>App Store</span>
</div>
<div class="ant-dropdown" v-show="showDrop">
<!-- <img src="@/assets/img/home/Ewmlogin.png" alt="" /> -->
<img src="@/assets/img/home/Ewmlogin.png" alt="" />
</div>
</div>
</div>

2
src/views/signIn/index.vue

@ -3,7 +3,7 @@
<div class="sign_left">
<div class="sign_left_box">
<div style="width: 242px;height: 242px;background-color: #fff;line-height: 242px;text-align: center;border-radius: 10px;box-shadow: 0px 0px 6px 0px rgba(82, 72, 208, 0.25);">
<!-- <img src="@/assets/img/home/Ewmlogin.png" style="width: 205px;height: 205px;" /> -->
<img src="@/assets/img/home/Ewmlogin.png" style="width: 205px;height: 205px;" />
</div>
<div style="font-size: 16px; color: #9C9C9C;margin-top: 12px;text-align: center;">{{ $t("homeNewText.hh46",{name:"Btcooc"}) }}</div>
</div>

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

@ -171,11 +171,11 @@
<!-- data-target="#deposite" -->
<button type="button" class="btn btn-outline-primary"
data-toggle="modal" @click="enterDeposite(item)"
:disabled="!item.is_withdraw">{{$t('wallet.recharge')}}</button>
:disabled="item.is_withdraw==0">{{$t('wallet.recharge')}}</button>
<!-- <button type="button" class="btn btn-outline-primary" data-toggle="modal" data-target="#withdraw" @click="enterWithdraw(item)" :disabled="!item.is_withdraw">{{$t('wallet.withdrawal')}}</button> -->
<button type="button" class="btn btn-outline-primary"
data-target="#withdraw" @click="enterWithdraw(item)"
:disabled="!item.is_withdraw">{{$t('wallet.withdrawal')}}</button>
:disabled="item.is_withdraw==0">{{$t('common.c16')}}</button>
<div class="btn-group btn-group-sm" role="group">
<button id="btnGroupDrop1" type="button"
class="btn btn-outline-primary dropdown-toggle"
@ -726,6 +726,10 @@
})
.catch(err => {});
},
enterWithdraw1(item){
this.$router.push(`/wallet/withdrawal`)
},
//
toHandleWithdraw() {

25
src/views/wallet/funding.vue

@ -14,8 +14,9 @@
<a class="nav-link " :class="currentTab =='deposit'? 'active':''" data-toggle="pill" href="#deposit" role="tab" aria-selected="false" @click="currentTab = 'deposit'">{{$t('wallet.rechargeRecord')}}</a>
</li>
<li class="nav-item fn-16">
<a class="nav-link " :class="currentTab =='withdrawal'? 'active':''" data-toggle="pill" href="#withdrawal" role="tab" aria-selected="false" @click="currentTab = 'withdrawal'">{{$t('wallet.withdrawalRecord')}}</a>
</li>
<!-- <a class="nav-link " :class="currentTab =='withdrawal'? 'active':''" data-toggle="pill" href="#withdrawal" role="tab" aria-selected="false" @click="currentTab = 'withdrawal'">{{$t('wallet.withdrawalRecord')}}</a> -->
<a class="nav-link " :class="currentTab =='withdrawal'? 'active':''" data-toggle="pill" href="#withdrawal" role="tab" aria-selected="false" @click="currentTab = 'withdrawal'">{{$t('common.c27')}}</a>
</li>
<!-- <li class="nav-item fn-16">
<a class="nav-link " data-toggle="pill" href="#paypal" role="tab" aria-selected="false" @click="currentTab = 'paypal'">Paypal{{$t('wallet.rechargeRecord')}}</a>
</li> -->
@ -84,7 +85,8 @@
<th>{{$t('wallet.num')}}</th>
<th>{{$t('wallet.handlingFee1')}}</th>
<th class="text-right">{{$t('wallet.status')}}</th>
<!-- <th class="text-right">{{$t('contract.c0')}}</th> -->
<th class="text-right">{{$t('contract.c0')}}</th>
<th>{{$t('nav.rejection')}}</th>
</tr>
</thead>
<tbody>
@ -103,9 +105,14 @@
<!-- <td v-if="item.status==0" class="text-right">{{$t('wallet.processing')}}</td>
<td v-if="item.status==1" class="text-right">{{$t('wallet.success')}}</td>
<td v-if="item.status==2" class="text-right">{{$t('wallet.error')}}</td> -->
<!-- <td class="text-right">
<td class="text-right">
<button v-if="item.status==0" class="btn btn-danger btn-sm" @click="cancelWithdraw(item)">{{$t('contract.c2')}}</button>
</td> -->
</td>
<td style="word-wrap: break-word;width: 200px;">
<div v-if="item.remark">
<div style="width: 200px;">{{item.remark}}</div>
</div>
</td>
</tr>
</tbody>
</table>
@ -149,6 +156,8 @@
<script>
import Wallet from "@/api/wallet";
import date from "@/utils/class/date.js";
import Member from "@/api/member";
export default {
data() {
return {
@ -159,6 +168,9 @@ export default {
search_coin: '', //
submitStatus: '', //
timeRange: [],
timer: null,
ispopup:false,
ifurl:""
}
},
@ -178,6 +190,9 @@ export default {
}
];
},
isLogin() {
return Boolean(localStorage.token);
}
},
methods: {

415
src/views/wallet/withdrawal.vue

@ -0,0 +1,415 @@
<template>
<div class="wallet-page">
<secondary-nav></secondary-nav>
<form action class="withdraw-body">
<div class="modal-dialog modal-xl" style="display: flex;">
<div style="height: 800px;width: 650px;">
<el-steps direction="vertical" :active="active" style="min-height: 260px !important;width: 650px;box-sizing: border-box;">
<el-step :title="$t('common.c21')" style="flex-basis: 110px;">
<template slot="description">
<div style="pointer-events: all;width: 480px;">
<el-select v-model="withdraw.coin_id" @change="enterWithdraw" :placeholder="$t('wallet.pleaseSelect')" style="margin-top: 10px;">
<el-option v-for="(item, index) in coinAssets" :key="item.coin_id" :label="item.coin_name" :value="item.coin_id" v-if="item.is_recharge!==0&&item.is_recharge!==null||item.is_withdraw!==0&&item.is_withdraw!==null">
<img :src="item.image" alt width="20" />
<span>{{ item.coin_name }}</span>
</el-option>
</el-select>
</div>
</template>
</el-step>
<el-step :title="$t('common.c17')" style="position: relative;flex-basis: 155px;">
<template slot="description">
<div :style="{ pointerEvents: withdraw.coin_id ? 'all' : 'none' }" style="width: 480px;">
<div style="position: absolute;top: 4px;right: 130px;">
<router-link to="" @click.native="addressText" :style="{ Color: withdraw.coin_id ? '#007bff !important' : '#3f4651 !important' }">{{$t('wallet.addressList')}}</router-link>
</div>
<input style="margin-top: 10px;" type="text" :placeholder="$t('wallet.enterDrawAddress')" :data-message="$t('wallet.invalidWallet')+'!'" v-model="withdraw.address" @input="addressnum" class="form-control" required />
<el-select :disabled="!withdraw.coin_id" v-model="withdraw.addressType" @change="enteraddressType" :placeholder="$t('wallet.pleaseSelect')" style="margin-top: 10px;" class="addressType" v-if="withdraw.coin_id==1">
<el-option v-for="(item, index) in network" :key="index" :label="item.name" :value="item.id">
<span>{{ item.name }}</span>
</el-option>
</el-select>
</div>
</template>
</el-step>
<el-step :title="$t('common.c18')" v-if="withdraw.address">
<template slot="description">
<div style="pointer-events: all;width: 480px;color: #fff;margin-top: 10px;">
<input type="number" @input="amountnum" v-model="withdraw.amount" step="0.00000001" :placeholder="$t('wallet.enterDrawNum')" class="form-control" />
<span style="display: flex;justify-content: space-between;align-items: center;margin-top: 8px;margin-bottom: 20px;">
<!-- <div>
<input class="form-check-input" type="checkbox" id="allAssets" v-model="allAssets" />
<label for="allAssets">{{$t('wallet.all')}}</label>
</div> -->
<div style="width: 100%;">
<span>{{$t('wallet.availableBalance')}}: {{withdrawFee.usable_balance}} {{withdrawCoin}}</span>
</div>
<div style="width: 100%;text-align: right;">{{$t('common.c23')}}{{timeFormat}}</div>
</span>
</div>
</template>
</el-step>
<el-step :title="$t('common.c13')" v-if="withdraw.amount">
<template slot="description">
<div style="pointer-events: all;width: 480px;margin-top: 10px;margin-bottom: 20px;">
<input type="password" @input="withdrawalnum" v-model="withdraw.withdrawal_psw" required :placeholder="$t('common.c13')" class="form-control" />
</div>
</template>
</el-step>
<el-step :title="$t('login.email-code')" v-if="withdraw.withdrawal_psw">
<template slot="description">
<div class="withdrawal1">
<div style="width: 350px;display: flex;align-items: center;">
<input type="text" id="EmailCode" v-model="withdraw.emailcode" :placeholder="$t('common.enterEmailCode')" class="form-control" />
</div>
<label class="d-flex justify-content-between" for="" style="align-items: center;margin-top: 10px;color: #000;">
<span class="getCodeAA" @click="getEmailCode">
<span v-if="!getEmailCodeLock">{{$t('common.getCode')}}</span>
<span v-else>{{ daojishi }}</span>
</span>
</label>
</div>
</template>
</el-step>
</el-steps>
<div style="padding: 20px 32px;pointer-events: all;width: 540px;">
<div>{{$t('common.c24')}}<img src="@/assets/img/icon/zhuanzan.png" alt width="20" style="margin-left: 5px;"/></div>
<div style="display: flex;justify-content: space-between;align-items: center;">
<div>
<div style="font-size: 30px;font-weight: bold;">{{price1(quantity)}}</div>
<div>{{$t('wallet.handlingFee1')}}: {{withdrawCoin=='USDT'&&withdraw.addressType==3?withdrawFee.trc20:withdrawFee.withdrawal_fee }} {{withdrawCoin}}</div>
</div>
<div :class="!withdraw.emailcode?'fontWithdrawal':'fontWithdrawal1'" @click="toHandleWithdraw">
{{$t('common.c25')}}
</div>
</div>
</div>
</div>
<div class="col-md-6">
<p>{{$t('wallet.withdrawalInstructions')}}</p>
<ul>
<li>1. {{$t('wallet.enterAddress')}}{{lang=='tw'?'。':'.'}}</li>
<li>2. {{$t('wallet.notSend')}}{{lang=='tw'?'。':'.'}}</li>
<li>3. {{$t('wallet.deductionFee')}}{{lang=='tw'?'。':'.'}}</li>
</ul>
</div>
</div>
</form>
<div v-show="promptaddress" class="modal-overlay">
<div class="modal-content">
<div style="margin-top: 25px;padding: 0px 10px;">
<img src="@/assets/img/icon/tishi.png" alt="" width="60" />
<div style="margin: 20px 0px;">{{$t('common.c29')}}</div>
<div class="losure" @click="closeModal">{{$t('common.c28')}}</div>
</div>
</div>
</div>
</div>
</template>
<script>
import Wallet from "@/api/wallet";
import Member from "@/api/member";
export default {
data() {
return {
lang: "",
active:1,
indexshow:0,
quantity:"0.00",
coinAssets: [],
withdrawCoin: "",
allAssets: false,
getEmailCodeLock: false,
promptaddress:false,
cacheInputAssets: null,
timeUpdateInterval: null,
JStime: 0,
tiemr: null,
withdrawFee: {
usable_balance: "-",
withdrawal_fee: "-",
withdrawal_min: "-",
withdrawal_max: "-"
},
withdraw:{
coin_id:"",
address:"",
addressType:2,
code_type: 1,
amount:"",
withdrawal_psw:"",
emailcode:""
},
network:[{id:2,name:"ERC20"},{id:3,name:"TRC20"}],
}
},
computed : {
daojishi(){
return '('+this.JStime + 's' + ')';
}
},
watch: {
allAssets(val) {
if (val) {
this.cacheInputAssets = this.withdraw.amount;
this.withdraw.amount = this.withdrawFee.usable_balance;
} else {
this.withdraw.amount = this.cacheInputAssets;
}
}
},
created() {
// console.log(this.Funding);
this.getCoinAssets()
this.lang = localStorage.getItem('lang')
this.updateTimeFormat()
this.timeUpdateInterval = setInterval(this.updateTimeFormat, 36000);
},
beforeDestroy() {
//
if (this.timeUpdateInterval) {
clearInterval(this.timeUpdateInterval);
this.timeUpdateInterval = null; // null
}
},
methods: {
withdrawalnum(){
this.active = 5
},
price1(item){
if (item) {
let price = item.toString();
let parts = price.split(".");
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ",");
return parts.join(".");
}
},
updateTimeFormat() {
// datatimeFormat
this.timeFormat = this.getTimeFormat();
},
getCurrentUSTime() {
const now = new Date();
const offset = -4 * 60; // UTC-4
// getTimezoneOffset() UTC
const usTime = new Date(now.getTime() + (now.getTimezoneOffset() * 60000) + (offset * 60000));
return usTime;
},
// 01...6
getDayOfWeek(date) {
return date.getDay();
},
// 12H24H
getTimeFormat() {
const usTime = this.getCurrentUSTime();
const dayOfWeek = this.getDayOfWeek(usTime);
return dayOfWeek >= 1 && dayOfWeek <= 5 ? '12H' : '24H';
},
amountnum(){
// if(this.withdraw.amount >= this.withdrawFee.withdrawal_max){
// this.quantity = "0.00"
// this.$message({message: this.$t("common.c26",{name:this.withdrawFee.withdrawal_max}),type: "error",duration : 2000,});
// } else
if(this.withdraw.amount >= this.withdrawFee.withdrawal_min&&this.withdraw.coin_id){
this.active = 4
const num = this.withdrawCoin=='USDT'&&this.withdraw.addressType==3?this.withdrawFee.trc20:this.withdrawFee.withdrawal_fee
this.quantity = this.withdraw.amount - num
}else{
this.quantity = "0.00"
}
},
addressnum(e){
if(e&&this.indexshow!==1){
this.indexshow++;
this.promptaddress = true;
this.active = 3
}
// console.log(e);
},
closeModal(){
this.promptaddress = false;
},
enteraddressType(e){
if(e&&this.withdraw.amount){
const num = this.withdrawCoin=='USDT'&&this.withdraw.addressType==3?this.withdrawFee.trc20:this.withdrawFee.withdrawal_fee
this.quantity = this.withdraw.amount - num
}
},
addressText(){
this.$router.push("/wallet/address")
},
getCoinAssets() {
Wallet.fundAccount()
.then(data => {
this.coinAssets = data.list;
})
.catch(err => { });
},
enterWithdraw(e) {
this.active = 2
this.coinAssets.forEach((item)=>{
if(item.coin_id === e){
this.withdrawCoin = item.coin_name;
}
})
//
Wallet.withdrawalBalance({coin_name: this.withdrawCoin}).then(data => {
this.withdrawFee = data;
})
.catch(err => { });
},
getEmailCode(){
if(!this.withdraw.address){
this.$message({
message: this.$t('wallet.enterDrawAddress'),
// message: 'mlkdfdks',
// type: "warn",
duration : 2000,
});
return;
}
if(!this.withdraw.amount){
this.$message({
message: this.$t('wallet.enterDrawNum'),
// type: "warn",
duration : 2000,
});
return;
}
if(!this.withdraw.withdrawal_psw){
this.$message({
message: this.$t('common.c14'),
// type: "warn",
duration : 2000,
});
return;
}
if(this.getEmailCodeLock){return};
this.JStime = 300;
this.tiemr = setInterval(()=>{
if(this.JStime===0){
this.getEmailCodeLock = false;
clearInterval(this.tiemr);
return;
}
this.JStime--;
}, 1000)
this.getEmailCodeLock = true;
let gdata = {bt:this.withdrawCoin,baddr:this.withdraw.address,bnum:this.withdraw.amount}
Member.getWdcode(gdata).then(res => {
// console.log(res, 546576798)
this.$message({
message: `${this.$t("login.sendOK")}`,
type: "success",
duration : 2000,
});
}).catch(err=>{
// this.gett_gc_code();
});
},
toHandleWithdraw() {
console.log(11111);
let data = this.withdrawFee
if (utils.validate(".withdraw-body")) {
if (data.withdraw_switch == 1) {
$("#withdraw").modal("hide");
this.verShow = true
} else {
this.handleWithdraw()
}
}
},
handleWithdraw() {
Wallet.withdraw(this.withdraw)
.then(data => {
// this.$message(this.$t("wallet.operationComplete") );
$("#withdraw").modal("hide");
this.verShow = false
this.$router.push('/wallet/funding?currentTab=withdrawal')
})
.catch(err => { });
},
},
}
</script>
<style lang="scss">
.el-step__title.is-wait {
color: #303133 !important;
}
.addressType .el-input.is-disabled .el-input__inner{
background-color: #000;
}
</style>
<style scoped lang="scss">
.getCodeAA{
border: 1px solid #444;
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
}
.fontWithdrawal{
color: #737475;
cursor: pointer;
padding: 10px 40px;
border-radius: 5px;
background-color: #f1f1f1;
}
.fontWithdrawal1{
color: #fff;
cursor: pointer;
padding: 10px 40px;
border-radius: 5px;
background-color: #1c52bc;
}
.modal-overlay {
z-index: 999999999999;
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
justify-content: center;
align-items: center;
}
.modal-content {
background-color: #f1f1f1;
padding: 20px;
border-radius: 5px;
width: 400px;
text-align: center;
position: relative;
}
.losure{
width: 100%;
height: 40px;
font-size: 16px;
line-height: 40px;
cursor: pointer;
border-radius: 5px;
background-color: #77abff;
}
.el-steps--vertical{
height: auto;
}
.withdrawal1{
width: 480px;
display: flex;
margin-top: 10px;
pointer-events: all;
padding-bottom: 15px;
border-bottom: 2px solid #444;
justify-content: space-between;
}
</style>

3
static/css/bootstrap.min.css

@ -646,7 +646,8 @@ pre code {
.container-md,
.container-sm,
.container-xl {
max-width: 1140px
/* max-width: 1140px */
max-width: 1340px
}
}

Loading…
Cancel
Save