| | |
| | | <script> |
| | | import { Popup, ActionSheet, showToast } from "vant" |
| | | import Axios from "@/service/recharge.js" |
| | | import { _withdrawFee } from "@/service/withdraw.api.js" |
| | | import { _withdrawFee,_withdrawApply } from "@/service/withdraw.api.js" |
| | | import assetsHead from "@/components/Transform/assets-head/index.vue"; |
| | | import BarScan from '@/components/Transform/scan/scan.vue'; |
| | | import { _getAllWallet } from "@/service/fund.api"; |
| | |
| | | value: 'USDT', //选中的币种 |
| | | show: false, |
| | | showSymbol: false, |
| | | actions: [{ name: 'USDT' }, { name: 'BTC' }, { name: 'ETH' }], |
| | | actions: [{ name: 'USDT' }, { name: 'BTC' }, { name: 'ETH' }, { name: 'USDC' }], |
| | | blockList: [], |
| | | blockchainIndex: "", |
| | | usdtBalance: "", //余额 |
| | |
| | | } |
| | | |
| | | if (this.amount && this.address) { |
| | | this.$router.push({ |
| | | path: '/cryptos/withdraw/securityVerification', |
| | | query: { |
| | | amount: this.amount, |
| | | from: this.address, |
| | | channel: this.value + '_' + this.blockName |
| | | } |
| | | }) |
| | | // AxiosWithdraw.WithdrawApply({ |
| | | // session_token:this.sessionToken, |
| | | // amount:this.amount, |
| | | // from:this.address, |
| | | // channel:this.value+'_'+ this.blockName |
| | | // }).then((res)=> { |
| | | // if(res.code==0) { |
| | | // this.$router.push({ |
| | | // path:"/withdraw/withdrawSumbit" |
| | | // }); |
| | | // }else{ |
| | | // this.$toast(this.$t(res.msg)); |
| | | // } |
| | | // this.getToken(); |
| | | // }); |
| | | // this.$router.push({ |
| | | // path: '/cryptos/withdraw/securityVerification', |
| | | // query: { |
| | | // amount: this.amount, |
| | | // from: this.address, |
| | | // channel: this.value + '_' + this.blockName |
| | | // } |
| | | // }) |
| | | _withdrawApply({ |
| | | session_token:this.sessionToken, |
| | | amount:this.amount, |
| | | from:this.address, |
| | | channel:this.value+'_'+ this.blockName |
| | | }).then((res)=> { |
| | | console.log('123123123123123',res); |
| | | if(res.code==0) { |
| | | this.$router.push({ |
| | | path:"/withdraw/withdrawSumbit" |
| | | }); |
| | | }else{ |
| | | this.$toast(this.$t(res.msg)); |
| | | } |
| | | this.getToken(); |
| | | }); |
| | | } else { |
| | | showToast(this.$t('请输入提币数量')); |
| | | } |