<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="list-box">
			<view class="list">
				
				<view class="item">
					<view class="item_l">
						<view class="day">12月</view>
						<view class="month">07</view>
						<view class="name">杨海军</view>
					</view>
					<view class="item_r">
						<view class="inner">名称：车辆申请记录</view>
						<view class="inner">
							<text class="inner_title">申请用车科室：</text>
							<text class="inner_content">信息化站</text>
						</view>
						<view class="inner">
							<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">12月</view>
						<view class="month">05</view>
						<view class="name">杨海军</view>
					</view>
					<view class="item_r">
						<view class="inner">名称：车辆申请记录</view>
						<view class="inner">
							<text class="inner_title">申请用车科室：</text>
							<text class="inner_content">信息化站</text>
						</view>
						<view class="inner">
							<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">11月</view>
						<view class="month">05</view>
						<view class="name">杨海军</view>
					</view>
					<view class="item_r">
						<view class="inner">名称：机房检查</view>
						<view class="inner">
							<text class="inner_title">负责人：</text>
							<text class="inner_content">马明君</text>
						</view>
						<view class="icon"></view>
					</view>
				</view>
							
			</view>
		</view>
		<view v-if="active === 2">
			<view class="section">
				<view class="section_title">公共：</view>
				<view class="section_content">
					<view class="list">
						<view class="item">
							<view class="left">宁东运营</view>
							<view class="right">
								<view class="name">宁东运营</view>
								<view class="inner">
									<view class="inner_left">
										<view class="inner_icon">
											<uni-icons type="star" color="#A2A4A6" size="16"></uni-icons>
										</view>
										<view class="inner_text">
											在“车辆管理”中“计划派车情况”.....
										</view>
									</view>
									<view class="inner_time">
										33分钟前
									</view>
								</view>
							</view>
							<view class="icon_badge">
								<uni-badge text="3" type="error" size="small"></uni-badge>
							</view>
						</view>
										
					</view>
				</view>
			</view>
			<view class="section">
				<view class="section_title" style="padding-top: 22rpx;">机关部室：</view>
				<view class="section_content">
					<view class="list">
						<view class="item">
							<view class="left">综采三队</view>
							<view class="right">
								<view class="name">综采三队</view>
								<view class="inner">
									<view class="inner_left">
										<view class="inner_icon">
											<uni-icons type="star" color="#A2A4A6" size="16"></uni-icons>
										</view>
										<view class="inner_text">
											测试内容
										</view>
									</view>
									<view class="inner_time">
										33分钟前
									</view>
								</view>
							</view>
							<view class="icon_badge">
								<uni-badge text="2" type="error" size="small"></uni-badge>
							</view>
						</view>
						<view class="item">
							<view class="left">综采二队</view>
							<view class="right">
								<view class="name">综采二队</view>
								<view class="inner">
									<view class="inner_left">
										<view class="inner_icon">
											<uni-icons type="star" color="#A2A4A6" size="16"></uni-icons>
										</view>
										<view class="inner_text">
											测试内容
										</view>
									</view>
									<view class="inner_time">
										昨天
									</view>
								</view>
							</view>
							<view class="icon_badge">
								<uni-badge text="2" type="error" size="small"></uni-badge>
							</view>
						</view>
											
					</view>
				</view>
			</view>
		</view>
		<view v-if="active === 3" class="list-box">
			<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="inner">名称：车辆审批记录</view>
						<view class="inner">
							<text class="inner_title">是否有车：</text>
							<text class="inner_content">有</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="inner">名称：管理日报</view>
						<view class="inner">
							<text class="inner_title">状态：</text>
							<text class="inner_content">正常</text>
						</view>
						<view class="icon"></view>
					</view>
				</view>
							
			</view>
		</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;
	}
	
	.list-box{
		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;
					
					display: flex;
					align-items: center;
					flex-wrap: wrap;
					.inner{
						width: 500rpx;
						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;
						}
					}
					.inner:last-child{
						margin-bottom: 0;
						background-color: red;
					}
					.icon{
						position: absolute;
						top: 0;
						right: 24rpx;
						width: 40rpx;
						height: 51rpx;
						background-image: url(icon/list1.png);
						background-size: cover;
						background-repeat: no-repeat;
					}
				}
			}
		}
	
		
	
	}
	.section{
		.section_title{
			
			background-color: #f0f0f0;
			padding-bottom: 22rpx;
			padding-left: 24rpx;
			padding-right: 24rpx;
			font-size: 29rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #A2A4A6;
		}
		.section_content{
			box-sizing: border-box;
			padding: 25rpx 0rpx;
			.list{
				padding-left: 25rpx;
				padding-right: 25rpx;
				.item{
					margin-bottom: 20rpx;
					width: 700rpx;
					border: 1rpx solid #f3f3f3;
					border-radius: 10rpx;
					
					box-sizing: border-box;
					padding: 15rpx 20rpx;
					
					box-shadow: rgba(62,57,107,0.3) 0px 6rpx 16rpx 0px;
					
					display: flex;
					align-items: center;
					
					position: relative;
					
					border-right: 14rpx solid #009fe8;
					.left{
						width: 100rpx;
						height: 100rpx;
						border-radius: 50%;
						background-color: #009fe8;
						
						font-size: 29rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #fff;
						
						box-sizing: border-box;
						padding: 20rpx;
						
						display: flex;
						justify-content: center;
						align-items: center;
					}
					.right{
						width: 520rpx;
						margin-left: 20rpx;
						.name{
							width: 500rpx;
							font-size: 29rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 600;
							color: #333;
						}
						.inner{
							margin-top: 5rpx;
							display: flex;
							align-items: center;
							justify-content: space-between;
							
							.inner_left{
								width: 400rpx;
								display: flex;
								align-items: center;
								.inner_icon{
									width: 40rpx;
									height: 40rpx;
									line-height: 40rpx;
								}
								.inner_text{
									margin-left: 4rpx;
									margin-top: 4rpx;
									height: 40rpx;
									line-height: 40rpx;
									font-size: 24rpx;
									font-family: PingFangSC-Regular, PingFang SC;
									color: #A2A4A6;
									
									overflow: hidden;
									text-overflow:ellipsis;
									white-space: nowrap;
								}
							}
							.inner_time{
								width: 120rpx;
								height: 40rpx;
								line-height: 40rpx;
								text-align: right;
								font-size: 18rpx;
								font-family: PingFangSC-Regular, PingFang SC;
								color: #A2A4A6;
							}
						}
					}
					.icon_badge{
						position: absolute;
						top: 20rpx;
						right: 20rpx;
						
						
					}
				}
			}
		}
	}
</style>
