<template>
	<view class="container">
		<view class="search">
			<u-search placeholder="房间号搜索" height="78" :show-action="false" v-model="keyword"></u-search>
		</view>
		<view class="list-box">
			<view class="list-item" @click="selectItem(item)" v-for="(item,index) in listData" :key="index">
				<view class="person-info">
					<image class="icon" src="/static/kehu/person_gray.png" mode="" />
					<view class="name u-line-1">{{item.name}}</view>
				</view>
				<view class="house u-line-1">{{item.address}}</view>
				<view class="right">
					<view class="house u-line-1">{{item.person}}</view>
					<image class="path" src="/static/path.png" mode="" />
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				keyword: '',
				listData: [{
					address:'惠中北里 106号楼 24层',
					name:'张晨张',
					person: '张26D'
				},{address:'惠中北里 106号楼 24层',
					name:'zhangzj',person: '张26D'},
					{address:'惠中北里惠中北里惠中北里惠中北里惠中北里 106号楼 24层',
					name:'张晨',person: '张26D'},
					{address:'惠中北里 106号楼 24层',
					name:'张晨',person: '张26D'}]
			};
		},
		onLoad(options) {
		},
		onShow() {
		
		},
		methods: {
			selectItem(item){
				wx.setStorageSync('houseSource',item)
				// wx.navigateTo({
				// 	url:'/pages/customer/addLedlook'
				// })
				wx.navigateBack()
			}
		},
	};
</script>

<style lang="scss" scoped>
.container{
	width: 750rpx;
	min-height: 100vh;
	background: #F8F8F8;
	.search{
		width: 100%;
		height: 110rpx;
		padding:16rpx 30rpx;
		background: #fff;
		margin-bottom: 20rpx;
	}
	.list-box{
		.list-item{
			padding: 0 30rpx;
			height: 100rpx;
			line-height: 100rpx;
			background: #fff;
			font-family: PingFangSC-Regular, PingFang SC;
			font-size: 28rpx;
			font-weight: 400;
			color: #333333;
			display: flex;
			align-items: center;
			margin-bottom: 20rpx;
			.person-info{
				display: flex;
				align-items: center;
				.icon{
					width: 28rpx;
					height: 30rpx;
					margin-right: 12rpx;
				}
				.name{
					width: 110rpx;
				}
			}
			.house{
				
				flex:1;
				margin: 0 10rpx;
			}
			.right{
				display: flex;
				align-items: center;
				.house{
					max-width: 100rpx;
				}
				.path{
					width: 14rpx;
					height: 30rpx;
					margin-left: 12rpx;
				}
			}
			
		}
	}
}
</style>
