<template>
	<view class="container">
		<view class="btn-list-item" v-for="(btn,index) in btnList" :key="index" @click="toPage(btn.path)">
			<text>{{btn.name}}</text>
			<u-icon name="arrow-right" size="20"></u-icon>
		</view>
	</view>
</template>

<script setup>
	import {
		ref
	} from 'vue'
	import {
		onLoad
	} from '@dcloudio/uni-app'
	const btnList = ref([{
			id: "1",
			path: "/pages/goOnEdu/course/courseMine/mineRecord/mineRecord",
			name: "观看记录"
		},
		{
			id: "2",
			path: "/pages/goOnEdu/course/courseMine/mineCredits/mineCredits",
			name: "学分明细"
		},
		// {
		// 	id: "3",
		// 	path: "/pages/goOnEdu/course/courseMine/mineFavi/mineFavi",
		// 	name: "我的收藏"
		// },
	]);
	const toPage = (url) => {
		uni.navigateTo({
			url:url
		})
	}
	onLoad(() => {
		console.log('课程-我的页面')
	})
</script>

<style lang="scss" scoped>
	.btn-list-item {
		background-color: #fff;
		width: 100%;
		margin: 20rpx 0;
		padding: 20rpx 25rpx;
		display: flex;
		justify-content: space-between;
		border-radius: 10rpx;
		border: 1px solid rgba(211, 211, 211, 0.5);
		color: #000;
	}
</style>