index.vue 892 Bytes
<template>
	<view class="content">
		<view class="searchBar">
			<icon class="searchIcon" type="search" size="21"></icon>
			<input class="searchIpt" placeholder="请输入搜索内容" confirm-type="search"/>
		</view>
		<view class="screenBar"></view>
		<view class=""></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello'
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style>
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.searchBar {
		width: calc(100% - 16rpx * 2);
		display: flex;
		justify-content: center;
		align-items: center;
		box-sizing: border-box;
		margin: 16rpx 16rpx;
		padding: 0rpx 16rpx;
		background-color: #F8F8F8;
	}
	
	.searchIpt {
		height: 64rpx;
		width: 100%;
		padding: 16rpx;
		font-size: 28rpx;
		box-sizing: border-box;
	}


</style>