| | |
| | | ) { |
| | | url = "/symbol/" + newName + ".png"; //不用过滤 |
| | | } else if (newName === "usdc") { |
| | | url = "/wap/symbol/" + filterUSDName + ".png"; |
| | | url = "/wap/symbol/" + newName + ".png"; |
| | | } else { |
| | | const regex = /(\/){0,1}usd(t){0,1}(\/){0,1}/i; |
| | | const filterUSDName = newName.replace(regex, ""); |
| | |
| | | coin: this.coin, |
| | | }).then((res) => { |
| | | const elarr = res.data.page.elements; |
| | | this.blockchain = elarr; |
| | | this.listOpData1 = []; |
| | | for (var i in elarr) { |
| | | if ( |
| | |
| | | this.listOpData1.push({ |
| | | icon: elarr[i].coin, |
| | | name: elarr[i].blockchain_name, |
| | | ...elarr[i], |
| | | }); |
| | | } |
| | | } |
| | | this.blockchain = this.listOpData1; |
| | | this.blockchainIndex = 0; |
| | | this.address = this.blockchain[0].address; |
| | | this.imgURl = this.mounted(this.blockchain[0].address); //TODO 接口返回的地址有问题 |