<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">惠中北里 106号楼 24层</view>
				<view class="right">
					<view class="house">张26D</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:'张晨',
				},{},{},{}]
			};
		},
		onLoad(options) {
		},
		onShow() {
		
		},
		methods: {
			selectItem(item){
				wx.setStorageSync('houseSource',item)
				// wx.navigateTo({
				// 	url:'/pages/customer/addLedlook'
				// })
				wx.navigateBack()
			}
		},

		onLoad: function(options) {
		},
		onHide: function() {},
	};
</script>

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