@if (loading() && !user()) {
正在加载会员资料…
} @else if (error() && !user()) { } @else { @if (user(); as detail) {

{{ detail.displayName }}

{{ detail.statusLabel }}

会员 ID {{ detail.userId || '—' }}@if (detail.username && detail.username !== detail.displayName) { · 账号 {{ detail.username }} }

{{ detail.learningStatusLabel }}{{ detail.parentDisplayName || '未绑定门店' }}{{ detail.registeredAt | date:'yyyy-MM-dd' }} 注册
@if (detail.writeReady === false) {

{{ detail.readOnlyReason }}

} @if (message()) {

{{ message() }}

} @if (error()) { } @if (sectionLoading()) {
正在读取业务记录…
} @if ((tab()==='overview'||tab()==='audit') && (detail.permissions.canEdit||detail.permissions.canManage)) {
保存资料、变更账号或添加备注时必填,记入审计日志
} @switch (tab()) { @case ('overview') {

基本资料

会员姓名和绑定手机号用于登录;学生端不可修改,昵称可由学生自行修改
@if (detail.permissions.canEdit) { }

学习与课时

{{ detail.learningStatusReason }}
{{ detail.learningStatusLabel }}
{{ detail.periods30 }}30 分钟课时
{{ detail.periods60 }}60 分钟课时
{{ detail.trialPeriods }}体验课时
{{ detail.balances.userPoint }}陪练时长
{{ detail.activeCourseCount }}有效课程
{{ detail.studyRecordCount }}学习记录
@for (risk of detail.riskFlags || []; track risk) { {{ risk }} } @empty { 当前没有运营风险提示 }
@if(!isStore()){

所属门店/代理

选择后点击“保存资料”生效
@if (detail.permissions.canEdit) {
@for (agent of filteredAgents(); track agent.userId) { }
}
}

账号安全

高风险操作仅运营经理可执行
@if (detail.permissions.canManage) {
@if (detail.permissions.canResetPassword) {
}
} @else {

当前账号没有高风险操作权限。

}
} @case ('courses') {

已开课程

查看学习进度,取消绑定进入回收站并可恢复
@if (detail.permissions.canEdit) { }@if(detail.permissions.canManage){}
@for (row of related().courses; track row['targetId']) { } @empty { }
分类与课程已学/内容数量进度状态操作
{{ row['categoryName'] || '待确认分类' }} · {{ row['courseName'] || '未命名课程' }}{{ row['learnedCount'] || 0 }} / {{ row['openedCount'] || 0 }}{{ row['progressStage'] || '未记录' }}{{ row['enrollmentStatus'] === 'pending' ? '分类待确认' : row['statusLabel'] }}@if (detail.permissions.canManage) { }
暂无课程绑定
} @case ('appointments') {

预约记录

查看课程、陪练、预约时间和业务状态
@for (row of related().appointments; track row['targetId']) { } @empty { }
课程陪练老师预约时间课型状态
{{ row['courseName'] }}{{ row['coachName'] || '待分配' }}{{ $any(row['appointmentAt'] || row['startsAt']) | date:'yyyy-MM-dd HH:mm' }}{{ row['classTypeLabel'] }}{{ row['statusLabel'] }}
暂无预约记录
} @case ('lessons') { } @case ('reports') {

单词学习报表

查看该会员每次学习的掌握情况和复习计划
进入报表中心
@for (row of related().reports; track row['targetId']) { } @empty { }
学习日期课程陪练老师学习结果掌握率状态操作
{{ row['studyDate'] || '日期缺失' }}{{ row['courseName'] }}{{ row['coachName'] }}{{ row['learnedCount'] }} 个 · 掌握 {{ row['masteredCount'] }} · 待复习 {{ row['reviewDueCount'] }}{{ row['masteryRate'] }}%{{ row['statusLabel'] }}查看报表
暂无学习报表
} @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(tab()!=='overview'&&tab()!=='audit'&&tab()!=='lessons'&&tab()!=='balances') {} } }