zzzz
2024-04-18 fc5ec7167a7d371d2cd945656bb63c7b5267a6c7
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
<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 == 'zx'">
      <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"
      :zxtabsList="zxtabsList"
    />
  </div>
</template>
 
<script>
import dataList from "./data.list.vue";
export default {
  components: { dataList },
  mounted() {
    this.active = this.$route.query.type || "IN";
  },
  data() {
    return {
      tabsList: [
        { title: this.$t("hj61"), key: "zx" },
        { title: this.$t("印股"), key: "IN", name: "IN" },
      ],
      zxtabsList: [{ title: this.$t("印股"), key: "IN", name: "IN" }],
      active: "",
      zxactive: "IN",
      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>