-
{{$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':