<template>
			<view>
	<view class="wrapper">
		<view>
		    <view>
		        <text>投诉号:</text>
		        <text class="benginTwo">{{complaint.id}}</text>
		    </view>
		    <view>
		        <text>ID:</text>
		        <text class="benginTwo">{{complaint.fromUid}}</text>
		    </view>
		</view>
		<!-- 处理人ID和处理人昵称 -->
		<view>
		    <view>
		        <text>处理人ID:</text>
		        <text>{{complaint.processorUid}}</text>
		    </view>
		</view>
		<!-- 建议标题和日期 -->
		<view class="suggestTitleWrapper">
		    <text class="suggestTime">标题</text>
		    <text class="suggestTtile">{{complaint.complaintTitle}}</text>
		</view>
		<!-- 建议内容 -->
		<view class="suggestContentWrapper">
		    <text>投诉内容：</text>
		    <text>{{complaint.complaintDetail}}</text>
		</view>
		<!-- 处理结果 -->
		<view class="handleResult">
		    <text>处理结果：</text>
		    <text>{{complaint.result}}</text>
		</view>
		<!-- 日期 -->
		<view class="handleResult">
		    <text>生成日期：</text>
		    <text class="handleTime">{{complaint.fistDatetime}}</text>
		</view>
		<view class="handleResult">
		    <text>结案日期：</text>
		    <text class="handleTime">{{complaint.closetime}}</text>
		</view>

	</view>
	
	<!-- 处理状态 -->
	<view class="handleStatus">
	    <text>{{complaint.status}}</text>
	</view>
	</view>	
</template>

<script>
	export default {
		data() {
			return {
				complaint: {}
			}
		},
		onLoad(opt){
			this.complaint = JSON.parse(decodeURIComponent(opt.item));
			if(this.complaint.processorUid==null){
				this.complaint.processorUid = " ";
			}
			if(this.complaint.name==null){
				this.complaint.name = " ";
			}
			if(this.complaint.result==null){
				this.complaint.result = " ";
			}
			if(this.complaint.closetime==null){
				this.complaint.closetime = " ";
			}
		}
	}
</script>

<!-- 设置页面背景 -->
<style lang="scss">
	page{
		height: 100%;
		// background-color: #FFF;
		//background-color: #3ED598;
	}
</style>

<style lang="scss" scoped>
/* 设置背景 */
// page{
//     background-color: #FFF2CC;
// 	height: 100%;
// }

.wrapper {
	padding: 20rpx;
	margin: 30rpx;
	border-radius: 30rpx;
	background-color: #FFF;
	font-size: 30rpx;
	height: 90%;
}

.benginTwo {
	margin-left: 10rpx;
}

/* 建议标题和时间 */
.suggestTitleWrapper{
    margin-top: 50rpx;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* 单独设置标题 */
.suggestTtile{
    font-weight: bold;
}
/* 单独设置建议时间 */
.suggestTime{
    font-size: 26rpx;
    color: #A6A6A6;
}

/* 建议内容 */
.suggestContentWrapper{
    margin-top: 40rpx;
    display: flex;
    flex-direction: column;
   // height: 300rpx;
}
/* 处理结果 */
.handleResult{
    margin-top: 10rpx;
}
/* 处理时间 */
.handleTime{
    font-weight: bold;
}
/* 处理状态 */
.handleStatus{
    margin: 60rpx 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: bold;
    color: red;
		font-size: 30rpx;
}
</style>
