@if (loading() && !user()) { 正在加载会员资料…
}
@else if (error() && !user()) { {{ error() }}
}
@else { @if (user(); as detail) {
{{ detail.displayName }}
会员 ID {{ detail.userId || '—' }} · {{ detail.username }}
{{ detail.learningStatusLabel }}{{ detail.parentDisplayName || '未绑定代理' }}{{ detail.registeredAt | date:'yyyy-MM-dd' }} 注册
{{ detail.statusLabel }}
@if (detail.writeReady === false) { {{ detail.readOnlyReason }}
}
@if (message()) { {{ message() }}
} @if (error()) { {{ error() }}
}
@if (sectionLoading()) { 正在读取业务记录…
}
@switch (tab()) {
@case ('overview') {
基本资料
只展示运营需要的业务字段@if (detail.permissions.canEdit) { }- 注册时间
- {{ detail.registeredAt | date:'yyyy-MM-dd HH:mm' }}
- 最后登录
- {{ detail.lastLoginAt ? (detail.lastLoginAt | date:'yyyy-MM-dd HH:mm') : '—' }}
- 登录次数
- {{ detail.loginCount }}
{{ detail.periods30 }}30 分钟课时{{ detail.periods60 }}60 分钟课时{{ detail.trialPeriods }}体验课时{{ detail.balances.userPoint }}陪练时长{{ detail.activeCourseCount }}有效课程{{ detail.studyRecordCount }}学习记录 @for (risk of detail.riskFlags || []; track risk) { {{ risk }} } @empty { 当前没有运营风险提示 }
}
@case ('courses') {
}
@case ('appointments') { | 课程 | 陪练老师 | 预约时间 | 课型 | 状态 |
@for (row of related().appointments; track row['targetId']) { | {{ row['courseName'] }} | {{ row['coachName'] || '待分配' }} | {{ $any(row['appointmentAt'] || row['startsAt']) | date:'yyyy-MM-dd HH:mm' }} | {{ row['classTypeLabel'] }} | {{ row['statusLabel'] }} |
} @empty { | 暂无预约记录 |
}
}
@case ('lessons') { | 课程 | 陪练老师 | 上课时间 | 课型 | 评分 | 评价 |
@for (row of related().lessons; track row['targetId']) { | {{ row['courseName'] }} | {{ row['coachName'] }} | {{ $any(row['lessonAt']) | date:'yyyy-MM-dd HH:mm' }} | {{ row['classTypeLabel'] }} | {{ row['score'] || '—' }} | {{ row['comment'] || '—' }} |
} @empty { | 暂无上课记录 |
}
}
@case ('balances') { }
@case ('audit') { @if (detail.permissions.canEdit) { }@for (note of notes(); track note['objectId']) {
{{ note['operatorName'] || '运营人员' }}{{ note['content'] }}
} @empty {
暂无跟进备注
}
@for (item of related().audit; track item['objectId']) {
{{ item['operatorName'] || '系统' }}{{ item['summary'] || '会员业务操作' }}
} @empty {
暂无操作审计记录
}
}
}
@if (detail.permissions.canEdit || detail.permissions.canManage) { }
} }