<template>
	<view class="container">
		<view class="page">
			<view class="housing">
				<view class="audit">
					<view class="uni-icons"><uni-icons type="checkmarkempty" size="25" color="#F6C864"></uni-icons>
					</view>
					<view class="name">您的维修提交成功，请耐心等待</view>
				</view>
				<view class="steps-landscape">
					<view class="title">维修流程</view>
					<uni-steps :options="list2" active-color="#6A59F2" :active="active" direction="column" />
				</view>
				<view class="information">
					<view class="title">报修信息</view>
					<view class="content">
						<view class="item">
							<view class="name">报修地址</view>
							<view class="detail">汉江之星小区01栋2单元402</view>
						</view>
						<view class="item">
							<view class="name">维修物品</view>
							<view class="detail">电梯</view>
						</view>
						<view class="item">
							<view class="name">标题</view>
							<view class="detail">电梯坏了</view>
						</view>
						<view class="item">
							<view class="name">手机号码</view>
							<view class="detail">16589000078</view>
						</view>
						<view class="item">
							<view class="name">预约上门时间</view>
							<view class="detail">2022/09/09 14: 00 -16：00</view>
						</view>
						<view class="item text">
							<view class="name">问题描述</view>
							<view class="detail">9月9号上午电梯突然无法运行9月9号上午电梯突然无法运行9月9号上午电梯突然无法运行</view>
						</view>
						<view class="item text">
							<view class="name">附件</view>
							<view class="image">
								<image src="../../static/images/img02.png" class="icon"></image>
								<image src="../../static/images/img03.png" class="icon"></image>
							</view>
						</view>
					</view>
				</view>
				<view class="form-submit" @click="toEditor()">修改</view>
				<view class="form-delete" @click="deleteDialog">删除</view>
			</view>
		</view>
		<uni-popup ref="popup" type="dialog">
			<uni-popup-dialog type="error" cancelText="关闭" confirmText="同意" title="删除信息" content="确定要删除此信息吗？!"
				@confirm="dialogConfirm" @close="dialogClose"></uni-popup-dialog>
		</uni-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				active: 1,
				list2: [{
					title: '提交维修申请',
					desc: '提交成功'
				}, {
					title: '物业派单中',
					desc: '物业派单中'
				}]
			}
		},
		methods: {
			deleteDialog() {
				this.$refs.popup.open()
			},
			dialogConfirm() {},
			dialogClose() {
				this.$refs.popup.close()
			},
			toEditor() {
				uni.navigateTo({
					url: '/pages/maintenanceAdd/index',
				});
			}
		},
		onLoad() {

		},
		onShow() {

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

	.housing {
		.audit {
			display: flex;
			flex-wrap: wrap;
			justify-content: center;
			background-color: #ffffff;
			border-radius: 16rpx;
			padding: 30rpx;
			margin-bottom: 30rpx;

			.uni-icons {
				background-color: #F8F6F9;
				text-align: center;
				width: 100rpx;
				height: 100rpx;
				border-radius: 100rpx;
				border: 2px dashed #6A59F2;
				line-height: 100rpx;
			}

			.name {
				margin-top: 20rpx;
				font-size: 28rpx;
				color: #373737;
				width: 100%;
				text-align: center;
			}

		}

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

			.title {
				height: 40rpx;
				line-height: 40rpx;
				padding-left: 20rpx;
				border-left: 3px solid #6852F0;
				font-size: 32rpx;
				color: #373737;
				margin-bottom: 20rpx;
			}

		}
	}

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

		.title {
			height: 40rpx;
			line-height: 40rpx;
			padding-left: 20rpx;
			border-left: 3px solid #6852F0;
			font-size: 32rpx;
			color: #373737;
		}

		.content {
			margin-top: 20rpx;

			.item {
				display: flex;
				height: 70rpx;
				line-height: 70rpx;

				.name {
					width: 35%;
					font-size: 28rpx;
					color: #CECED3;
				}

				.detail {
					width: 65%;
					font-size: 28rpx;
					color: #373737;
				}
			}

			.text {
				height: auto;

				.detail {
					line-height: 52rpx;
				}

				.image {
					display: flex;

					.icon {
						width: 120rpx;
						height: 120rpx;
						border-radius: 10rpx;
						margin-right: 10rpx;
					}
				}
			}
		}

	}

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

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