<template>
	<view class="container">
		<view class="page">
			<view class="information">
				<view class="form">
					<uni-forms>
						<view class="form-item">
							<view class="form-item-fl">
								头像
							</view>
							<view class="form-item-fr">
								<image src="../../static/images/img01.png" class="icon"></image>
								<uni-icons type="forward" color="#E4E4EA"></uni-icons>
							</view>
						</view>
						<view class="form-item">
							<view class="form-item-fl">
								姓名
							</view>
							<view class="form-item-fr">
								<input class="form-item-tit" v-model="formData.name" focus placeholder="请输入姓名" />
							</view>
						</view>
						<view class="form-item">
							<view class="form-item-fl">
								性别
							</view>
							<view class="form-item-fr">
								<uni-data-checkbox v-model="formData.sex" :localdata="sexs" class="form-item-tit" />
							</view>
						</view>
						<view class="form-item">
							<view class="form-item-fl">
								年龄
							</view>
							<view class="form-item-fr">
								<input class="form-item-tit" v-model="formData.name1" focus placeholder="请输入年龄" />
							</view>
						</view>
						<view class="form-item">
							<view class="form-item-fl">
								<view class="asterisk">*</view>手机号码
							</view>
							<view class="form-item-fr">
								<input class="form-item-tit" v-model="formData.name1" focus placeholder="请输入手机号码" />
							</view>
						</view>
						<view class="form-item">
							<view class="form-item-fl">
								地址
							</view>
							<view class="form-item-fr">
								<input class="form-item-tit" v-model="formData.name1" focus placeholder="请输入地址" />
							</view>
						</view><strong></strong>
					</uni-forms>
				</view>

				<view class="form-submit">保存</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formData: {
					name: '',
					name1: '',
					sex: '',
					name2: '',
				},
				sexs: [{
					text: '男',
					value: 0
				}, {
					text: '女',
					value: 1
				}]
			}
		},
		methods: {},
		onLoad() {

		},
		onShow() {

		}
	}
</script>
<style lang="scss" scoped>
	.page {
		padding: 30rpx;
	}

	.information {

		.form {
			background-color: #ffffff;
			border-radius: 16rpx;
			padding: 30rpx;
			margin-bottom: 30rpx;

			.form-item {
				display: flex;
				align-items: center;
				justify-content: space-between;
				height: 84rpx;
				line-height: 84rpx;
				border-bottom: 1px solid #F8F6F9;
				overflow: hidden;
			}

			.form-item-fl {
				font-size: 28rpx;
				color: #373737;
				display: flex;

				.asterisk {
					color: #F42E2E;
					width: 10rpx;
					margin-right: 6rpx;
				}

			}

			.form-item-fr {
				display: flex;
				flex: 2;
				align-items: center;
				justify-content: flex-end;
				margin-left: 20rpx;

				.icon {
					height: 64rpx;
					width: 64rpx;
					margin-right: 20rpx;
				}
			}

			.form-item-tit {
				font-size: 28rpx;
				color: #666;
				margin-right: 20rpx;
				text-align: right;
			}
		}
	}

	.form-submit {
		height: 80rpx;
		line-height: 80rpx;
		background-color: #6A59F2;
		border-radius: 80rpx;
		width: 100%;
		text-align: center;
		font-size: 28rpx;
		color: #FFFFFF;
	}
</style>