<template>
	<custom-scroll-list-date-vue :refreshFn="getCuotiList" :defaultTab="1" ref="scrollRef" placeholder="请输入考试名称">
		<template #default="{list}">
			<scroll-list-card-cuoti v-for="(item,index) in list" :key="item.lxId" :data="item"
				@btnClick="handleClick"></scroll-list-card-cuoti>
		</template>
	</custom-scroll-list-date-vue>
</template>

<script setup>
	import scrollListCardCuoti from "@/components/score-list-card-cuoti/score-list-card-cuoti.vue";
	import customScrollListDateVue from "@/components/custom-scroll-list/custom-scroll-list-date.vue";
	import {
		getCuotiList,
	} from "@/api/cuoti.js";
	import {
		ref
	} from "vue";

	function handleClick(data) {
		uni.navigateTo({
			url: `/pages/cuoti/cuoti?hisId=${data.hisId}`
		})	
	}

</script>

<style lang="scss">

</style>