Commit 783c28aa authored by Facius's avatar Facius

feat: 得分超过百分比修改

parent 47d85910
......@@ -161,8 +161,18 @@ export default {
// 模考成绩大于80分小于90分则百分数在86%—93% 区间内取随机值;
// 模考成绩大于90分小于100分则百分数在94%—99% 区间内取随机值)
falsePercent() {
if (this.info.score == 0) return 6
var random = [94, 99]
if (this.info.score < 60) {
if (this.info.score < this.info.pageTotalPoint * 0.1
) {
random = [6, 14]
} else if (this.info.score < this.info.pageTotalPoint * 0.3 &&
this.info.score >= this.info.pageTotalPoint * 0.1
) {
random = [14, 55]
} else if (this.info.score < this.info.pageTotalPoint * 0.6 &&
this.info.score >= this.info.pageTotalPoint * 0.3
) {
random = [55, 65]
} else if (
this.info.score >= this.info.pageTotalPoint * 0.6 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment