<template>
	<view>
		<view class="list">
			<view class="item" v-for="item in 6">
				<view class="title">用车申请</view>
				<view class="box">
					<view class="left">
						<view class="line">申请人：申请人姓名</view>
						<view class="line">单号：XA-ymd_045</view>
						<view class="line">申请日期：2022-01-13 13:25:32</view>
					</view>
					<view class="right">
						<view class="btn" @click="go_detail('用车申请')">详情</view>
						<view class="btn" @click="go_approval('用车申请')">操作</view>
					</view>
				</view>
				<view class="tip">待处理</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			};
		},
		methods:{
			go_detail(title){
				uni.navigateTo({
					url:"./detail/detail?title="+title
				})
			},
			go_approval(title){
				uni.navigateTo({
					url:"./approval/approval?title="+title
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2FAF7;

		box-sizing: border-box;
		padding: 20rpx 25rpx;
	}

	.list {
		.item {
			position: relative;
			overflow: hidden;
			background-color: #FFFFFF;
			
			box-sizing: border-box;
			padding: 25rpx;

			border-radius: 15rpx;
			margin-bottom: 30rpx;
			
			.title{
				height: 70rpx;
				line-height: 70rpx;
				font-size: 36rpx;
				font-weight: 700;
			}
			.box{
				margin-top: 10rpx;
				display: flex;
				justify-content: space-between;
				.left {
					height: 140rpx;
					
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					.line{
						font-size: 28rpx;
						color: #7f7f7f;
					}
				}
				
				.right {
					height: 140rpx;
					display: flex;
					flex-direction: column;
					justify-content: space-between;
					
					.btn{
						font-size: 28rpx;
						background-color: #E1F7FF;
						color: #1e88e5;
						padding: 10rpx 30rpx;
						border-radius: 40rpx;
					}
				}
			}
			.tip{
				transform: rotate(45deg);
				
				background-color: #04A0E6;
				color: #FFFFFF;
				
				position: absolute;
				top: -10rpx;
				right: -50rpx;
				
				font-size: 24rpx;
				padding: 30rpx 40rpx 10rpx;
				
			}
		}
	}
</style>
