Commit 8fae4045 authored by Damon's avatar Damon

refactor: 考试倒计时+合格分数调整

parent 2f353bf6
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
>倒计时:<u-count-down >倒计时:<u-count-down
:timestamp="timestamp" :timestamp="timestamp"
bg-color="" bg-color=""
:show-hours="false"
@end="timeEnd" @end="timeEnd"
@change="timeChange" @change="timeChange"
></u-count-down ></u-count-down
...@@ -167,7 +166,7 @@ export default { ...@@ -167,7 +166,7 @@ export default {
visible: false, visible: false,
timeout: false, timeout: false,
}, },
timestamp: 60 * 60, timestamp: 60 * 120,
currentTime: null, currentTime: null,
list: [], list: [],
// key为currentPage,value为此页list数据 // key为currentPage,value为此页list数据
...@@ -186,7 +185,7 @@ export default { ...@@ -186,7 +185,7 @@ export default {
source: 5, source: 5,
recordId: 0, recordId: 0,
// 合格分数 // 合格分数
passPoint: 60, passPoint: 80,
// 考试题数 // 考试题数
totalPoint: 100, totalPoint: 100,
// 已做题数 // 已做题数
...@@ -826,7 +825,7 @@ export default { ...@@ -826,7 +825,7 @@ export default {
color: #5a6073; color: #5a6073;
font-size: 32rpx; font-size: 32rpx;
margin: 10rpx auto; margin: 10rpx auto;
width: 230rpx; width: 290rpx;
} }
} }
.swiper { .swiper {
......
...@@ -135,7 +135,7 @@ export default { ...@@ -135,7 +135,7 @@ export default {
return this.info.score >= this.info.pageTotalPoint return this.info.score >= this.info.pageTotalPoint
}, },
isPass() { isPass() {
return this.info.score >= this.info.pageTotalPoint * 0.6 return this.info.score >= this.info?.echoMap?.paperId?.passPoint || 80
}, },
resultText() { resultText() {
return this.isPass ? '合格' : '不合格' return this.isPass ? '合格' : '不合格'
......
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