| | |
| | | import { _getBalance } from "@/service/trade.api"; |
| | | // import { formatTime } from "@/utils/utis"; |
| | | import { _getAllWallet } from "@/service/fund.api"; |
| | | import { _getassets } from "@/service/user.api.js"; |
| | | |
| | | // keep-alive |
| | | export default { |
| | |
| | | } |
| | | this.initData(); |
| | | // 获取余额 |
| | | _getAllWallet().then((res) => { |
| | | let walletList = res.extends; |
| | | let initObj = walletList.find(item => { |
| | | return item.symbol.toLowerCase() == this.$store.state.c2c.symbol.toLowerCase() |
| | | }) |
| | | this.usableVolume = initObj.usable |
| | | }); |
| | | // _getAllWallet().then((res) => { |
| | | // let walletList = res.extends; |
| | | // let initObj = walletList.find(item => { |
| | | // return item.symbol.toLowerCase() == this.$store.state.c2c.symbol.toLowerCase() |
| | | // }) |
| | | // this.usableVolume = initObj.usable |
| | | // }); |
| | | _getassets().then(res => { |
| | | this.usableVolume = res.contract |
| | | }) |
| | | }, |
| | | mounted() { |
| | | // this.$bus.$on("returnPwd", (pwd) => { |