| | |
| | | this.type = this.$route.query.type |
| | | } |
| | | await this.SET_COIN_LIST(this.type) |
| | | // _getBalance().then(data => { // 获取用户余额 |
| | | // this.$store.commit('user/SET_USERINFO', { balance: data.money }) |
| | | // // const { money } = data |
| | | // // this.balance = money |
| | | // }) |
| | | if (this.userInfo.token) { |
| | | this.getBalance() |
| | | this.timerMoeny = setInterval(() => { |
| | |
| | | type: 'orders', |
| | | page_no: 1 |
| | | }).then(data => { |
| | | // if (typeof this.timer === 'string') { |
| | | // this.timer = null |
| | | // return |
| | | // } |
| | | this.orderCur = data |
| | | }) |
| | | }, 1000) |
| | |
| | | }) |
| | | this.timer = setInterval(() => { |
| | | contractOrder(obj).then(data => { |
| | | // if (typeof this.timer === 'string') { |
| | | // this.timer = null |
| | | // return |
| | | // } |
| | | // this.orderHold = data |
| | | this.orderHold = data.sort(this.sortData); |
| | | }) |
| | |
| | | }) |
| | | this.timer = setInterval(() => { |
| | | _futrueOrderList(symbol, 'orders', 1, 'cryptos').then(data => { |
| | | // if (typeof this.timer === 'string') { |
| | | // this.timer = null |
| | | // return |
| | | // } |
| | | // this.futrueHold = data |
| | | this.futrueHold = data.sort(this.sortData); |
| | | }) |