| | |
| | | [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"); |
| | |
| | | await this.fetchQoutes(); |
| | | }, |
| | | computed: { |
| | | ...mapGetters({ coinList: "home/coinList", userInfo: "user/userInfo" }), |
| | | ...mapGetters({ |
| | | coinList: "home/coinList", |
| | | userInfo: "user/userInfo", |
| | | newcoinArr: "home/newcoinArr", |
| | | }), |
| | | }, |
| | | data() { |
| | | const arr = []; |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | ...mapActions("home", [SET_COIN_LIST]), |
| | | ...mapActions("home", [SET_COIN_LIST], "NEW_CION_LIST"), |
| | | listSort(val) { |
| | | this.sortVal = val; |
| | | }, |
| | |
| | | await this.SET_COIN_LIST(); |
| | | } |
| | | const coins = this.coinList.map((item) => item.symbol); |
| | | const data = await _getHomeList(coins.join(",")); |
| | | 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) |