| | |
| | | <div class="pl-30 pr-30"> |
| | | <div class="flex justify-between pt-45"> |
| | | <div class="flex"> |
| | | <!-- <img |
| | | <img |
| | | v-if="isReturn" |
| | | :src="require(`@/assets/theme/${theme}/image/icon_back.png`)" |
| | | class="w-40 h-40 back mr-50" |
| | |
| | | : $router.push(`/perpetualContract/${symbol}`) |
| | | " |
| | | /> |
| | | <img |
| | | <!-- <img |
| | | :src="require(`@/assets/theme/${theme}/image/convert.png`)" |
| | | alt="convert-img" |
| | | class="w-35 h-35" |
| | |
| | | /> --> |
| | | <div class="flex flex-col pl-21" @click="onSidebar"> |
| | | <div class="font-35 textColor"> |
| | | {{ (symbol && symbol.toUpperCase()) || "--" }}/USDT |
| | | {{ symbol | _symbolName(1) }} |
| | | </div> |
| | | </div> |
| | | <div |
| | |
| | | @click="onRoute(item)" |
| | | > |
| | | <div> |
| | | <div class="font-700 textColor">{{ item.name || "--" }}</div> |
| | | <!-- {{ JSON.stringify(item) }} --> |
| | | <div class="font-700 textColor"> |
| | | {{ item.symbol | _symbolName(1) }} |
| | | </div> |
| | | <div v-if="!kineType" class="text-grey mt-10">{{ title }}</div> |
| | | </div> |
| | | <div class="text-right"> |
| | |
| | | ...mapGetters({ |
| | | coinList: "home/coinList", |
| | | theme: "home/theme", |
| | | newcoinArr: "home/newcoinArr", |
| | | }), |
| | | }, |
| | | data() { |
| | |
| | | // { name:"ADA/USDT",close:"0.493085",change_ratio:"-4.08"}, |
| | | //] |
| | | }; |
| | | }, |
| | | mounted() { |
| | | this.NEW_CION_LIST(); |
| | | }, |
| | | watch: { |
| | | symbol(val) { |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | ...mapMutations("home", ["SET_THEME"]), |
| | | ...mapMutations("home", ["SET_THEME", "NEW_CION_LIST"]), |
| | | onRoute(item) { |
| | | if (this.islevel) { |
| | | if (this.$route.params.symbol !== item.symbol) { |
| | |
| | | }, |
| | | fetchList() { |
| | | // 获取行情 |
| | | _getHomeList(this.coins.join(",")).then((list) => { |
| | | const mainArray = this.coins.filter( |
| | | (item) => !this.newcoinArr.includes(item) |
| | | ); |
| | | _getHomeList(mainArray.join(",")).then((list) => { |
| | | // console.log(list) |
| | | this.list = list; |
| | | if (this.timeout) { |