<template>
	<view class="page">
		<view class="msglist">
			<view class="form-item">
				<view class="label">问题</view>
				<text>{{record.warrantyIssue || record.complaintType}}</text>
			</view>
			<view class="form-item">
				<view class="label">申请时间</view>
				<text>{{record.applicationTime}}</text>
			</view>
			<view class="form-item">
				<view class="label">类型</view>
				<text>{{record.deviceType || record.problemDescription}}</text>
			</view>
			<view class="form-item">
				<view class="label">备注信息</view>
				<text>{{record.memo || record.remark}}</text>
			</view>

		</view>
		

	</view>
</template>

<script>
	export default {
		data() {
			return {
				record:{},
			}
		},
		 onLoad(options) {
		    const item = JSON.parse(decodeURIComponent(options.item));
		    console.log('Received item:', item);
			this.record = item
		  },
		methods: {
			
		}
	}
</script>

<style scoped lang="scss">
	.page{
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
		height: 100%;
		padding: 0 24rpx;
	}
	/* 记录列表 */
	.record-list{
		margin-top: 20rpx;
		.good-item {
			width: 100%;
			display: flex;
			background-color: #fff;
			padding: 16rpx;
			border-radius: 14rpx;
			margin-bottom: 26rpx;
			.img {
				width: 200rpx;
				height: 200rpx;
			}
			.info {
				width: calc(100% - 220rpx);
				margin-left: 20rpx;
				.title {
					width: 100%;
					font-size: 28rpx;
					line-height: 44rpx;
					font-weight: 700;
					white-space: nowrap;
					overflow : hidden;
					text-overflow: ellipsis;
					margin-bottom: 20rpx;
				}
				.info-item {
					display: flex;
					line-height: 30rpx;
					font-size: 26rpx;
					color: #717981;
					text {
						white-space: nowrap;
						overflow : hidden;
						text-overflow: ellipsis;
						margin-left: 10rpx;
						span {
							font-size: 30rpx;
							color: #000;
							font-weight: 700;
						}
					}
					.u-tag {
						margin: 0 6rpx;
						border: unset;
					}
				}
			}
		}
	}
	.msglist{
		padding: 0 30rpx;
		background-color: #Fff;
		border-radius: 14rpx;
		margin-bottom: 20rpx;
		.form-item {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			line-height: 70rpx;
			border-bottom: #eee solid 1rpx;
			padding: 10rpx 0;
			&[label-top] {
				flex-direction: column;
				justify-content: flex-start;
				align-items: flex-start;
			}
			text {
				font-size: 24rpx;
				color: #3D3D3D;
			}
			.img {
				padding-bottom: 18rpx;
			}
			.deom-box {
				width: 100%;
				display: flex !important;
				margin: 0 -20rpx;
				background-color: #FFFFFF;
				border-radius: 9px;
				// margin-top: 9px;
				width: 100%;
				// .u-upload {
				// .u-add-wrap {
				// 	width: 304rpx !important;
				// 	height: 182rpx !important;
				// }
				// }
				// .u-upload {
				// 	height: 88px;
				// 	width: 155px;
				// 	background: url(/static/images/uploadID1.png);
				// 	background-size:134rpx 188rpx;
				// 	background-repeat:no-repeat;
				// }
				.img-deom {
					flex: 1;
					display: flex;
					flex-direction: column;
					align-items: center;
					padding: 20rpx;
					text {
						margin-top: 18rpx;
					}
				}
			}
		}
		:last-child {
			border-bottom: unset;
		}
	}
	.footbtn{
		position: fixed;
		bottom: 0;
		left: 0;
		z-index: 10;
		height:180rpx;
		width: 100%;
		border-radius: 26rpx 26rpx 0 0;
		background-color: #fff;
		.info-total {
			display: flex;
			flex-direction: row;
			align-items: center;
			justify-content: space-between;
			margin: 24rpx 50rpx;
			font-weight: 700;
			font-size: 24rpx;
			span {
				color: #0FBB59;
				font-size: 32rpx
			}
		}
		.footer-btn {
			display: flex;
			.u-btn {
				width: 40%;
			}
		}
	}
</style> 
