<template>
	<!-- 教研室详情 -->
	<view class="teachingDetail">
		<statusBar :item="navbar"></statusBar>
		
		<!-- 顶部 -->
		<view class="backPic">
			<image src="../../static/yym/Rectangle 40.png" mode="aspectFill"></image>
			<view class="card">
				<view class="cardTop">
					<view class="title">xxx虚拟教室</view>
					<view class="">
						<uni-icons type="star" size="30" color="#ffffff" style="margin-right: 20rpx;"></uni-icons>
						<uni-icons type="folder-add" size="30" color="#ffffff"></uni-icons>
					</view>
				</view>
				<view class="col">
					成立日期：2023.5.12
				</view>
				<view class="col">
					人数：23
				</view>
				<view class="tag col">
					<view class="">教研标签：</view>
					<view class="" style="display: flex;">
						<view class="" style="font-size: 14px;color: #00b2b6; border: 1px #00b2b6 solid;padding: 2rpx 10rpx;border-radius: 5rpx;">
							类型标签
						</view>
					</view>
				</view>
			</view>
		</view>
		
		<!-- 两个大资料文件 -->
		<view class="teaData">
			<view class="cla">
				<view class="tit1">课程资料</view>
				<view class="tit2">教研室专属课程</view>
			</view>
			<view class="cla2">
				<view class="tit1 titColor">资源文件</view>
				<view class="tit2 titColor">教研室专属资源</view>
			</view>
		</view>
		
		<!-- 教研室详情 -->
		<view class="" style="padding: 0 30rpx;">
			<detailBlock></detailBlock>
		</view>
		
		<!-- 创建者用户名 -->
		<view style="padding: 0 30rpx;">
			<view class="creator">
				<image src="../../static/mine/Avatar.png" mode="aspectFill"></image>
				<view class="creName">
					创建者用户名
				</view>
			</view>
		</view>
		
		<!-- 当前成员 -->
		<view style="padding: 0 30rpx;">
			<view class="member">
				<view class="memberTop">
					<view class="" style="font-weight: bold;">当前成员</view>
					<view class="" style="color: #666666;font-size: 14px;display: flex;align-items: center;" @click="gotoMorePer">
						查看更多
						<uni-icons type="right"></uni-icons>
					</view>
				</view>
				
				<view class="pers">
					<view class="per" v-for="i in 6">
						<image src="../../static/mine/Avatar.png" mode="aspectFill"></image>
						<view class="perName">
							袁一鸣
						</view>
					</view>
				</view>
			</view>
		</view>
		
		<!-- 申请加入 -->
		<view class="btnBlock">
			<button class="btn" @click="applyAdd">申请加入</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navbar:{
					title:'教研室详情',
					btn:1
				}
			};
		},
		methods:{
			gotoMorePer(){
				uni.navigateTo({
					url:'/pages/dy/dy'
				})
			},
			applyAdd(){
				uni.navigateTo({
					url:'/pages/jys/jys'
				})
			}
		}
	}
</script>

<style lang="scss">
	.teachingDetail{
		padding-bottom: 80px;
		.backPic{
			width: 750rpx;
			position: relative;
			image{
				width: 100%;
				display: block;
			}
			.card{
				position: absolute;
				width: 650rpx;
				height: 130px;
				bottom: 10px;
				left: 50%;
				// filter: blur(10px);
				// background-image: url('../../static/resource/jqr.png');
				// backdrop-filter: blur(10px) opacity(0.3); /* 调整模糊程度 */
				padding: 30rpx 20rpx;
				// background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 100%);
				backdrop-filter: blur(2px);
				border-radius: 10px;
				transform: translate(-50%,0);
				border: 1rpx #667870 solid;
				color: #ffffff;
				.cardTop{
					display: flex;
					justify-content: space-between;
					.title{
						font-weight: bold;
						font-size: 20px;
					}
				}
				.col{
					margin-bottom: 10rpx;
					font-weight: 100;
				}
				.tag{
					display: flex;
				}
			}
			// background-image: url(../../static/resource/jqr.png);
		}
		
		.teaData{
			width: 750rpx;
			display: flex;
			padding:20px 30rpx;
			justify-content: space-between;
			// padding: 20px 0;
			.cla{
				width: 49%;
				background: linear-gradient(to bottom , #fcfcff 30%, #e8ecfd 100%);
				border-radius: 10px;
				padding: 20px 10px;
				color: #424f85;
				.tit1{
					font-size: 22px;
					margin-bottom: 10px;
					font-weight: bold;
				}
				.tit2{
					// font-size: 22px;
					margin-bottom: 5px;
				}
			}
			.cla2{
				width: 45%;
				background: linear-gradient(to bottom , #fcfcff 10%, #fef3ea 100%);
				border-radius: 10px;
				padding: 20px 10px;
				color: #855e42;
				.tit1{
					font-size: 22px;
					margin-bottom: 10px;
					font-weight: bold;
				}
				.tit2{
					// font-size: 22px;
					margin-bottom: 5px;
				}
			}
		}
		
		
		.creator{
			display: flex;
			padding: 10px 30px;
			background-color: #ffffff;
			align-items: center;
			margin-top: 20px;
			border-radius: 10px;
			image{
				width: 60px;
				height: 60px;
				border-radius: 50%;
				margin-right: 20rpx;
			}
			.creName{
				font-weight: bold;
			}
		}
		
		.member{
			background-color: #ffffff;
			margin-top: 20px;
			padding: 10px 10px;
			border: 10px;
			border-radius: 10px;
			.memberTop{
				display: flex;
				justify-content: space-between;
				margin-bottom: 10px;
			}
				
				.pers{
					display: flex;
					justify-content: space-around;
					align-items: center;
					.per{
						display: inline-block;
						image{
							width: 40px;
							height: 40px;
							border-radius: 50%;
						}
						.perName{
							font-size: 14px;
							text-align: center;
						}
					}
					
				}
				
		}
		
		.btnBlock{
			position: fixed;
			bottom: 0;
			width: 750rpx;
			background-color: #ffffff;
			// padding: 20px 0;
			padding: 2vh 0;
			.btn{
				width: 50%;
				margin: auto;
				background-color: #0056a8;
				color: #ffffff;
				font-size: 14px;
			}
		}
	}
</style>