zzzz
2024-04-19 6e110dc1fa7de1a39ce16222b5d5fdacaa61c287
src/components/trade-head/index.vue
@@ -97,7 +97,14 @@
          @click="onRoute(item)"
        >
          <div>
            <div class="font-700 textColor">{{ item.name || "--" }}</div>
            <!-- {{ JSON.stringify(item) }} -->
            <div class="font-700 textColor">
              {{
                item.name
                  ? item.symbol.toUpperCase() + "/" + item.name.split("/")[1]
                  : "--"
              }}
            </div>
            <div v-if="!kineType" class="text-grey mt-10">{{ title }}</div>
          </div>
          <div class="text-right">
@@ -172,6 +179,7 @@
    ...mapGetters({
      coinList: "home/coinList",
      theme: "home/theme",
      newcoinArr: "home/newcoinArr",
    }),
  },
  data() {
@@ -191,6 +199,9 @@
      // { name:"ADA/USDT",close:"0.493085",change_ratio:"-4.08"},
      //]
    };
  },
  mounted() {
    this.NEW_CION_LIST();
  },
  watch: {
    symbol(val) {
@@ -218,7 +229,7 @@
    }
  },
  methods: {
    ...mapMutations("home", ["SET_THEME"]),
    ...mapMutations("home", ["SET_THEME", "NEW_CION_LIST"]),
    onRoute(item) {
      if (this.islevel) {
        if (this.$route.params.symbol !== item.symbol) {
@@ -251,7 +262,10 @@
    },
    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) {