<template>
	<view class="container">
		<view class="page">
			<view class="nav-bar">
				<image src="../../static/images/icon_press01.png" class="icon"></image>
				<view class="nav-title">社区公告</view>
			</view>
			<view class="news">
				<view class="tab">
					<view class="item active">全部<image src="../../static/images/icon_press02.png" class="icon"></image>
					</view>
					<view class="item">未读</view>
					<view class="item">已读</view>
				</view>
				<view class="list">
					<view class="item">
						<image src="../../static/images/img02.png" class="icon"></image>
						<view class="con">
							<view class="name">开展民族团结进步创建进社区 活动<view class="tag">非常紧急</view>
							</view>
							<view class="time">物业服务中心 2020/09/08</view>
						</view>
					</view>
					<view class="item">
						<image src="../../static/images/img03.png" class="icon"></image>
						<view class="con">
							<view class="name">开展民族团结进步创建进社区 活动</view>
							<view class="time">物业服务中心 2020/09/08</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

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

			}
		},
		methods: {

		},
		onLoad() {

		},
		onShow() {

		}
	}
</script>

<style lang="scss" scoped>
	.page {
		padding: 30rpx 0 0;
		background-color: #ffffff;
	}

	.nav-bar {
		padding: 0 30rpx;
		width: 100%;
		height: 44px;
		line-height: 44px;
		margin-top: 10rpx;
		display: flex;
		align-items: center;

		.icon {
			width: 15rpx;
			height: 24rpx;
		}

		.nav-title {
			font-size: 36rpx;
			color: #373737;
			font-weight: 500;
			width: 100%;
			text-align: center;
			margin-right: 35px;
		}
	}

	.news {
		background-color: #ffffff;
		border-radius: 16rpx;

		.tab {
			padding: 30rpx 100rpx;
			display: flex;
			justify-content: space-between;

			.item {
				font-size: 30rpx;
				color: #9D9CA6;
				position: relative;
			}

			.active {
				color: #373737;

				.icon {
					width: 40rpx;
					height: 8rpx;
					position: absolute;
					bottom: -10px;
					left: 5px;
				}
			}

		}

		.list {
			background-color: #F8F6F9;
			padding: 30rpx;

			.item {
				background-color: #ffffff;
				border-radius: 30rpx;
				display: flex;
				justify-content: space-between;
				padding: 30rpx;
				margin-bottom: 30rpx;

				.icon {
					width: 280rpx;
					height: 165rpx;
					border-radius: 6rpx;
				}

				.con {
					margin-left: 30rpx;

					.name {
						font-size: 30rpx;
						color: #373737;

						.tag {
							font-size: 22rpx;
							color: #F42E2E;
							border: 1px solid #F42E2E;
							padding: 4rpx 10rpx;
							border-radius: 30rpx;
							display: inline-block;
							margin-left: 20rpx;
						}
					}

					.time {
						font-size: 24rpx;
						color: #B6B6BA;
						height: 30rpx;
						line-height: 30rpx;
						margin-top: 30rpx;
					}

				}
			}
		}


	}
</style>