zzzz
2024-04-22 a5f4dd223bd0fc3ef727891d68b830ef825e23ba
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<template>
  <div>
    <!-- <van-tabs
      :active="active"
      line-width="15px"
      @change="(e) => change(e, 'active')"
    >
      <van-tab v-for="(item, index) in tabsList" :key="index" :name="item.key">
        <template #title>
          <div class="title">{{ item.title }}</div>
        </template>
      </van-tab>
    </van-tabs>
    <div v-if="active == ''">
      <van-tabs
        :active="zxactive"
        line-width="15px"
        @change="(e) => change(e, 'zxactive')"
      >
        <van-tab
          v-for="(item, index) in zxtabsList"
          :key="index"
          :name="item.key"
        >
          <template #title>
            <div class="title">{{ item.title }}</div>
          </template>
        </van-tab>
      </van-tabs>
    </div> -->
 
    <dataList
      :active="active"
      :sousuo="sousuo"
      :zxactive="zxactive"
      :tabsList="tabsList"
    />
  </div>
</template>
 
<script>
import dataList from "./data.list.vue";
 
export default {
  components: { dataList },
  data() {
    return {
      tabsList: [
        // { title: "自选", key: "" },
        // { title: "数字货币", key: "1", name: "SZHB" },
        { title: this.$t("印股"), key: "2", name: "IN" },
        // { title: this.$t("美股"), key: "3", name: "US" },
      ],
      zxtabsList: [
        // { title: "数字货币", key: "1", name: "SZHB" },
        { title: this.$t("印股"), key: "2", name: "IN" },
        // { title: this.$t("美股"), key: "3", name: "US" },
      ],
      active: "2",
      zxactive: "2",
      sousuo: "",
    };
  },
  methods: {
    change(e, type) {
      this[type] = e;
    },
  },
};
</script>
 
<style lang="less" scoped>
.title {
  // color: red;
  font-size: 18px;
  padding: 10px 20px 10px;
}
/deep/ .van-tabs--line .van-tabs__wrap {
  height: 50px;
}
</style>