|
|
@ -199,12 +199,23 @@ |
|
|
)</template> |
|
|
)</template> |
|
|
</label> |
|
|
</label> |
|
|
<div class="input-group input-group-sm"> |
|
|
<div class="input-group input-group-sm"> |
|
|
|
|
|
<!-- <input type="text" v-model="deposite.address" readonly class="form-control" id="deposite-address" required /> |
|
|
|
|
|
<div class="input-group-append dopsite-control" data-clipboard-target="#deposite-address"> |
|
|
|
|
|
<span class="my-pop input-group-text" data-toggle="popover" data-placement="bottom" :data-content="$t('wallet.rechargeAddress')+'!'"> |
|
|
|
|
|
<a href="javascript:void 0" alt="Copy to clipboard">{{$t('wallet.copy')}}</a> |
|
|
|
|
|
</span> |
|
|
|
|
|
</div> --> |
|
|
|
|
|
<template v-if="deposite.address!=''"> |
|
|
<input type="text" v-model="deposite.address" readonly class="form-control" id="deposite-address" required /> |
|
|
<input type="text" v-model="deposite.address" readonly class="form-control" id="deposite-address" required /> |
|
|
<div class="input-group-append dopsite-control" data-clipboard-target="#deposite-address"> |
|
|
<div class="input-group-append dopsite-control" data-clipboard-target="#deposite-address"> |
|
|
<span class="my-pop input-group-text" data-toggle="popover" data-placement="bottom" :data-content="$t('wallet.rechargeAddress')+'!'"> |
|
|
<span class="my-pop input-group-text" data-toggle="popover" data-placement="bottom" :data-content="$t('wallet.rechargeAddress')+'!'"> |
|
|
<a href="javascript:void 0" alt="Copy to clipboard">{{$t('wallet.copy')}}</a> |
|
|
<a href="javascript:void 0" alt="Copy to clipboard">{{$t('wallet.copy')}}</a> |
|
|
</span> |
|
|
</span> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template v-else> |
|
|
|
|
|
<el-button type="primary" style="width:100%" @click="getRechargeAdd">{{$t('wallet.obtain')}}</el-button> |
|
|
|
|
|
</template> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="form-group mt-2" v-if="false"> |
|
|
<div class="form-group mt-2" v-if="false"> |
|
|
@ -373,6 +384,7 @@ |
|
|
<script> |
|
|
<script> |
|
|
import InnerTransfer from "../components/inner-transfer.vue"; |
|
|
import InnerTransfer from "../components/inner-transfer.vue"; |
|
|
import Wallet from "@/api/wallet"; |
|
|
import Wallet from "@/api/wallet"; |
|
|
|
|
|
import Profile from "@/api/profile"; |
|
|
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"; |
|
|
@ -393,7 +405,7 @@ export default { |
|
|
total_assets_btc: 0, |
|
|
total_assets_btc: 0, |
|
|
total_assets_usd: 0 |
|
|
total_assets_usd: 0 |
|
|
}, |
|
|
}, |
|
|
|
|
|
userInfo:{},//账户信息 |
|
|
coinAssets: [], // 币种账户 |
|
|
coinAssets: [], // 币种账户 |
|
|
|
|
|
|
|
|
isHideZero: false, // 是否隐藏0余额资产 |
|
|
isHideZero: false, // 是否隐藏0余额资产 |
|
|
@ -548,6 +560,14 @@ export default { |
|
|
// 初始化充值地址 |
|
|
// 初始化充值地址 |
|
|
this.getDepositeAdress(); |
|
|
this.getDepositeAdress(); |
|
|
}, |
|
|
}, |
|
|
|
|
|
//获取充值地址 |
|
|
|
|
|
getRechargeAdd(){ |
|
|
|
|
|
if(this.userInfo.user_auth_level!=0){ |
|
|
|
|
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
this.$message.error(this.$t("wallet.auth")) |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
// 处理充值 |
|
|
// 处理充值 |
|
|
handleDeposite() { |
|
|
handleDeposite() { |
|
|
@ -614,15 +634,22 @@ export default { |
|
|
createWalletAddress() { |
|
|
createWalletAddress() { |
|
|
// 文鹏写的接口 |
|
|
// 文鹏写的接口 |
|
|
// Wallet.createWalletAddress(); |
|
|
// Wallet.createWalletAddress(); |
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
// 获取个人信息 |
|
|
|
|
|
getUserInfo() { |
|
|
|
|
|
Profile.getUserInfo({}).then(res => { |
|
|
|
|
|
this.userInfo = res |
|
|
|
|
|
}); |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
created() { |
|
|
created() { |
|
|
this.getPaypal() |
|
|
this.getPaypal() |
|
|
this.getUserAssets(); |
|
|
this.getUserAssets(); |
|
|
this.getCoinAssets(); |
|
|
this.getCoinAssets(); |
|
|
this.createWalletAddress(); |
|
|
this.createWalletAddress(); |
|
|
}, |
|
|
this.getUserInfo() |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
mounted() { |
|
|
mounted() { |
|
|
const clipboard = new ClipboardJS(".dopsite-control"); |
|
|
const clipboard = new ClipboardJS(".dopsite-control"); |
|
|
|