|
|
@ -406,13 +406,31 @@ |
|
|
<span> |
|
|
<span> |
|
|
{{$t('wallet.low')}}:{{withdrawFee.withdrawal_min}} |
|
|
{{$t('wallet.low')}}:{{withdrawFee.withdrawal_min}} |
|
|
{{withdrawCoin}} |
|
|
{{withdrawCoin}} |
|
|
<router-link to="" @click.native="addressText" class="text-primary">{{$t('wallet.addressList')}}</router-link> |
|
|
<!-- <router-link to="" @click.native="addressText" class="text-primary">{{$t('wallet.addressList')}}</router-link> --> |
|
|
|
|
|
<router-link to="" @click.native="addressText" class="text-primary">{{$t('wallet.addAddress')}}</router-link> |
|
|
</span> |
|
|
</span> |
|
|
</label> |
|
|
</label> |
|
|
<div class="input-group input-group-sm"> |
|
|
<div class="input-group input-group-sm"> |
|
|
<input type="text" :placeholder="$t('wallet.enterDrawAddress')" |
|
|
<!-- <input type="text" :placeholder="$t('wallet.enterDrawAddress')" |
|
|
:data-message="$t('wallet.invalidWallet')+'!'" |
|
|
:data-message="$t('wallet.invalidWallet')+'!'" |
|
|
v-model="withdraw.address" class="form-control" required /> |
|
|
v-model="withdraw.address" class="form-control" required /> --> |
|
|
|
|
|
<el-select v-model="withdraw.address" :placeholder="$t('wallet.withdrawals')" no-data-text="Please add the withdrawal address first"> |
|
|
|
|
|
<div v-for="(item,index) in userAdressList" :key="item.coin_id" v-if="withdrawCoin==item.coin_name"> |
|
|
|
|
|
<el-option v-for="(items,index) in item.list" :key="items.id" |
|
|
|
|
|
:label="items.address" :value="items.address" |
|
|
|
|
|
@click.native="changeaddress(items.created_at)"> |
|
|
|
|
|
<span>{{ items.address }}</span> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</div> |
|
|
|
|
|
<!-- <el-option v-else value=""> |
|
|
|
|
|
<span>请先添加提币地址</span> |
|
|
|
|
|
</el-option> --> |
|
|
|
|
|
<!-- <div v-else> |
|
|
|
|
|
<el-option value=""> |
|
|
|
|
|
<span>请先添加提币地址</span> |
|
|
|
|
|
</el-option> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
</el-select> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group mt-2"> |
|
|
<div class="form-group mt-2"> |
|
|
@ -496,6 +514,7 @@ |
|
|
import ClipboardJS from "clipboard"; |
|
|
import ClipboardJS from "clipboard"; |
|
|
import getCode from "./getCode"; |
|
|
import getCode from "./getCode"; |
|
|
import vueQr from "vue-qr"; |
|
|
import vueQr from "vue-qr"; |
|
|
|
|
|
import date from "@/utils/class/date.js"; |
|
|
export default { |
|
|
export default { |
|
|
components: { |
|
|
components: { |
|
|
InnerTransfer, |
|
|
InnerTransfer, |
|
|
@ -565,6 +584,8 @@ |
|
|
getEmailCodeLock: false, |
|
|
getEmailCodeLock: false, |
|
|
JStime: 0, |
|
|
JStime: 0, |
|
|
tiemr: null, |
|
|
tiemr: null, |
|
|
|
|
|
userAdressList: [], // 用户币种地址集合 |
|
|
|
|
|
created_at:'' |
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
@ -592,6 +613,10 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
parseTime: date.parseTime, |
|
|
|
|
|
changeaddress(val){ |
|
|
|
|
|
this.created_at = val |
|
|
|
|
|
}, |
|
|
//确认提交贝宝支付 |
|
|
//确认提交贝宝支付 |
|
|
paypalSbumit() { |
|
|
paypalSbumit() { |
|
|
if (!this.paypal.amount) { |
|
|
if (!this.paypal.amount) { |
|
|
@ -729,6 +754,17 @@ |
|
|
// 处理提币 |
|
|
// 处理提币 |
|
|
toHandleWithdraw() { |
|
|
toHandleWithdraw() { |
|
|
let data = this.withdrawFee |
|
|
let data = this.withdrawFee |
|
|
|
|
|
// const apiTimeDate = new Date(this.created_at); |
|
|
|
|
|
// const currentTime = new Date(); |
|
|
|
|
|
// const time = this.parseTime(currentTime) |
|
|
|
|
|
// const time1 = new Date(time); |
|
|
|
|
|
// const timeDiff = apiTimeDate - time1; // 时间差(毫秒) |
|
|
|
|
|
// const twentyFourHours = 24 * 60 * 60 * 1000; // 24小时的毫秒数 |
|
|
|
|
|
|
|
|
|
|
|
// if(timeDiff >= twentyFourHours){ |
|
|
|
|
|
// this.$message.error('Tips: You can withdraw money from the newly added address after 24 hours') |
|
|
|
|
|
// } |
|
|
|
|
|
|
|
|
if (utils.validate(".withdraw-body")) { |
|
|
if (utils.validate(".withdraw-body")) { |
|
|
if (data.withdraw_switch == 1) { |
|
|
if (data.withdraw_switch == 1) { |
|
|
$("#withdraw").modal("hide"); |
|
|
$("#withdraw").modal("hide"); |
|
|
@ -838,7 +874,15 @@ |
|
|
addressText(){ |
|
|
addressText(){ |
|
|
$("#withdraw").modal("hide"); |
|
|
$("#withdraw").modal("hide"); |
|
|
this.$router.push("/wallet/address") |
|
|
this.$router.push("/wallet/address") |
|
|
} |
|
|
}, |
|
|
|
|
|
getUserAdressList() { |
|
|
|
|
|
Wallet.getUserWithdrawAdress() |
|
|
|
|
|
.then((data) => { |
|
|
|
|
|
this.userAdressList = [] |
|
|
|
|
|
this.userAdressList = data; |
|
|
|
|
|
}) |
|
|
|
|
|
.catch((err) => {}); |
|
|
|
|
|
}, |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
created() { |
|
|
created() { |
|
|
@ -848,6 +892,7 @@ |
|
|
this.createWalletAddress(); |
|
|
this.createWalletAddress(); |
|
|
this.getUserInfo(); |
|
|
this.getUserInfo(); |
|
|
this.getAuthInfo(); |
|
|
this.getAuthInfo(); |
|
|
|
|
|
this.getUserAdressList() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
|
|