<template>
	<view class="container">
		<view class="page">
			<view class="maintenance">
				<view class="form">
					<uni-forms>
						<view class="form-item">
							<view class="form-item-fl">
								<view class="asterisk">*</view>报修位置
							</view>
							<view class="form-item-fr">
								<view class="form-item-tit">汉江之星小区</view>
								<uni-icons type="forward" color="#E4E4EA"></uni-icons>
							</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 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 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 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 class="asterisk">*</view>预约上门时间
							</view>
							<view class="form-item-fr">
								<uni-datetime-picker type="datetime" v-model="datetimesingle" :border="false" />
								<uni-icons type="forward" color="#E4E4EA"></uni-icons>
							</view>
						</view>
						<view class="form-item-text">
							<view class="title">问题描述</view>
							<view class="textarea">
								<uni-easyinput type="textarea" v-model="baseFormData.introduction"
									placeholder="请输入问题描述" /></uni-easyinput>
							</view>
						</view>
						<view class="form-item-text">
							<view class="title">问题图片(最多传三张)</view>
							<view class="picker">
								<uni-file-picker limit="3"></uni-file-picker>
							</view>
						</view>
					</uni-forms>
				</view>

				<view class="form-submit" @click="toAudit()">下一步</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				formData: {
					name: '',
				},
				datetimesingle: '',
			}
		},
		methods: {
			toAudit() {
				uni.navigateTo({
					url: '/pages/maintenanceAaudit/index',
				});
			}
		},
		onLoad() {

		},
		onShow() {

		}
	}
</script>
<style>
	page {
		background-color: #F8F6F9;
	}
</style>
<style lang="scss" scoped>
	.page {
		padding: 30rpx;
	}

	.maintenance {

		.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;
				text-align: right;
			}

			.form-item-tit {
				font-size: 28rpx;
				color: #666;
				margin-right: 20rpx;
				text-align: right;
			}
			.form-item-text{
				.title{
					height: 84rpx;
					line-height: 84rpx;
					font-size: 28rpx;
					color: #373737;
					margin-left: 10rpx;
				}
				.textarea{
					background-color: #F8F8F8;
				}
			}
		}
	}

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