<template>
	<!-- 教研室详情 -->
	<view class="activityDetail">
		<statusBar :item="navbar"></statusBar>
		
		<!-- 顶部 -->
		<view class="backPic">
			<image src="../../static/yym/Rectangle 40.png" mode="aspectFill"></image>
			<view class="card">
				<view class="cardTop">
					2023年全国国际银行分行“防范灾害风险护航高质量发展”防灾减灾志愿宣传活动
				</view>
				<view class="col">
					活动日期：<text>5.12~5.13</text>
				</view>
				<view class="col">
					招募人数：<text>23/50</text>
				</view>
				<view class="col">
					活动地址：<text>龙岗将军帽路一号深圳技师学院</text>
					<uni-icons type="location" color="#0056a8" size="20" style="position: absolute;right: 10px;top: 0;"></uni-icons>
				</view>
			</view>
		</view>
		
		<!-- 创建者用户名 -->
		<view style="padding: 0 30rpx;margin-bottom: 20px;">
			<view class="creator">
				<image src="../../static/mine/Avatar.png" mode="aspectFill"></image>
				<view class="creName">
					创建者用户名
				</view>
			</view>
		</view>
		
		<!-- 活动详情 -->
		<view class="" style="padding: 0 30rpx;">
			<detailBlock :item='judge'></detailBlock>
		</view>
		

		
		<!-- 当前成员 -->
		<view style="padding: 0 30rpx;">
			<view class="member">
				<view class="memberTop">
					<view class="" style="font-weight: bold;">报名情况(已报名23人)</view>
					<view class="" style="color: #666666;font-size: 14px;display: flex;align-items: center;" @click="perList">
						查看更多
						<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="gotoAdd">立即报名</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navbar:{
					title:'活动详情',
					btn:1
				},
				judge:{
					isShow:1
				}
			};
		},
		methods:{
			perList(){
				uni.navigateTo({
					url:'/pages/dy/dy'
				})
			},
			gotoAdd(){
				uni.navigateTo({
					url:'/pages/hd/hd'
				})
			}
		}
	}
</script>

<style lang="scss">
	.activityDetail{
		padding-bottom: 80px;
		.backPic{
			width: 750rpx;
			position: relative;
			image{
				width: 100%;
				display: block;
			}
			.card{
				position: absolute;
				width: 650rpx;
				// height: 150px;
				bottom: -20px;
				left: 50%;
				padding: 30rpx 20rpx;
				border-radius: 10px;
				background-color: #ffffff;
				transform: translate(-50%,0);
				.cardTop{
					// display: flex;
					// justify-content: center;
					// padding-bottom: 5px;
					margin-bottom: 5px;
					// font-size: 18px;
					font-weight: bold;
					display: -webkit-box;
					word-break: break-all;
					text-overflow: ellipsis;
					overflow: hidden;
					-webkit-box-orient: vertical;
					-webkit-line-clamp:2;/*设置 需要显示的行数*/
					.title{
						font-weight: bold;
					}
				}
				.col{
					position: relative;
					margin-bottom: 10rpx;
					color: #999999;
					padding-right: 40px;
					font-size: 14px;
					width: 100%;
					display: -webkit-box;
					word-break: break-all;
					text-overflow: ellipsis;
					overflow: hidden;
					-webkit-box-orient: vertical;
					-webkit-line-clamp:2;/*设置 需要显示的行数*/
					text{
						color: #333333;
					}
				}
				.tag{
					display: flex;
				}
			}
			// background-image: url(../../static/resource/jqr.png);
		}
	
		
		.creator{
			display: flex;
			padding: 10px 30px;
			background-color: #ffffff;
			align-items: center;
			margin-top: 30px;
			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>