@if (loading()) {
正在同步最新课程,可先浏览已加载内容
}
@if (!isCoach) {
我的学习内容
{{ courses().length }} 项
@if (courses().length) {
@for (item of courses(); track courseBindingId(item) || courseId(item) || $index) { }
} @else { {{ loading() ? '正在读取学习内容…' : '暂未分配学习内容,请联系老师' }}
}
}
{{ isHistory ? '销课记录' : isCoach ? '陪练排课' : '伴学列表' }}
{{ hasScheduleCalendar ? visibleSchedules().length + ' / ' + schedules().length : schedules().length }} 节
@if (hasScheduleCalendar && schedules().length) {
} @else if (!isCoach && schedules().length) {
}
@if (visibleSchedules().length) {
@for (group of groups(); track group.date) {
{{ group.date }}
@for (item of group.items; track $index) {
{{ scheduleTitle(item) }}@if (scheduleSubtitle(item)) { {{ scheduleSubtitle(item) }} }
{{ statusText(item) }}
@if (isCoach) { }
}
}
} @else { {{ loading() ? '正在读取排课数据…' : (hasScheduleCalendar ? scheduleEmptyText() : (schedules().length ? '该分类暂无伴学记录' : (isCoach ? '暂无销课记录' : '暂无伴学记录'))) }}
}
@if (error()) {
{{ error() }}
}