<template>
	<view class="container">
		<view class="list-item" v-for="(item,index) in listData" :key="index">
			<view class="top">
				<view class="top-left">
					<image class="icon" src="/static/kehu/person_gray.png" mode="" />{{item.name}}
				</view>
				<view class="time">{{item.time}}</view>
			</view>
			<view class="bot">{{item.address}}</view>
			<view class="status-box">
				<view class="left">由 {{item.person}} 提交申请</view>
				<view class="btn success-btn" v-if="item.status==1">审核通过</view>
				<view class="btn fail-btn" v-else-if="item.status==0">未通过</view>
				<view class="btn dealing-btn" v-else>处理中</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				listData: [{
					name:'张晨',
					status: 0,address:'惠中北里 106号楼 24层',person:'marry',time:'2022-10-26 10:20:00'
				},{name:'张晨',
					status: 0,address:'惠中北里 106号楼 24层',person:'marry',time:'2022-10-26 10:20:00'},
					{name:'张晨',
					status: 0,address:'惠中北里 106号楼 24层',person:'marry',time:'2022-10-26 10:20:00'},
					{name:'张晨',
					status: 0,address:'惠中北里 106号楼 24层',person:'marry',time:'2022-10-26 10:20:00'}]
			};
		},
		onLoad(options) {
		},
		onShow() {
		
		},
		methods: {},
	};
</script>

<style lang="scss" scoped>
.container{
	width: 750rpx;
	min-height: 100vh;
	background: #F8F8F8;
	padding-top: 20rpx;
	.list-item{
		background: #fff;
		margin-bottom: 20rpx;
		padding: 30rpx 30rpx 0;
		font-family: PingFangSC-Regular, PingFang SC;
		.top{
			display: flex;
			justify-content: space-between;
			align-items: center;
			.top-left{
				display: flex;
				align-items: center;
				font-size: 30rpx;
				font-weight: 400;
				color: #333333;
				.icon{
					width: 28rpx;
					height: 30rpx;
					margin-right: 12rpx;
				}
			}
			.time{
				height: 42rpx;
				font-size: 30rpx;
				font-weight: 400;
				color: #666666;
				line-height: 42rpx;
			}
		}
		.bot{
			height: 42rpx;
			font-size: 30rpx;
			font-weight: 400;
			color: #333333;
			line-height: 42rpx;
			margin-top: 20rpx;
		}
		.status-box{
			margin-top: 30rpx;
			border-top: 1px solid #e0e0e0;
			height: 96rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left{
				height: 42rpx;
				font-size: 30rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				line-height: 42rpx;
			}
			.btn{
				width: 144rpx;
				height: 56rpx;
				border-radius: 8rpx;
				text-align: center;
				line-height: 56rpx;
				font-size: 26rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
			}
			.success-btn{
				
				background: rgba(7,183,157,0.04);
				
				border: 1px solid #07B79D;
				
				color: #07B79D;	
			}
			.fail-btn{
				background: rgba(231,72,60,0.04);
				border: 1px solid #E7483C;
				color: #E7483C;
			}
			.dealing-btn{
				background: rgba(254,160,23,0.04);
				border: 1px solid #FEA017;
				color: #FEA017;
			}
		}
	}
}
</style>
