<template>
	<view class="container">
		<view class="list-box">
			<view class="list-item" v-for="(item,index) in listData" :key="index">
				<view class="item-info">
					<view class="name">合同地址</view>
					<view class="value u-line-1">惠新西街口11单元302</view>
					<image class="path" src="/static/path.png" mode="" />
				</view>
				<view class="item-info">
					<view class="name">租约期限</view>
					<view class="value">2022.05.19 - 2022.08</view>
				</view>
				<view class="item-info">
					<view class="name">付款方式</view>
					<view class="value">月付</view>
				</view>
				<view class="item-info">
					<view class="name">付款方式</view>
					<view class="value">月付</view>
				</view>
				<view class="item-info">
					<view class="name">月租金</view>
					<view class="value">6001</view>
				</view>
				<view class="pay-info">
					<view class="subitem" v-for="(subitem,i) in item.paylist" :key="i">
							<view class="label">付款日期<view class="value">2022.09.20</view></view>
							<view class="label">付款金额<view class="value">房租6001</view></view>
					</view>
				</view>
				<view class="btn-box">
					<view class="btn pass" @click="showmodal=true">通过</view>
					<view class="btn refuse">驳回</view>
				</view>
			</view>
		</view>
		<u-modal title="确认操作" @confirm="confirm" show-cancel-button confirm-color="#FF6D25" confirm-text="通过" :mask-close-able="true" v-model="showmodal" :title-style="titleStyle">
			<view class="slot-content">
				<view class="my-tip">您确认通过该审核吗？</view>
				<!-- <rich-text :nodes="content"></rich-text> -->
			</view>
		</u-modal>
		<u-toast ref="uToast" />
	</view>
</template>
<script>
	export default {
		data() {
			return {
				showmodal: false,
				titleStyle: {
					fontSize: '32rpx',
					fontFamily: 'PingFangSC-Semibold, PingFang SC',
					fontWeight: 600,
					color: '#333333'
				},
				listData: [{
					address:'惠中北里 106号楼 24层',
					name:'张晨张',
					person: '张26D',
					time: '2021-12-22 18:00:40',
					account: '刘604A',
					oldprice: 145,
					newprice: 100,
					paylist: [{},{},{},{},{},{},{},{}],
				},{
					address:'惠中北里惠中北里惠中北里 106号楼 24层',
					name:'张晨张张晨张张晨张张晨张张晨张张晨张',
					person: '张26D',
					time: '2021-12-22 18:00:40',
					account: '刘604A',
					oldprice: 145,
					newprice: 100,
					paylist: [{},{}],
				}]
			};
		},
		onLoad(options) {
		},
		onShow() {
		
		},
		methods: {
			showToast() {
				this.$refs.uToast.show({
					title: '审核成功',
					icon: false,
					type:'success'
					// url: '/pages/user/index'
				})
			},
			confirm(){
				this.showToast()
			}
		},
	};
</script>

<style lang="scss" scoped>
.container{
	width: 750rpx;
	min-height: 100vh;
	background: #F8F8F8;
	padding-top: 20rpx;
	.list-box{
		.list-item{
			padding: 30rpx;
			background: #fff;
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #333333;
			margin-bottom: 20rpx;
			.item-info{
				display: flex;
				align-items: center;
				margin-bottom: 24rpx;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				line-height: 40rpx;
				.name{
					flex: 0 0 112rpx;
					color: #666666;
					margin-right: 58rpx;
				}
				.value{
					flex: 1;
					color: #333;
				}
				.path{
					flex: 0 0 14rpx;
					width: 14rpx;
					height: 30rpx;
					margin-left: 10rpx;
				}
			
			}
			.pay-info{
				width: 690rpx;
				background: rgba(247, 248, 252, .7);
				border-radius: 8rpx;
				padding: 30rpx;
				margin-bottom: 24rpx;
				.subitem{
					width: 100%;
					height: 40rpx;
					display: flex;
					justify-content: space-between;
					margin-bottom: 20rpx;
					&:last-child{
						margin-bottom: 0;
					}
					.label{
						height: 40rpx;
						font-size: 28rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #666666;
						line-height: 40rpx;
						display: flex;
						align-items: center;
						.value{
							color: #333333;
							margin-left: 10rpx;
						}
					}
				}
				
			}
			.btn-box{
				display: flex;
				justify-content: flex-end;
				.btn{
					width: 128rpx;
					height: 54rpx;
					line-height: 54rpx;
					text-align: center;
					font-size: 26rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					border-radius: 8rpx;
				}
				.pass{
					background: #FF6D25;
					color: #fff;
					border: 1px solid #FF6D25;
					margin-right: 30rpx;
				}
				.refuse{
					background: #FFFFFF;
					border: 1px solid #FF6D25;
					color: #FF6D25;
				}
			}
			
		}
	}
	.my-tip{
		text-align: center;
		margin: 40rpx 0;
		color: #666
	}
}
</style>
