<template>
	<view>
		<view class="section">
			<view class="box">
				<view class="title">
					<view class="icon"></view>
					<view class="name">安全监测</view>
					<view class="right" @click="go_safety()"></view>
				</view>
				<view class="content">
					<view class="list_title">
						<view class="title_item">
							<view class="name">正常</view>
							<view class="icon icon_1">
								10个
							</view>
						</view>
						<view class="title_item">
							<view class="name">报警</view>
							<view class="icon icon_2">
								3个
							</view>
						</view>
						<view class="title_item">
							<view class="name">标教</view>
							<view class="icon icon_3">
								0个
							</view>
						</view>
						<view class="title_item">
							<view class="name">故障</view>
							<view class="icon icon_4">
								0个
							</view>
						</view>
					</view>
				
					<view class="list_item">
						<view class="item item_title">
							<view class="item_inner_1">测点编号</view>
							<view class="item_inner_2">安装地点</view>
							<view class="item_inner_3">数值/状态</view>
						</view>
						<view class="item">
							<view class="item_inner_1">1</view>
							<view class="item_inner_2">220704上隅角激光甲烷</view>
							<view class="item_inner_3">0ppm</view>
						</view>
						<view class="item">
							<view class="item_inner_1">2</view>
							<view class="item_inner_2">220704工作面一氧化碳</view>
							<view class="item_inner_3">1ppm</view>
						</view>
						<view class="item">
							<view class="item_inner_1">3</view>
							<view class="item_inner_2">220704上隅角氧气</view>
							<view class="item_inner_3">0ppm</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods:{
			go_safety(){
				uni.navigateTo({
					url:"../../pages/p-i-safety-monitoring/p-i-safety-monitoring"
				})
			}
		}
	}
</script>

<style lang="scss">
	.section{
		margin-top: 10rpx;
		
		.box{
			background: #FFFFFF;
			box-shadow: 0px 3rpx 30rpx 0px rgba(59, 74, 116, 0.14);
			border-radius: 21rpx;
	
			.title{
				position: relative;
				width: 720rpx;
				
				display: flex;
				justify-content: center;
				align-items: center;
				border-bottom: 2rpx solid #f3f3f3;
				.icon{
					width: 42rpx;
					height: 42rpx;
					
					background-image: url(icon/icon.png);
					background-size: cover;
					background-repeat: no-repeat;
				}
				.name{
					margin-left: 10rpx;
					font-size: 32rpx;
					font-family: PingFangSC-Medium, PingFang SC;
					font-weight: 500;
					color: #232627;
					line-height: 100rpx;
				}
				.right{
					position: absolute;
					right: 20rpx;
					
					width: 42rpx;
					height: 42rpx;
					
					background-image: url(icon/right.png);
					background-size: cover;
					background-repeat: no-repeat;
				}
			}
			.content{
				.list_title{
					margin-top: 36rpx;
					padding-bottom: 60rpx;
					display: flex;
					justify-content: space-around;
					.title_item{
						width: 125rpx;
						text-align: center;
						.name{
							font-size: 29rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #232627;
							line-height: 42rpx;

						}
						.icon{
							margin-top: 18rpx;
							width: 125rpx;
							height: 125rpx;
							line-height: 125rpx;
							border-radius: 50%;
							
							font-size: 31rpx;
							font-family: PingFangSC-Regular, PingFang SC;
							font-weight: 400;
							color: #FFFFFF;

						}
						.icon_1{
							background: #27AE60;
						}
						.icon_2{
							background: #FC2449;
						}
						.icon_3{
							background: #3498DB;
						}
						.icon_4{
							background: #2C3E50;
						}
					}
				}
			
				.list_item{
					.item{
						box-sizing: border-box;
						padding: 25rpx 19rpx;
						
						display: flex;
						
						font-size: 27rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #232627;
						line-height: 42rpx;
						text-align: center;
						.item_inner_1{
							width: 125rpx;
						}
						.item_inner_2{
							margin-left: 14rpx;
							width: 404rpx;
						}
						.item_inner_3{
							margin-left: 14rpx;
							width: 125rpx;
							
							color: #97A3B4;
						}
					}
					.item_title{
						background: #F3F6FA;
						
						box-sizing: border-box;
						padding: 25rpx 19rpx;
						.item_inner_3{
							color: #232627;
						}
					}
							
				}
			}
		}
	}
</style>
