<template>
	<view class="center plr-25">
		<view class="overflow-y">
			<scroll-view scroll-y style="height: 100%;">
				<view class="flex-column br-12 fs-28 mt-30" style="background: #FFFFFF;">
					<text class="fs-32 fw-700 pad-30" style="text-align: left;">家庭成员</text>
					<view class="flex-row-between pad-30" style="border-bottom: 1rpx solid #E9E9E9;">
						<text>姓名</text>
						<input style="text-align: right;" placeholder="请输入姓名" />
					</view>
					<view class="flex-row-between pad-30" style="border-bottom: 1rpx solid #E9E9E9;" @click="open">
						<text>性别</text>
						<view class="flex v-center">
							<text>{{sex==''?"请选择":sex}}</text>
							<image class="w-25 h-30 ml-10" src="/static/icon_r.png"></image>
						</view>
					</view>
					<view class="flex-row-between pad-30" style="border-bottom: 1rpx solid #E9E9E9;">
						<text>关系</text>
						<input style="text-align: right;" placeholder="请输入和业主的关系" />
					</view>
					<view class="flex-row-between pad-30" style="border-bottom: 1rpx solid #E9E9E9;">
						<text>手机号</text>
						<input style="text-align: right;" :disabled="disabled" type="tel" maxlength="11"
							placeholder="请输入手机号" />
					</view>

				</view>
				<u-picker :show="show" :columns="columns" closeOnClickOverlay="true" @cancel="close" @close="close"
					@confirm="confirm"></u-picker>
			</scroll-view>
		</view>
		<view class="h-140 pt-20">
			<!-- <view class="fullscreen-btn">
				确认添加
			</view> -->
			<view class="fullscreen-btn" style="background: #FF6363;">
				删除
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				disabled: false, //禁止输入 true
				show: false,
				sex: '',
				columns: [
					['男', '女']
				],

			};
		},
		onLoad(options) {

		},
		methods: {
			open() {
				this.show = true
			},
			close() {
				this.show = false
			},
			confirm(e) {
				this.show = false
				this.sex = e.value[0]
				console.log("LMG", e.value[0])
			}

		}
	};
</script>

<style>
	.center {
		height: 100vh;
		display: flex;
		flex-direction: column;
		background: #F2F2F2;
	}

	.item {
		width: 100%;
		height: 200rpx;
		margin-top: 20rpx;
	}

	.item2 {
		width: 100%;
		height: 150rpx;
		margin-top: 20rpx;
	}
</style>