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

		<view class="activeBox" v-for="i in 5" :key="i">
			<view class="teaching_case">
				<view class="img">
					<image src="../../static/activity/bg2.png" mode="aspectFill"></image>
				</view>

				<view class="right">
					<view class="title">
						<view class="tag">类型</view>
						<text>这里是活动标题标题标题标题标题</text>
					</view>

					<view class="introduce">
						活动描述活动描述活动描述活动描述活动描述活动描述活动描述
					</view>

					<view class="operate">
						<view class="left">
							<view class="money">￥188</view>
							<view class="person">已报名123人</view>
						</view>
						<view class="right">
							<view class="text">查看详情</view>
							<view class="arrow">
								<image src="../../static/mine/arrow-right-blue.png" mode="aspectFill"></image>
							</view>
						</view>
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				navBarData: {
					title: '我的活动',
					btn: 1
				},
			};
		}
	}
</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: 180rpx;
				height: 180rpx;

				image {
					width: 100%;
					height: 100%;
				}
			}

			.right {
				padding-left: 15px;
				flex: 1;
				width: 100rpx;
				display: flex;
				flex-direction: column;
				align-content: flex-end;

				.title {
					display: flex;
					margin-bottom: 5px;

					.tag {
						border: 1px #00b2b6 solid;
						font-size: 20rpx;
						display: flex;
						white-space: nowrap;
						justify-content: center;
						align-items: center;
						padding: 2px 4px;
						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;
					margin-top: 15px;

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

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

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

					.right {
						width: 80px;
						// height: 24px;
						display: flex;
						flex-direction: row;
						justify-content: space-around;
						align-items: flex-end;

						.text {
							font-size: 24rpx;
							color: #3081E8;
						}
						.arrow {
							line-height: 10px;
							image{
								width: 32rpx;
								height: 32rpx;
							}
						}
					}
				}
			}
		}
	}
</style>