<template>
	<view class="main">
		<statusBar :item="navBarData"></statusBar>
		<uni-card :is-shadow="false">
			<view class="uni-body">
				<view class="card">
					<!-- <img src="../../static/jys/jys.png" alt="" class="image" /> -->
					<image class="image" src="../../static/jys/jys.png" mode=""></image>
					<view class="text">
						<!-- <p class="text_title">
							<span class="manage">类型</span>
							<span class="t1">这里是教研室名22222称</span>
						</p> -->
						<view class="text_title">
							<view class="manage">类型</view>
							<view class="t1">这里是活动名称</view>
						</view>
						<view class="">
							活动日期：5.12~5.13
						</view>
						<view class="">
							招募人数：50/30
						</view>
					</view>
				</view>
			</view>
		</uni-card>
		<uni-card :is-shadow="false">
			<view class="uni-body">
				<view class="card2">
					<view class="hdxx">
						<p class="hd">活动信息</p>
						<view class="textcolor">
							<p class="name">
								姓名:
								<span class="name1">李某某</span>
							</p>
							<p class="name">
								联系方式:
								<span class="lx1">172xxxxx5678</span>
							</p>
							<p class="name">
								单位:
								<span class="dw1">xx实验中学学校</span>
							</p>
						</view>
					</view>
				</view>
			</view>
		</uni-card>
		<view class="buttons">
			<view class="button-container">
				<button @click="button1Action" class="btn1">清空填写信息</button>
				<!-- <span class="button-spacing"></span> -->
				<!-- 添加间距 -->
				<button @click="button2Action" class="btn2">确认报名</button>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			navBarData: {
				title: '教研室报名',
				btn: 1
			}
		};
	},
	methods: {
		button1Action() {
			// 这里添加按钮1点击后触发的动作
			console.log('Button 1 clicked');
		},
		button2Action() {
			// 这里添加按钮2点击后触发的动作
			console.log('Button 2 clicked');
		}
	}
};
</script>

<style lang="scss" scoped>
.main {
	.card {
		display: flex;
		justify-content: flex-start;
		.image {
			flex-shrink: 0;
			width: 150rpx;
			height: 150rpx;
			border-radius: 4px;
		}

		.text {
			margin-left: 10px; // 增加一点空间
			display: flex;
			flex-direction: column;
			justify-content: space-between;
			// line-height: 35px; // 根据你的需求调整，使/文本与图片保持
			.text_title {
				display: flex;
				align-items: center;
				.manage {
					flex-shrink: 0;
					padding:0 10rpx;
					font-size: 25rpx;
					display: flex;
					align-items: center;
					min-width: 50rpx;
					color: #00b2b6;
					border: 1px solid #00b2b6;
					border-radius: 3px;
					margin-right: 10rpx;
				}
				.t1 {
					font-size: 35rpx;
					color: black;
					width: 350rpx;
					font-weight: 550;
					overflow:hidden;
					text-overflow:ellipsis;
					white-space:nowrap;
				}
			}

		}
	}
	.hdxx {
		.hd {
			color: black;
			font-size: 18px;
			font-weight: 400px;
			line-height: 42px;
		}
		.textcolor {
			color: #999999;
			line-height: 42px;
			.name {
				display: flex;
				justify-content: space-between;
			}
		}
	}
	.buttons {
		background-color: white;
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		display: flex;
		justify-content: space-around;
		box-sizing: border-box;
		padding: 30rpx 0;
		padding-bottom: 50rpx;
		font-size: 30rpx;
		.button-container {
			width: 100%;
			display: flex;
			justify-content: space-around;
			.btn1{
				width: 45%;
				border: 1px solid #666666;
				border-radius: 50px;
				height: 70rpx;
				line-height: 70rpx;
				font-size: 35rpx;
				color: #666666;
			}
			.btn2{
				width: 45%;
				background-color: #0056a8;
				border-radius: 50px;
				height: 70rpx;
				line-height: 70rpx;
				font-size: 35rpx;
				color: #ffffff;
			}
		}
		
	}
}
</style>
