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


		<view class="activeBox" v-for="(item,index) in activeList" :key="index">
			<view class="teaching_case">
				<view class="img">
					<!-- <image src="http://43.139.158.220:5007/img/static/activity/bg2.png" mode="aspectFill"></image> -->
					<image :src="activeList[index].img" mode="aspectFill"></image>

				</view>

				<view class="right" @click="gotoActivityDetail(index)">
					<view class="title">
						<view class="tag bqZ-font">类型</view>
						<text class="three-font" style="font-weight: 600;">{{ item.className }}</text>
					</view>

					<view class="introduce">
						{{ item.intro }}
					</view>

					<view class="operate">
						<view class="left">
							<view class="money fNum-font"><text class="three-font">￥</text> {{ item.price }}</view>
							<view class="person">已报名{{ item.count }}人</view>
						</view>

						<view class="Oright">
							<view class="text">查看详情</view>
							<view class="arrow">
								<image src="http://43.139.158.220:5007/img/static/mine/arrow-right-blue.png" mode="aspectFill"></image>
							</view>
						</view>

					</view>
				</view>
			</view>
		</view>
		<view class="" style="width: 100%;height: 50rpx;">
			
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navBarData: {
					title: '专题教研活动列表',
					btn: 1
				},
				activeList: [{
						img: "http://43.139.158.220:5007/img/static/img/1695656271245-image.png",
						count: "3842",
						price: "299",
						className: "丽湖职教双创教育国际虚拟教研室启动大会暨双创教育国际论坛圆满举行",
						intro: "丽湖职教双创教育国际虚拟教研室为立足全国，辐射海外的国际化教研室，围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务，通过加强跨专业、跨校、跨地域的教研交流，推动高校协同打造国际化的精品教学资",
					},
					{
						img: "http://43.139.158.220:5007/img/static/img/img1.png",
						count: "17",
						price: "188",
						className: "丽湖职教双创教育国际虚拟教研室2023年常规教研活动安排",
						intro: "丽湖职教双创教育国际虚拟教研室为立足全国，辐射海外的国际化教研室，围绕创新创业教育的人才培养与课程建设开展深度研究。教研室以贯彻落实立德树人根本任务，通过加强跨专业、跨校、跨地域的教研交流，推动高校协同打造国际化的精品教学资",
					},
					{
						img: "http://43.139.158.220:5007/img/static/img/img3.png",
						count: "1",
						price: "188",
						className: "产教融合情境下的双创通识课程建设 | 丽湖职教双创教育国际虚拟教研室常规教研活动第2期顺利举行",
						intro: "【图片】为提升职业院校双创课程建设水平，促进双创课程的改革与发展，丽湖职教双创教育国际虚拟教研室于3月29日组织举办了以“产教融合情境下的双创通识课程建设”为主题的第2期线上教研活动，来自全国各职业院校的60多位教师参会。",
					},
					{
						img: "../../static/1698145576556-image.png",
						count: "3842",
						price: "299",
						className: "丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期",
						intro:"丽湖职教双创教育国际虚拟教研室 • 常规教研活动 第9期"
					},
				],
			};
		},
		methods:{
			gotoActivityDetail(index) {
				const value = uni.getStorageSync("login");
				if (value == 0) {
					uni.navigateTo({
						url: "/pages/login/login",
					});
				} else {
					const urls = [
						"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1181",
						"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1183",
						"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1210",
						"https://szptxnjys.yuketang.cn/pro/portal/announcementdetail/1234",
					];
					if (index >= 0 && index < urls.length) {
						const url = urls[index];
						uni.navigateTo({
							url: "/pages/skipone/skipone?url=" + encodeURIComponent(url),
						});
					}
				}
			},
		}
	}
</script>

<style lang="scss">
	.activeBox {
		width: 100%;
		background-color: #fff;
		padding: 10px 0;

		.teaching_case {
			display: flex;
			justify-content: space-between;
			padding: 0 15px;

			.img {
				width: 160rpx;
				height: 160rpx;

				image {
					width: 100%;
					height: 100%;
					border-radius: 10rpx;
				}
			}

			.right {
				padding-left: 15px;
				flex: 1;
				display: flex;
				flex-direction: column;
				// align-content: flex-end;
				justify-content: space-between;

				.title {
					display: flex;
					align-items: center;

					margin-bottom: 5px;

					.tag {
						border: 1px #00b2b6 solid;
						// font-size: 20rpx;
						width: 64rpx;
						height: 38rpx;
						display: flex;
						white-space: nowrap;
						justify-content: center;
						align-items: center;
						padding: 1rpx 4rpx;
						border-radius: 3px;
						margin-right: 10rpx;
						color: #00b2b6;
					}

					text {
						width: 180px;
						overflow: hidden;
						text-overflow: ellipsis;
						white-space: nowrap;
					}

				}

				.introduce {
					width: 230px;
					font-size: 28rpx;
					color: #a7a7a7;
					// margin-top: 8px;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}

				.operate {
					display: flex;
					justify-content: space-between;
					// align-items: flex-end;
					align-items: baseline;
					// margin-top: 15px;

					.left {
						display: flex;
						flex-direction: row;
						justify-content: space-between;
						align-items: baseline;
						width: 260rpx;

						.money {
							color: #FFA338;
							font-weight: bold;
							font-size: 36rpx;
							line-height: 20px;
						}

						.person {
							color: #00000099;
							font-size: 24rpx;
							// margin-left: 6px;
						}
					}

					.Oright {
						width: 80px;
						display: flex;
						justify-content: flex-start;
						align-items: center;
						// flex-direction: row;
						// justify-content: space-around;
						// align-items: flex-end;

						.text {
							font-size: 24rpx;
							color: #3081E8;
						}

						.arrow {
							display: flex;
							justify-content: center;
							margin-top: 5rpx;

							image {
								width: 32rpx;
								height: 32rpx;
							}
						}
					}
				}
			}
		}
	}
</style>