<template>
	<view class="container">
		<view class="btn-list-item" v-for="(btn,index) in btnList" :key="index">
			<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: "",
			name: "观看记录"
		},
		{
			id: "2",
			path: "",
			name: "学分明细"
		},
		{
			id: "3",
			path: "",
			name: "我的收藏"
		},
	]);
	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>