searchHead.vue
1004 字节
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
<template>
<view class="search_box">
<view class="search_input">
<u-search placeholder="输入球场名字搜索" placeholder-color="#CDCDCD" bg-color="#F6F6F6" v-model="keyword" :show-action="false"></u-search>
</view>
<view class="location">
<u-icon name="map" :color="ThemeColor.PrimaryColor"></u-icon>
<text>南宁</text>
</view>
</view>
</template>
<script>
import ThemeColor from '@/utils/themeColor.js'
export default {
data() {
return {
ThemeColor,
keyword: ''
}
}
}
</script>
<style lang="scss" scoped>
.search_box{
display: flex;
align-items: center;
justify-content: space-between;
height: 108rpx;
margin-bottom: 20rpx;
padding: 24rpx 30rpx;
box-sizing: border-box;
background-color: #fff;
.search_input{
flex: 1;
}
.location{
display: flex;
flex-direction: column;
align-items: center;
width: 50rpx;
font-size: 24rpx;
line-height: 28rpx;
color: $uni-color-primary;
margin-left: 28rpx;
}
}
</style>