<template>
	<view class="container">
		<view class="page">
			<view class="maintenance">
				<view class="information">
					<view class="evaluation">
						<view class="rate">
							<view class="name">评价:</view><uni-rate v-model="rateValue" @change="onChange" :size="20" />
						</view>
						<view class="textarea"><uni-easyinput type="textarea" v-model="evaluation"
								placeholder="请输入您的评价" /></uni-easyinput></view>
					</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">提交</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				rateValue: 3,
				evaluation: ''
			}
		},
		methods: {
			onChange(e) {
				console.log('rate发生改变:' + JSON.stringify(e))
				// console.log(this.rateValue);
			}
		},
		onLoad() {

		},
		onShow() {

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

	.maintenance {
		.evaluation {
			.rate {
				display: flex;
				align-items: center;
				margin-bottom: 30rpx;

				.name {
					font-size: 28rpx;
					color: #373737;
				}
			}

			.textarea {
				background-color: #F8F8F8;
			}
		}

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

			.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;
	}
</style>