Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangMonday authored Dec 13, 2024
1 parent feed1be commit 2bfdab1
Showing 1 changed file with 26 additions and 24 deletions.
50 changes: 26 additions & 24 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -206,12 +206,12 @@ <h5>学分计算算法说明</h5>
</li>
<li><strong>进步排名加分</strong>
<ul>
<li>总分比上一次考试进步1-10名,加1分</li>
<li>总分比上一次考试进步6-10名,加1分</li>
<li>总分比上一次考试进步11-20名,加2分</li>
<li>总分比上一次考试进步21-30名,加3分</li>
<li>三科比上一次考试进步1-10名,加1分</li>
<li>总分比上一次考试进步20以上,加3分</li>
<li>三科比上一次考试进步6-10名,加1分</li>
<li>三科比上一次考试进步11-20名,加2分</li>
<li>三科比上一次考试进步21-30名,加3分</li>
<li>三科比上一次考试进步20以上,加3分</li>
</ul>
</li>
</ol>
Expand Down Expand Up @@ -730,27 +730,29 @@ <h5>更新日志</h5>
});
});

// 计算进步加分
validStudents.forEach(s => {
// 总分进步
const totalImprovement = s.totalRankChange;
if (totalImprovement >=1 && totalImprovement <=10) {
s.improvementCredit +=1;
} else if (totalImprovement >=11 && totalImprovement <=20) {
s.improvementCredit +=2;
} else if (totalImprovement >=21 && totalImprovement <=30) {
s.improvementCredit +=3;
}
// 计算进步加分
validStudents.forEach(s => {
// 总分进步
const totalImprovement = s.totalRankChange;
if (totalImprovement >= 6 && totalImprovement <= 10) {
s.improvementCredit += 1;
} else if (totalImprovement >= 11 && totalImprovement <= 20) {
s.improvementCredit += 2;
} else if (totalImprovement > 20) {
s.improvementCredit += 3;
}

// 三科进步
const threeImprovement = s.threeRankChange;
if (threeImprovement >= 6 && threeImprovement <= 10) {
s.improvementCredit += 1;
} else if (threeImprovement >= 11 && threeImprovement <= 20) {
s.improvementCredit += 2;
} else if (threeImprovement > 20) {
s.improvementCredit += 3;
}
});

// 三科进步
const threeImprovement = s.threeRankChange;
if (threeImprovement >=1 && threeImprovement <=10) {
s.improvementCredit +=1;
} else if (threeImprovement >=11 && threeImprovement <=20) {
s.improvementCredit +=2;
} else if (threeImprovement >=21 && threeImprovement <=30) {
s.improvementCredit +=3;
}


// 确保加分不超过15
Expand Down

0 comments on commit 2bfdab1

Please sign in to comment.