<template>
	<view class="teaching_case">
		<view class="img">
			<!-- <slot name="img"></slot> -->
			<image src="../../static/logo.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="">收藏</view>
					<view class="">订阅</view>
				</view>
				<button class="btn">立即参与</button>
			</view>
		</view>
	</view>
	
</template>

<script>
	export default {
		name:"teaching-case",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss">
	.teaching_case{
		display: flex;
		justify-content: space-between;
		margin-bottom: 20px;
		padding-right: 20px;
		.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: 12px;
					display: flex;
					white-space: nowrap;
					justify-content: center;
					align-items: center;
					padding: 2px 4px;
					border-radius: 3px;
					margin-right: 10rpx;
					color: #00b2b6;
				}
				text{
					overflow: hidden;
					text-overflow:ellipsis;
					white-space: nowrap;
				}
				
			}
			.introduce{
				font-size: 16px;
				color: #a7a7a7;
				// padding: 20rpx 0;
				overflow: hidden;
				text-overflow:ellipsis;
				white-space: nowrap;
			}
			.operate{
				display: flex;
				justify-content: space-between;
				align-items: flex-end;
				.left{
					display: flex;
					justify-content: space-between;
					width: 200rpx;
				}
					.btn{
						width: 80px;
						font-size: 12px;
						background-color: #3081e8;
						color: #fff;
						border-radius: 30px;
						margin: 0;
						float: right;
						margin-top: 10px;
					}
			}
		}
	}
</style>