<template>
	<view>
		<statusBar :item="navBarData"></statusBar>

		<view class="collectBox">
			<view class="collect_length">
				<span>共3条收藏</span>
			</view>
			<view class="classBox" v-for="i in 3" :key="i">
				<view class="classTitle">
					<span>这里是教研室标题</span>
					<image src="../../static/mine/Collect_yellow.png" mode="aspectFill"></image>
				</view>
				<view class="classContent">
					<view class="contentLeft">
						<view class="constDate">
							<span class="manage">类型</span>
							<span>|</span>
							<span class="c_data">03月27日</span>
							<span class="c_time">21:07</span>
						</view>
						<view class="classIntro">
							<span>说明文字教研室简介，最多两行教研室简介教研室简介教研室简介教研室简介教研室简介</span>
						</view>
					</view>
					<view class="contentRight">
						<image src="../../static/mine/Collect_default.png" mode="aspectFill"></image>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navBarData: {
					title: '我的收藏',
					btn: 1
				},
			};
		}
	}
</script>

<style lang="scss">
	.collectBox {
		margin: 0 30rpx;

		.collect_length {
			width: 100%;
			height: 40rpx;
			font-size: 24rpx;
			font-weight: 400;
			color: #00000099;
			display: flex;
			align-items: center;
			margin-top: 6px;
			margin-bottom: 6px;
		}

		.classBox {
			width: 100%;
			height: 248rpx;
			background-color: #fff;
			border-radius: 20rpx;
			padding: 0 16rpx;
			margin-bottom: 8px;

			.classTitle {
				display: flex;
				padding-top: 15px;
				justify-content: space-between;
				margin-bottom: 6px;

				span {
					font-size: 32rpx;
					font-weight: 500;
				}

				image {
					width: 32rpx;
					height: 32rpx;
				}
			}

			.classContent {
				width: 100%;
				display: flex;
				justify-content: space-between;

				.contentLeft {
					display: flex;
					flex-direction: column;

					.constDate {
						display: flex;
						margin-bottom: 6px;

						span {
							color: #00000066;
							font-size: 24rpx;
							font-weight: 400;

							&.manage {
								border: 1px #00B2B6 solid;
								font-size: 10px;
								display: flex;
								white-space: nowrap;
								justify-content: center;
								align-items: center;
								padding: 1px 6px;
								border-radius: 3px;
								margin-right: 10rpx;
								color: #00B2B6;
								font-weight: 600;
							}

							&:nth-child(2) {
								color: #E7E7E7;
								;
								margin-left: 4px;
							}

							&:nth-child(3) {
								margin-left: 6px;
							}

							&:nth-child(4) {
								margin-left: 6px;
							}
						}
					}

					.classIntro {
						width: 93%;

						span {
							color: #00000099;
							font-size: 28rpx;
							display: -webkit-box;
							word-break: break-all;
							text-overflow: ellipsis;
							overflow: hidden;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 2;
							/*设置 需要显示的行数*/
							line-height: 23px;
						}
					}
				}

				.contentRight {
					image {
						width: 182rpx;
						height: 132rpx;
						border-radius: 8rpx;
					}
				}
			}

		}
	}
</style>