<template>
	<view>
		<view class="tab_box">
			<view class="tab_list">
				<view class="item" :class="active===1?'active':''" @click="clickTab(1)">
					<view class="icon">
						<image src="./icon/icon_1.png" mode=""></image>
					</view>
					<view class="title">闭环管理</view>
					<view class="tips">项目进度管理</view>
				</view>
				<view class="item" :class="active===2?'active':''" @click="clickTab(2)">
					<view class="icon">
						<image src="./icon/icon_2.png" mode=""></image>
					</view>
					<view class="title">记录合集</view>
					<view class="tips">全部消息一览</view>
				</view>
				<view class="item" :class="active===3?'active':''" @click="clickTab(3)">
					<view class="icon">
						<image src="./icon/icon_3.png" mode=""></image>
					</view>
					<view class="title">我的记录</view>
					<view class="tips">记录日志一览</view>
				</view>
			</view>
		</view>
		
		<view class="line"></view>
		
		<view v-if="active === 1" class="list1">
			<view class="list">
				
				<view class="item">
					<view class="item_l">
						<view class="day">06</view>
						<view class="month">05月</view>
						<view class="name">杨海军</view>
					</view>
					<view class="item_r">
						<view class="inner1">名称：车辆申请记录</view>
						<view class="inner2">
							<text class="inner_title">申请用车科室：</text>
							<text class="inner_content">信息化站</text>
						</view>
						<view class="inner3">
							<text class="inner_title">申请车辆：</text>
							<text class="inner_content">福特-宁AJT326</text>
						</view>
						<view class="icon"></view>
					</view>
				</view>
		
				<view class="item">
					<view class="item_l" style="background-color: #E74C3C;">
						<view class="day">06</view>
						<view class="month">05月</view>
						<view class="name">杨海军</view>
					</view>
					<view class="item_r">
						<view class="inner1">名称：车辆申请记录</view>
						<view class="inner2">
							<text class="inner_title">申请用车科室：</text>
							<text class="inner_content">信息化站</text>
						</view>
						<view class="inner3">
							<text class="inner_title">申请车辆：</text>
							<text class="inner_content">福特-宁AJT326</text>
						</view>
						<view class="icon"></view>
					</view>
				</view>
				
				<view class="item">
					<view class="item_l">
						<view class="day">06</view>
						<view class="month">05月</view>
						<view class="name">杨海军</view>
					</view>
					<view class="item_r">
						<view class="inner1">名称：车辆申请记录</view>
						<view class="inner2">
							<text class="inner_title">申请用车科室：</text>
							<text class="inner_content">信息化站</text>
						</view>
						<view class="inner3">
							<text class="inner_title">申请车辆：</text>
							<text class="inner_content">福特-宁AJT326</text>
						</view>
						<view class="icon"></view>
					</view>
				</view>
							
			</view>
		</view>
		<view v-if="active === 2" class="list2">
			记录合集
			<view class="list_box">
				<view class="list_title">
					
				</view>
				<view class="list_inner"></view>
			</view>
			<view class="list_box"></view>
		</view>
		<view v-if="active === 3" class="list3">我的记录</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				active:1,
				
			};
		},
		methods:{
			clickTab(active){
				this.active = active
			}
		}
	}
</script>

<style lang="scss">
	.tab_box{
		height: 219rpx;
		.tab_list{
			padding-top: 33rpx;
			display: flex;
			justify-content: space-between;
			.item{
				width: 230rpx;
				text-align: center;
				.icon{
					image{
						transition: 1s;
						width: 70rpx;
						height: 70rpx;
					}
				}
				.title{
					transition: 1s;
					height: 34rpx;
					font-size: 25rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #BDC3C7;
					line-height: 34rpx;

				}
				.tips{
					transition: 1s;
					height: 29rpx;
					font-size: 21rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #A2A4A6;
					line-height: 29rpx;
				}
			}
			.active{
				.icon{
					image{
						width: 90rpx;
						height: 90rpx;
					}
				}
				.title{
					height: 42rpx;
					font-size: 29rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #2C3E50;
					line-height: 42rpx;

				}
				.tips{
					height: 34rpx;
					font-size: 25rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #A2A4A6;
					line-height: 34rpx;

				}
			}
		}
	}
	
	.line{
		width: 100%;
		height: 22rpx;
		background-color: #f0f0f0;
	}
	
	.list1{
		background-color: #f6f6f6;
		box-sizing: border-box;
		padding-top: 19rpx;
		padding-left: 24rpx;
		padding-right: 24rpx;
		.list{
			.item{
				margin-bottom: 21rpx;
				background-color: #fff;
				display: flex;
				height: 175rpx;
				border-radius: 10rpx;
				
				.item_l{
					box-sizing: border-box;
					padding-top: 10rpx;
					padding-left: 22rpx;
					padding-right: 12rpx;
					width: 171rpx;
					height: 175rpx;
					background: #3498DB;
					border-radius: 10rpx;

					.day{
						height: 68rpx;
						font-size: 48rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #FFFFFF;
						line-height: 68rpx;

					}
					.month{
						text-align: right;
						height: 44rpx;
						font-size: 31rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #FFFFFF;
						line-height: 44rpx;

					}
					.name{
						text-align: center;
						height: 47rpx;
						font-size: 33rpx;
						font-family: PingFangSC-Medium, PingFang SC;
						font-weight: 500;
						color: #FFFFFF;
						line-height: 47rpx;

					}
				}
				.item_r{
					position: relative;
					width: 531rpx;
					box-sizing: border-box;
					padding-top: 14rpx;
					margin-left: 12rpx;
					.inner1{
						margin-bottom: 12rpx;
						height: 42rpx;
						font-size: 29rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #2C3E50;
						line-height: 42rpx;

					}
					.inner2{
						margin-bottom: 12rpx;
						height: 42rpx;
						font-size: 29rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #2C3E50;
						line-height: 42rpx;
						
						.inner_title{
							
						}
						.inner_content{
							color: #E74C3C;
						}
					}
					.inner3{
						height: 42rpx;
						font-size: 29rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #2C3E50;
						line-height: 42rpx;
						.inner_title{
							
						}
						.inner_content{
							color: #E74C3C;
						}
					}
					
					.icon{
						position: absolute;
						top: 0;
						right: 24rpx;
						width: 40rpx;
						height: 51rpx;
						background-image: url(icon/list1.png);
						background-size: cover;
						background-repeat: no-repeat;
					}
				}
			}
		}
	}
</style>
