v1.2版本更新发布
This commit is contained in:
@@ -77,6 +77,7 @@ include __DIR__ . '/../includes/header.php';
|
||||
<button class="nav-item" data-page="conduct">操行分详情</button>
|
||||
<button class="nav-item" data-page="homework">作业情况</button>
|
||||
<button class="nav-item" data-page="attendance">考勤记录</button>
|
||||
<a href="/student/semester_history.php" class="nav-item">学期记录</a>
|
||||
<button class="nav-item" data-page="password">修改密码</button>
|
||||
</div>
|
||||
|
||||
@@ -301,7 +302,7 @@ include __DIR__ . '/../includes/header.php';
|
||||
const ranking = rankingRes.data.ranking || [];
|
||||
const rank = ranking.find(s => s.student_id === parseInt(STUDENT_ID));
|
||||
if (rank) {
|
||||
document.getElementById('studentRank').textContent = rank.rank;
|
||||
document.getElementById('studentRank').textContent = `第${rank.rank}名`;
|
||||
} else {
|
||||
document.getElementById('studentRank').textContent = '--';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user