<template>
	<view class="index">
		<view class="searchbar">
			<text>常安门户</text>
			<u-search placeholder="请输入搜索内容" 
			placeholder-color="#B8B8B8" 
			:show-action="false" 
			bg-color="#fff"
			v-model="keyword"
			@search="confirmSearch"
			:clearabled="true"></u-search>
		</view>
		
		<slot name="content">
			
		</slot>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				keyword: ""
			};
		},
		
		
		methods:{
			confirmSearch(val){
				console.log(val)
			}
		}
	}
</script>

<style scoped>
	.index {
		background: url(@/static/images/homebg.png) no-repeat;
		background-color: #fff;
		background-size: 100%;
		width: 100%;
		min-height: 435rpx;

		padding-top: 90rpx;

	}
	.index .searchbar{
				padding:30rpx;
	}
	.index text{
		width:30%;
		font-size: 36rpx;
		color:#fff;
		display: inline-block;
		font-family: IdeaFonts-YiYuan, IdeaFonts;
		font-weight: normal;
	}
	.index .u-search{
		width:70%;
		display: inline-block;
		
	}
	/deep/ .u-action{
		display: none;
	}
</style>
