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
| <template>
| <div>
| <!-- 搜索框 -->
| <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">Search</div>
| </div>
| </div>
| <tabsList />
| </div>
| </template>
|
| <script>
| import tabsList from "./tradingList/tabs";
| export default {
| components: { tabsList },
| data() {
| return {
| gpcode: "",
| };
| },
| methods: {
| gpinput(e) {
| console.log(clickTab, "clickTab");
| },
| },
| };
| </script>
|
| <style scoped lang="less">
| .search {
| height: 1rem;
| display: flex;
| align-items: center;
| justify-content: center;
| margin: 15px 22px;
| position: relative;
| z-index: 3000;
|
| .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;
| }
| }
| </style>
|
|