|
|
@ -2,12 +2,12 @@ |
|
|
|
<div class="balances-deposit-widget"> |
|
|
|
<div class="balances-deposit-widget"> |
|
|
|
<!-- 充币地址 --> |
|
|
|
<!-- 充币地址 --> |
|
|
|
<div class="deposit-address"> |
|
|
|
<div class="deposit-address"> |
|
|
|
<p>{{$t('recharge.table.header_addr')}}</p> |
|
|
|
<p>{{ $t('recharge.table.header_addr') }}</p> |
|
|
|
<!-- 复制功能 --> |
|
|
|
<!-- 复制功能 --> |
|
|
|
<div class="deposit-address_inner"> |
|
|
|
<div class="deposit-address_inner"> |
|
|
|
<div class="deposit-address_body"> |
|
|
|
<div class="deposit-address_body"> |
|
|
|
<!-- 充币地址 --> |
|
|
|
<!-- 充币地址 --> |
|
|
|
<div class="deposit-address_text">{{taInfo.addr}}</div> |
|
|
|
<div class="deposit-address_text">{{ taInfo.addr }}</div> |
|
|
|
<div class="deposit-address_action"> |
|
|
|
<div class="deposit-address_action"> |
|
|
|
<el-tooltip |
|
|
|
<el-tooltip |
|
|
|
effect="light" |
|
|
|
effect="light" |
|
|
@ -21,16 +21,17 @@ |
|
|
|
ref="chargeAddressCopyBtn" |
|
|
|
ref="chargeAddressCopyBtn" |
|
|
|
:data-clipboard-text="taInfo.addr" |
|
|
|
:data-clipboard-text="taInfo.addr" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
>{{$t('recharge.table.header_copy')}}</el-button> |
|
|
|
>{{ $t('recharge.table.header_copy') }}</el-button |
|
|
|
|
|
|
|
> |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
<!--<el-button size="" type="text">显示二维码</el-button>--> |
|
|
|
<!--<el-button size="" type="text">显示二维码</el-button>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<!-- eos需要备注 --> |
|
|
|
<!-- eos需要备注 --> |
|
|
|
<div v-show="taInfo.tokenSymbol=='EOS'?true:false" class="file"> |
|
|
|
<div v-show="taInfo.tokenSymbol == 'EOS' ? true : false" class="file"> |
|
|
|
<!-- 充币备注 --> |
|
|
|
<!-- 充币备注 --> |
|
|
|
<p>{{$t('recharge.table.header_remarks')}}</p> |
|
|
|
<p>{{ $t('recharge.table.header_remarks') }}</p> |
|
|
|
<div class="deposit-address_text">{{taInfo.id}}</div> |
|
|
|
<div class="deposit-address_text">{{ taInfo.id }}</div> |
|
|
|
<!-- 复制功能 --> |
|
|
|
<!-- 复制功能 --> |
|
|
|
<div class="deposit-address_action"> |
|
|
|
<div class="deposit-address_action"> |
|
|
|
<el-tooltip |
|
|
|
<el-tooltip |
|
|
@ -45,7 +46,8 @@ |
|
|
|
ref="chargeAddressCopyId" |
|
|
|
ref="chargeAddressCopyId" |
|
|
|
:data-clipboard-text="taInfo.id" |
|
|
|
:data-clipboard-text="taInfo.id" |
|
|
|
type="text" |
|
|
|
type="text" |
|
|
|
>{{$t('recharge.table.header_copy')}}</el-button> |
|
|
|
>{{ $t('recharge.table.header_copy') }}</el-button |
|
|
|
|
|
|
|
> |
|
|
|
</el-tooltip> |
|
|
|
</el-tooltip> |
|
|
|
<!--<el-button size="" type="text">显示二维码</el-button>--> |
|
|
|
<!--<el-button size="" type="text">显示二维码</el-button>--> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -60,24 +62,35 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<!-- 扫码充值 --> |
|
|
|
<!-- 扫码充值 --> |
|
|
|
<div class="deposit-address_qrcodeText">{{$t('balances.table.header_sweep')}}</div> |
|
|
|
<div class="deposit-address_qrcodeText"> |
|
|
|
|
|
|
|
{{ $t('balances.table.header_sweep') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="addBox"> |
|
|
|
|
|
|
|
<div class="add" @click="surerecharge">确认充值</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
<!-- 温馨提示 --> |
|
|
|
<!-- 温馨提示 --> |
|
|
|
<div class="tips"> |
|
|
|
<div class="tips"> |
|
|
|
<p class="tips_header">{{$t('recharge.table.header_tips')}}</p> |
|
|
|
<p class="tips_header">{{ $t('recharge.table.header_tips') }}</p> |
|
|
|
<div class="tips-list"> |
|
|
|
<div class="tips-list"> |
|
|
|
<div |
|
|
|
<div class="tips-list_item"> |
|
|
|
class="tips-list_item" |
|
|
|
1.{{ $t('recharge.table.header_deal1') }}{{ taInfo.tokenSymbol |
|
|
|
>1.{{$t('recharge.table.header_deal1')}}{{taInfo.tokenSymbol}}{{$t('recharge.table.header_deal2')}}</div> |
|
|
|
}}{{ $t('recharge.table.header_deal2') }} |
|
|
|
<div |
|
|
|
</div> |
|
|
|
class="tips-list_item" |
|
|
|
<div class="tips-list_item"> |
|
|
|
>2.{{taInfo.tokenSymbol}}{{$t('recharge.table.header_financial')}}</div> |
|
|
|
2.{{ taInfo.tokenSymbol }}{{ $t('recharge.table.header_financial') }} |
|
|
|
<div class="tips-list_item">3.{{$t('recharge.table.header_currency')}}</div> |
|
|
|
</div> |
|
|
|
<div class="tips-list_item">4.{{$t('recharge.table.header_repeat')}}</div> |
|
|
|
<div class="tips-list_item"> |
|
|
|
<div class="tips-list_item">5.{{$t('recharge.table.header_safety')}}</div> |
|
|
|
3.{{ $t('recharge.table.header_currency') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="tips-list_item"> |
|
|
|
|
|
|
|
4.{{ $t('recharge.table.header_repeat') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="tips-list_item"> |
|
|
|
|
|
|
|
5.{{ $t('recharge.table.header_safety') }} |
|
|
|
|
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -86,7 +99,11 @@ |
|
|
|
<script> |
|
|
|
<script> |
|
|
|
import Clipboard from 'clipboard'; |
|
|
|
import Clipboard from 'clipboard'; |
|
|
|
// import {QRcode} from '@/common/qrcode'; |
|
|
|
// import {QRcode} from '@/common/qrcode'; |
|
|
|
|
|
|
|
import {addBtc} from '@/api/btc.js'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {addEth} from '@/api/eth.js'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import {addEos} from '@/api/eos.js'; |
|
|
|
export default { |
|
|
|
export default { |
|
|
|
name: 'BibiBalancesDeposit', |
|
|
|
name: 'BibiBalancesDeposit', |
|
|
|
props: { |
|
|
|
props: { |
|
|
@ -168,7 +185,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
timeoutPending = setTimeout(() => { |
|
|
|
timeoutPending = setTimeout(() => { |
|
|
|
tip.visible = false; |
|
|
|
tip.visible = false; |
|
|
|
},1000); |
|
|
|
}, 1000); |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
@ -223,6 +240,57 @@ export default { |
|
|
|
clipboard.destroy(); |
|
|
|
clipboard.destroy(); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
// 确认充值 |
|
|
|
|
|
|
|
surerecharge() { |
|
|
|
|
|
|
|
var name = this.taInfo; |
|
|
|
|
|
|
|
if (name.tokenSymbol == 'EOS') { |
|
|
|
|
|
|
|
addEos({ |
|
|
|
|
|
|
|
addr: name.addr, |
|
|
|
|
|
|
|
tokenId: name.tokenSymbol, |
|
|
|
|
|
|
|
walletType: 'C2C', |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
// 充值成功! |
|
|
|
|
|
|
|
this.$message.success(this.$t('balances.table.add')); |
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
|
|
|
|
location.reload(); //成功刷新页面 |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') { |
|
|
|
|
|
|
|
addBtc({ |
|
|
|
|
|
|
|
addr: name.addr, |
|
|
|
|
|
|
|
tokenId: name.tokenSymbol, |
|
|
|
|
|
|
|
walletType: 'C2C', |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
this.$message.success(this.$t('balances.table.add')); |
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
|
|
|
|
location.reload(); //成功刷新页面 |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
addEth({ |
|
|
|
|
|
|
|
addr: name.addr, |
|
|
|
|
|
|
|
tokenId: name.tokenSymbol, |
|
|
|
|
|
|
|
walletType: 'C2C', |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
this.$message.success(this.$t('balances.table.add')); |
|
|
|
|
|
|
|
setInterval(() => { |
|
|
|
|
|
|
|
location.reload(); //成功刷新页面 |
|
|
|
|
|
|
|
}, 1000); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
}; |
|
|
|
}; |
|
|
|
</script> |
|
|
|
</script> |
|
|
@ -341,4 +409,20 @@ export default { |
|
|
|
.el-dialog__body { |
|
|
|
.el-dialog__body { |
|
|
|
padding: 35px; |
|
|
|
padding: 35px; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
.addBox { |
|
|
|
|
|
|
|
position: relative; |
|
|
|
|
|
|
|
margin-bottom: 60px; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
.add { |
|
|
|
|
|
|
|
color: #e8c141; |
|
|
|
|
|
|
|
display: inline-block; |
|
|
|
|
|
|
|
padding: 12px 12px; |
|
|
|
|
|
|
|
// background-color: #e8494a; |
|
|
|
|
|
|
|
border-radius: 3px; |
|
|
|
|
|
|
|
border: 1px solid #e8c141; |
|
|
|
|
|
|
|
cursor: pointer; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
top: 0; |
|
|
|
|
|
|
|
left: 40%; |
|
|
|
|
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|