<template>
	<!-- 教研室报名 -->
	<view class="main">
		<statusBar :item="navBarData"></statusBar>
		<uni-card :is-shadow="false">
			<view class="uni-body">
				<view class="card">
					<image src="/static/jys/jys.png" class="image" mode="aspectFill"></image>
					<view class="text">
						<p>
							<span class="manage">类型</span>
							<span class="t1">这里是教研室名称</span>
						</p>
						<view class="fzr">
							<p>负责人：xxx</p>
							<p>教研室标签：</p>
						</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 safe-area-bottom">
			<button @click="button1Action" class="btn1">清空填写信息</button>
			<button @click="button2Action" class="btn2">申请加入</button>
		</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;
		// align-items: center; // 如果需要垂直居中
		justify-content: flex-start;
		.image {
			width: 100px;
			height: 100px;
			border-radius: 4px;
			object-fit: cover; // 使图片保持原有比例填充整个元素
		}

		.text {
			margin-left: 10px; // 增加一点空间
			line-height: 35px; // 根据你的需求调整，使文本与图片保持
			.manage {
				padding: 2px;
				padding-left: 5px;
				padding-right: 5px;
				// font-size: 12px;
				color: #00b2b6;
				border: 1px solid #00b2b6;
				border-radius: 3px;
				// margin-left: 5px;
			}
			.t1 {
				font-size: 18px;
				color: black;
				font-weight: 550;
			}
			.fzr {
				p {
					margin-left: 5px;
					color: #999999;
				}
			}
		}
	}
	.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 {
		bottom: 42px;
		position: fixed;
		// width: 100%;
		display: flex;
		justify-content: space-between;
		// padding-left: 25px;
		// padding-right: 25px;
		button {
			font-size: 16px;
			color: #999999;
			width: 180px; /* 设置按钮宽度 */
			border-radius: 50px; /* 设置圆角 */
		}
		.btn1 {
			margin-left: 10px;
			border: 1px solid #999999;
		}
		.btn2 {
			color: white;
			margin-left: 50px;
			background-color: #0056a8;
		}
	}
}
</style>
