brand-search.vue
1.11 KB
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
<template>
<div class="search">
<div class="input" @click='yoho.goSearch()'>
<span class="icon icon-search"></span><span class="search-text">Search</span>
</div>
</div>
</template>
<style>
.search {
width: 100%;
height: 88px;
padding: 15px 15px;
background-color: #fff;
text-align: center;
border-bottom: 1px solid #f6f6f6;
background-color: #fff;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 99;
.input {
margin-left: auto;
margin-right: auto;
background-color: #f6f6f6;
text-align: center;
color: #b0b0b0;
height: 56px;
line-height: 56px;
font-size: 28px;
/* padding: 5px 0; */
border-radius: 8px;
.search-text {
margin-left: 16px;
}
}
}
</style>
<script>
import yoho from 'yoho';
export default {
data() {
return {
yoho
};
}
};
</script>