dcc
2024-05-16 289948f53b5e0b00a656d60c08efbff0eb05fa90
src/page/list/tradingList/tabs.vue
@@ -45,31 +45,34 @@
export default {
  components: { dataList },
  mounted() {
    console.log(this.$route.query.type);
    this.active = this.$route.query.type || "2";
    this.active = this.$route.query.type || "MAS";
  },
  data() {
    return {
      tabsList: [
        { title: this.$t("hj61"), key: "" },
        // { title: this.$t("hj61"), key: "" },
        // { title: this.$t("数字货币"), key: "1", name: "SZHB" },
        { title: this.$t("马股"), key: "2", name: "MAS" },
        { title: this.$t("美股"), key: "3", name: "US" },
        { title: this.$t("港股"), key: "4", name: "HK" },
        // { title: this.$t("马股"), key: "MAS", name: "MAS" },
        { title: this.$t("美股"), key: "US", name: "US" },
        { title: this.$t("yg"), key: "IN", name: "IN" },
        // { title: this.$t("港股"), key: "HK", name: "HK" },
      ],
      zxtabsList: [
        // { title: this.$t("数字货币"), key: "1", name: "SZHB" },
        { title: this.$t("马股"), key: "2", name: "MAS" },
        { title: this.$t("美股"), key: "3", name: "US" },
        { title: this.$t("港股"), key: "4", name: "HK" },
        // { title: this.$t("马股"), key: "MAS", name: "MAS" },
        { title: this.$t("美股"), key: "US", name: "US" },
        { title: this.$t("yg"), key: "IN", name: "IN" },
        // { title: this.$t("港股"), key: "HK", name: "HK" },
      ],
      active: "2",
      zxactive: "2",
      active: "MAS",
      zxactive: "MAS",
      sousuo: "",
    };
  },
  methods: {
    change(e, type) {
      console.log(e, type)
      this[type] = e;
    },
  },