<template>
	<custom-scroll-list :refreshFn="getKechengList" :tabList="tabData" :defaultTab="1">
		<template #default="{list}">
<!--			<scroll-list-card-kecheng @click="kechengClick(item)" v-for="(item,index) in list" :key="item.ksId"-->
<!--				:data="item"></scroll-list-card-kecheng>-->
		</template>
	</custom-scroll-list>
</template>

<script setup>
	import {
		getKechengList
	} from "@/api/course.js";
	import {
		onLoad,
		onReady,

	} from "@dcloudio/uni-app"
	import {
		reactive,
		ref
	} from "vue";
	const tabData = [{
		label: "可以学习",
		value: 1,
	}, {
		label: "已结束",
		value: 4
	}]
	const kechengClick = (data) => {
		uni.navigateTo({
			url: '/pages/course/kechengInfo?kcId=' + data.kcId + '&name=' + data.name
		});
	}
</script>

<style lang="scss">

</style>