v1.2版本更新发布
This commit is contained in:
@@ -73,14 +73,17 @@ async function loadDashboard() {
|
||||
document.getElementById('totalPoints').textContent = res.data.total_points;
|
||||
}
|
||||
|
||||
// 加载排名信息
|
||||
// 加载排名信息
|
||||
const rankRes = await apiGet('/api/parent/child/ranking');
|
||||
if (rankRes && rankRes.success) {
|
||||
const rank = rankRes.data.rank;
|
||||
const total = rankRes.data.total_students;
|
||||
document.getElementById('studentRank').textContent = rank ? `第${rank}名` : '--';
|
||||
if (rank) {
|
||||
document.getElementById('studentRank').textContent = `第${rank}名`;
|
||||
} else {
|
||||
document.getElementById('studentRank').textContent = '--';
|
||||
}
|
||||
}
|
||||
|
||||
// 显示初始分提示
|
||||
const initialPoints = window.STUDENT_INITIAL_POINTS || 60;
|
||||
document.getElementById('initialPointsHint').textContent = `初始操行分为 ${initialPoints} 分`;
|
||||
|
||||
Reference in New Issue
Block a user