<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>
						<text>张三</text>
					</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>
						<text>张三</text>
					</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>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				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>