| | |
| | | isGetdata = true |
| | | } |
| | | if (isGetdata) { |
| | | this.getBlock(this.value); |
| | | // this.getBlock(this.value); |
| | | this.getAvailable(this.actions[0].name); |
| | | |
| | | |
| | |
| | | this.showSymbol = false; |
| | | this.value = item.name; |
| | | this.withdraw_fee_type = '' |
| | | this.getBlock(item.name); |
| | | // this.getBlock(item.name); |
| | | this.getAvailable(item.name) |
| | | if (item.name == 'BTC' || item.name == 'ETH') { |
| | | this.numLenth = 7 |
| | |
| | | } |
| | | }, |
| | | //根据币种获取链地址 |
| | | getBlock(symbol) { |
| | | Axios.getBlock({ |
| | | coin: symbol |
| | | }).then((res) => { |
| | | this.blockList = res.data; |
| | | this.blockName = res.data[0].blockchain_name; |
| | | }); |
| | | }, |
| | | // getBlock(symbol) { |
| | | // Axios.getBlock({ |
| | | // coin: symbol |
| | | // }).then((res) => { |
| | | // this.blockList = res.data; |
| | | // this.blockName = res.data[0].blockchain_name; |
| | | // }); |
| | | // }, |
| | | //选中链名称 |
| | | changeBlockchain(item, index) { |
| | | this.blockchainIndex = index; |