searchHead.vue 1004 字节
<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>