1
PC-20250623MANY\Administrator
2025-07-26 35ba5f69dc6f207e73c99af9c46e0820a7388852
src/page/markets/markets.vue
@@ -1,13 +1,7 @@
<template>
  <div class="markets">
    <tab-head :rightShow="false">
      <van-popover
        v-model="switchShow"
        trigger="click"
        :actions="actions"
        @select="onSelect"
        placement="bottom-end"
      >
      <van-popover v-model="switchShow" trigger="click" :actions="actions" @select="onSelect" placement="bottom-end">
        <template #reference>
          <div class="switch flex-center">
            <van-icon name="exchange" size=".45em" />
@@ -18,13 +12,8 @@
    </tab-head>
    <div class="tabs flex-between">
      <div
        class="tab_item flex-center"
        :class="{ active: item.pid == tab }"
        v-for="item in tabList"
        :key="item.pid"
        @click="tab = item.pid"
      >
      <div class="tab_item flex-center" :class="{ active: item.pid == tab }" v-for="item in tabList" :key="item.pid"
        @click="tab = item.pid">
        <span>{{ item.abbreviation }}</span>
      </div>
    </div>
@@ -108,7 +97,8 @@
    await this.getTabData();
    this.tab = this.tabList[0].pid;
  },
  mounted() {},
  mounted() {
  },
  methods: {
    // 选择
    async onSelect(e) {
@@ -146,7 +136,7 @@
    // tab切换
    tabChange() {
      this.getIndicesAndKData();
    }
    },
  }
};
</script>