diff --git a/src/components/balances/bibi-balances/bibi-balances-table.vue b/src/components/balances/bibi-balances/bibi-balances-table.vue index a160e8d..f386444 100644 --- a/src/components/balances/bibi-balances/bibi-balances-table.vue +++ b/src/components/balances/bibi-balances/bibi-balances-table.vue @@ -8,17 +8,27 @@
{{ $t('balances.table.taotal') }} - {{tatolPrice | formatV}} USDT + {{ tatolPrice | formatV }} USDT - {{tatolPrice * usdAmount | formatV}} USD - {{tatolPrice * hkdAmount | formatV}} HKD - {{tatolPrice * usdAmount | formatV}} USD - {{tatolPrice * cnyAmount | formatV}} CNY - {{tatolPrice * eurAmount | formatV}} EUR + {{ (tatolPrice * usdAmount) | formatV }} USD + {{ (tatolPrice * hkdAmount) | formatV }} HKD + {{ (tatolPrice * usdAmount) | formatV }} USD + {{ (tatolPrice * cnyAmount) | formatV }} CNY + {{ (tatolPrice * eurAmount) | formatV }} EUR
@@ -35,7 +45,11 @@ - +
- {{ itembtc.tokenSymbol }} + {{ + itembtc.tokenSymbol + }}
- {{ itembtc.freeBalance | formatV }} + {{ + itembtc.freeBalance | formatV + }}
- {{ itembtc.freezeBalance | formatV }} + {{ + itembtc.freezeBalance | formatV + }}
{{ $t('balances.table.header_last_recharge') }} + >{{ $t('balances.table.header_last_recharge') }} - + >{{ $t('balances.table.header_last_mention') }} - {{ $t('balances.table.header_last_hua') }} + >{{ $t('balances.table.header_last_hua') }} --> - {{ $t('balances.table.header_last_deal') }} + {{ + $t('balances.table.header_last_deal') + }} - {{ $t('balances.table.header_last_financial') }} + {{ + $t('balances.table.header_last_financial') + }}
@@ -89,93 +123,136 @@
- {{ itemOtcETH.tokenSymbol }} + {{ + itemOtcETH.tokenSymbol + }}
- {{ itemOtcETH.freeBalance | formatV }} + {{ + itemOtcETH.freeBalance | formatV + }}
- {{ itemOtcETH.freezeBalance | formatV }} + {{ + itemOtcETH.freezeBalance | formatV + }}
{{ $t('balances.table.header_last_recharge') }} + >{{ $t('balances.table.header_last_recharge') }} - + >{{ $t('balances.table.header_last_mention') }} - {{ $t('balances.table.header_last_hua') }} + >{{ $t('balances.table.header_last_hua') }} --> - {{ $t('balances.table.header_last_deal') }} + {{ + $t('balances.table.header_last_deal') + }} - {{ $t('balances.table.header_last_financial') }} + {{ + $t('balances.table.header_last_financial') + }}
- +
- {{ item.tokenSymbol }} + {{ + item.tokenSymbol + }}
- {{ item.freeBalance | formatV }} + {{ + item.freeBalance | formatV + }}
- {{ item.freezeBalance | formatV }} + {{ + item.freezeBalance | formatV + }}
{{ $t('balances.table.header_last_recharge') }} + >{{ $t('balances.table.header_last_recharge') }} - + >{{ $t('balances.table.header_last_mention') }} - {{ $t('balances.table.header_last_hua') }} + >{{ $t('balances.table.header_last_hua') }} --> - {{ $t('balances.table.header_last_deal') }} + {{ + $t('balances.table.header_last_deal') + }} - {{ $t('balances.table.header_last_financial') }} + {{ + $t('balances.table.header_last_financial') + }}
@@ -186,7 +263,7 @@
-
{{$t('balances.table.header_nodata')}}
+
{{ $t('balances.table.header_nodata') }}
@@ -203,42 +280,45 @@ - + -
-

{{$t("balances.table.header_betweenBibi")}}

+

{{ $t('balances.table.header_betweenBibi') }}

- - - + --> + + - + --> + + - + --> + + - - - + + - + -->
@@ -277,11 +358,18 @@ import { chargeOTCBtc, chargeOTCUsdt, transferBtc, + addBtc, } from '@/api/btc.js'; -import {getOTCEth, chargeOTCEth, transferEth} from '@/api/eth.js'; +import {getOTCEth, chargeOTCEth, transferEth, addEth} from '@/api/eth.js'; -import {getOTCEos, upOTCEosAddr, chargeOTCEos, transferEos} from '@/api/eos.js'; +import { + getOTCEos, + upOTCEosAddr, + chargeOTCEos, + transferEos, + addEos, +} from '@/api/eos.js'; import {getLeftPrice} from '@/api/currency.js'; @@ -385,9 +473,56 @@ export default { // return; // } // 充值弹窗 - this.ctrl.depositDialogVisible = true; + // this.ctrl.depositDialogVisible = true; this.tatoo = name; - // console.log(this.tatoo); + if (name.tokenSymbol == 'EOS') { + addEos({ + addr: name.addr, + tokenId: name.tokenSymbol, + walletType: 'OTC', + }).then(res => { + console.log(name.tokenSymbol); + console.log(name.addr); + + if (res.data.code === 200) { + // 充值成功! + this.$message.success(this.$t('balances.table.add')); + // location.reload(); //成功刷新页面 + } else { + this.$message.error(res.data.msg); + } + }); + } else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') { + addBtc({ + addr: name.addr, + tokenId: name.tokenSymbol, + walletType: 'OTC', + }).then(res => { + console.log(name.tokenSymbol); + console.log(name.addr); + if (res.data.code === 200) { + this.$message.success(this.$t('balances.table.add')); + // location.reload(); //成功刷新页面 + } else { + this.$message.error(res.data.msg); + } + }); + } else { + addEth({ + addr: name.addr, + tokenId: name.tokenSymbol, + walletType: 'OTC', + }).then(res => { + console.log(name.tokenSymbol); + console.log(name.addr); + if (res.data.code === 200) { + this.$message.success(this.$t('balances.table.add')); + // location.reload(); //成功刷新页面 + } else { + this.$message.error(res.data.msg); + } + }); + } break; case 'withdrawal':