<template>
	<view class="container">
	
		<view class="list-box">
			<view class="list-item" @click="selectItem(item)" v-for="(item,index) in listData" :key="index">
				<view class="item-info">
					<view class="name u-line-1">{{item.name}}</view>
					<view class="right">{{item.time}}</view>
				</view>
				<view class="item-info">
					<view class="address u-line-1">{{item.address}}</view>
					<view class="right">台账号：{{item.account}}</view>
				</view>
				<view class="item-info">
					<view class="left ">原价：<view class="oldprice">{{item.oldprice}}</view></view>
					<view class="right">改价：<view class="newprice">{{item.newprice}}</view></view>
				</view>
				<view class="btn-box">
					<view class="btn pass">通过</view>
					<view class="btn refuse">拒绝</view>
				</view>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				keyword: '',
				listData: [{
					address:'惠中北里 106号楼 24层',
					name:'张晨张',
					person: '张26D',
					time: '2021-12-22 18:00:40',
					account: '刘604A',
					oldprice: 145,
					newprice: 100
				},{
					address:'惠中北里惠中北里惠中北里 106号楼 24层',
					name:'张晨张张晨张张晨张张晨张张晨张张晨张',
					person: '张26D',
					time: '2021-12-22 18:00:40',
					account: '刘604A',
					oldprice: 145,
					newprice: 100
				}]
			};
		},
		onLoad(options) {
		},
		onShow() {
		
		},
		methods: {
		
		},
	};
</script>

<style lang="scss" scoped>
.container{
	width: 750rpx;
	min-height: 100vh;
	background: #F8F8F8;
	padding-top: 20rpx;
	.list-box{
		.list-item{
			padding: 30rpx;
			height: 306rpx;
			background: #fff;
			font-size: 28rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #333333;
			margin-bottom: 20rpx;
			.item-info{
				display: flex;
				margin-bottom: 24rpx;
				justify-content: space-between;
				align-items: center;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
				line-height: 40rpx;
				.name{
					flex: 1;
				}
				.address{
				}
				.left{
					flex: 1;
					display: flex;
					align-items: center;
					.oldprice{
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #333333;
					}
				}
				.right{
					flex: 0 0 278rpx;
					margin-left: 30rpx;
					display: flex;
					align-items: center;
					.newprice{
						font-family: PingFangSC-Semibold, PingFang SC;
						font-weight: 600;
						color: #FF6D25;
					}
				}
			}
			.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;
				}
			}
			
		}
	}
}
</style>
