<template>
	<view class="activeList">
		<statusBar :item="navbarData"></statusBar>
		<!-- <teaching-case :item="teaData"></teaching-case> -->
		<view class="" style="padding-bottom: 50rpx;">
			<teaching-case  :activeList="activeList" :indexId="index"></teaching-case>
		</view>


	</view>
</template>

<script>
	export default {
		data() {
			return {
				navbarData: {
					title: '专题教研活动',
					btn: 1
				},
				teaData: {
					btn: 1,
					btn_2: 1,
				},
				activeList: [],
			};
		},
		methods: {
			getData(){
				let data={
					openid:uni.getStorageSync('oId'),ty:2
				}
					this.$request('/selectActivity',"POST",data).then(res=>{
						console.log(res[0]);
						// this.activeList=[...this.activeList,...res[0]]
						this.activeList=res[0]
					})
			},
		},
		onShow() {
			this.getData()
		}
	}
</script>

<style lang="scss">
	.activeList {}
</style>