<template>
	<!-- <view class="sum-score-box">总学分：{{totalCredits}}分</view>
	<custom-scroll-list :hasSearcBar="false" :refreshFn="getCreditList" :hasTab="false">
		<template #default="{list}">
			<scroll-list-card-mes  v-for="(item,index) in list" :key="item.noticeId"
				:data="item"></scroll-list-card-mes>
		</template>
	</custom-scroll-list> -->
</template>

<script setup>
	import {getCreditList,getCreditTotal} from '@/api/my.js'
	import {onLoad,onReady,} from "@dcloudio/uni-app"
	import {reactive,ref} from "vue";
	let totalCredits = ref('');
	onLoad(() => {
		getCreditInit()
	})
	
	function getCreditInit() {
		getTotalData();
	}
	
	function getTotalData(){
		getCreditTotal({}).then(res => {
			totalCredits.value= res.data;
		})
	}
</script>