| | |
| | | [Tab.name]: Tab, |
| | | [Tabs.name]: Tabs, |
| | | }, |
| | | mounted() { |
| | | this.NEW_CION_LIST(); |
| | | }, |
| | | |
| | | async created() { |
| | | this.keywords = this.$route.query.inputdata; |
| | | // console.log(this.inputdata, "this.inputdata"); |
| | |
| | | sortVal: 0, |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.NEW_CION_LIST(); |
| | | this.GET_UERS_KYC(); |
| | | }, |
| | | methods: { |
| | | ...mapActions("home", [SET_COIN_LIST], "NEW_CION_LIST"), |
| | | ...mapActions("home", [SET_COIN_LIST, "NEW_CION_LIST"]), |
| | | ...mapActions("user", ["GET_UERS_KYC"]), |
| | | |
| | | listSort(val) { |
| | | this.sortVal = val; |
| | | }, |
| | | async fetchQoutes() { |
| | | console.log(this.coinList, "======"); |
| | | // 现货/合约 |
| | | if (!this.coinList.length) { |
| | | await this.SET_COIN_LIST(); |
| | |
| | | const coins = this.coinList.map((item) => item.symbol); |
| | | const mainArray = coins.filter((item) => !this.newcoinArr.includes(item)); |
| | | const data = await _getHomeList(mainArray.join(",")); |
| | | console.log(data); |
| | | this.tabList[0]["data"] = data.filter((item) => |
| | | this.myList.includes(item.symbol) |
| | | ); |
| | |
| | | clearTimeout(this.timeout); |
| | | this.timeout = null; |
| | | } |
| | | console.log(this.tabList[1]); |
| | | //排序 |
| | | if (this.sortVal == 1) { |
| | | this.tabList[0]["data"] = this.tabList[0]["data"].sort( |
| | |
| | | getFilterData() { |
| | | // 过滤后的数据 |
| | | const index = this.active / 1 - 1; |
| | | console.log(index); |
| | | |
| | | console.log(index, "====", this.keywords, this.tabList); |
| | | this.tabList[index]["data"] = this.tabList[index]["data"].filter((item) => |
| | | item.symbol.includes(this.keywords.toLocaleLowerCase()) |
| | | ); |