1
jhzh
2025-07-22 421087f05bbcee88211f2b95afd4843da521998b
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<template>
  <div>
    <van-nav-bar
      :placeholder="true"
      :safe-area-inset-top="true"
      :title="$t('hj3')"
      left-arrow
      @click-left="onClickLeft"
    />
    <!-- 搜索框 -->
    <!-- <div class="search">
      <div class="search_content">
        <div class="left_search">
          <div class="search_img">
            <img src="../../assets/img/searchs.png" alt />
          </div>
          <div class="search_input">
            <input
              type="text"
              class="searchs"
              :placeholder="$t('hj37')"
              ref="search"
              id="sousuo"
              v-model="gpcode"
              @input="gpinput"
            />
          </div>
        </div>
        <div class="right_search" @click="sousuo">Search</div>
      </div>
    </div> -->
    <tabsList ref="tabsList" />
  </div>
</template>
 
<script>
import tabsList from "./favorites/tabs";
import headers from "@/page/login/components/header.vue";
export default {
  components: { tabsList, headers },
  data() {
    return {
      gpcode: "",
    };
  },
  methods: {
    onClickLeft() {
      this.$router.push("/home");
    },
    sousuo() {
      this.$refs.tabsList.sousuo = this.gpcode;
    },
    gpinput(e) {
      this.gpcode = e.target.value;
    },
  },
};
</script>
 
<style scoped lang="less">
.search {
  height: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 15px 22px;
  position: relative;
  z-index: 99;
 
  .search_content {
    width: 100%;
    height: 90%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
 
  .left_search {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 0.5rem;
    display: flex;
    .search_img {
      width: 1rem;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
      img {
        width: 0.5rem;
        height: 0.5rem;
      }
    }
 
    .search_input {
      width: 100%;
      overflow: hidden;
      height: 100%;
      display: flex;
    }
  }
 
  .right_search {
    width: 140px;
    line-height: 0.9rem;
    text-align: center;
    height: 100%;
    border-radius: 0.5rem;
    background-color: #0066ed;
    color: #ffffff;
    font-weight: bold;
    margin-left: 20px;
  }
}
/deep/ .van-nav-bar__content {
  height: 65px;
}
/deep/ .van-nav-bar__title {
  font-family: "DINPro";
  width: 100%;
  height: 1.17333rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: normal;
  font-weight: 500;
  font-size: 0.48rem;
  color: #14181f;
}
</style>