|
|
@ -358,11 +358,11 @@ import BalancesWithdrawalWidget from '@/components/balances/balances-withdrawal- |
|
|
|
import {getExchangeRateCookie} from '@/utils/auth'; |
|
|
|
import {getExchangeRateCookie} from '@/utils/auth'; |
|
|
|
|
|
|
|
|
|
|
|
// 获取请求 |
|
|
|
// 获取请求 |
|
|
|
import {getBtc, chargeBtc, chargeUsdt, transferBtc} from '@/api/btc.js'; |
|
|
|
import {getBtc, chargeBtc, chargeUsdt, transferBtc, addBtc} from '@/api/btc.js'; |
|
|
|
|
|
|
|
|
|
|
|
import {getEth, chargeEth, transferEth} from '@/api/eth.js'; |
|
|
|
import {getEth, chargeEth, transferEth, addEth} from '@/api/eth.js'; |
|
|
|
|
|
|
|
|
|
|
|
import {getEos, upEosAddr, chargeEos, transferEos} from '@/api/eos.js'; |
|
|
|
import {getEos, upEosAddr, chargeEos, transferEos, addEos} from '@/api/eos.js'; |
|
|
|
|
|
|
|
|
|
|
|
import {getLeftPrice} from '@/api/currency.js'; |
|
|
|
import {getLeftPrice} from '@/api/currency.js'; |
|
|
|
|
|
|
|
|
|
|
@ -469,9 +469,46 @@ export default { |
|
|
|
// this.$message.warning('敬请期待!'); |
|
|
|
// this.$message.warning('敬请期待!'); |
|
|
|
// return; |
|
|
|
// return; |
|
|
|
// } |
|
|
|
// } |
|
|
|
this.ctrl.depositDialogVisible = true; |
|
|
|
// this.ctrl.depositDialogVisible = true; |
|
|
|
this.tatoo = name; |
|
|
|
this.tatoo = name; |
|
|
|
// console.log(this.tatoo); |
|
|
|
if (name.tokenSymbol == 'EOS') { |
|
|
|
|
|
|
|
addEos({ |
|
|
|
|
|
|
|
addr: name.addr, |
|
|
|
|
|
|
|
tokenId: name.tokenSymbol, |
|
|
|
|
|
|
|
walletType: 'CCT', |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
// 充值成功! |
|
|
|
|
|
|
|
this.$message.success(this.$t('balances.table.add')); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else if (name.tokenSymbol == 'BTC' || name.tokenSymbol == 'USDT') { |
|
|
|
|
|
|
|
addBtc({ |
|
|
|
|
|
|
|
addr: name.addr, |
|
|
|
|
|
|
|
tokenId: name.tokenSymbol, |
|
|
|
|
|
|
|
walletType: 'CCT', |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
this.$message.success(this.$t('balances.table.add')); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
addEth({ |
|
|
|
|
|
|
|
addr: name.addr, |
|
|
|
|
|
|
|
tokenId: name.tokenSymbol, |
|
|
|
|
|
|
|
walletType: 'CCT', |
|
|
|
|
|
|
|
}).then(res => { |
|
|
|
|
|
|
|
if (res.data.code === 200) { |
|
|
|
|
|
|
|
this.$message.success(this.$t('balances.table.add')); |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
this.$message.error(res.data.msg); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
break; |
|
|
|
break; |
|
|
|
case 'withdrawal': |
|
|
|
case 'withdrawal': |
|
|
|