@if (loading()) {
正在加载课程
} @else {
@if (!isCoach) {
我的内容
{{ courses().length }} 项
@if (courses().length) {
@for (item of courses(); track $index) { }
} @else { 暂无我的内容
}
}
{{ isHistory ? '销课记录' : isCoach ? '陪练排课' : '伴学列表' }}
{{ schedules().length }} 节
@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 { {{ schedules().length ? '该分类暂无伴学记录' : (isCoach ? '今天暂无排课' : '暂无伴学记录') }}
}
@if (error()) {
{{ error() }}
}
}