添加题目数量+考试时长灵活设置

This commit is contained in:
@fawn-nine
2024-09-11 17:05:56 +08:00
parent 72dcbfdd82
commit c71b2c67b4
7 changed files with 327 additions and 353 deletions

View File

@@ -51,11 +51,16 @@
<!-- v-if="thisClass.state == '3'" -->
<view class="optionsBox">
<!-- v-show="thisClass.state == '2'" -->
<view class="chengji">
<view class="chengji" style="text-align: center;">
<view style="margin-top: 20rpx;">总成绩
<text class="scoreNumber greenScore">{{performanceScore.userScore}}</text>
<text
class="c999">{{performanceScore.examScore}}分考试分+{{performanceScore.usualScore}}分平时表现分</text>
<view class="">
<view class="">
<text class="c999">{{performanceScore.examScore}}分考试分 <uni-icons type="eye" size="20" color="#999"
@click="showPaperList = true"></uni-icons></text>
<text class="c999">{{performanceScore.usualScore}}分平时表现分</text>
</view>
</view>
</view>
<!-- <view>
恭喜您获得
@@ -71,14 +76,14 @@
</view>
</view>
</view>
<view class="pingfenBox testBox" v-if="thisClass.state == '3' && classModel.isExam == 1">
<view class="pingfenBox testBox" v-if="(thisClass.state == '3') && classModel.isExam == 1">
<view class="scoreTitle">
<view class="titles flex_box">
<text>笔试分</text><uni-icons type="help" size="18" color="#fff"
@click="showTestTips = true"></uni-icons>
</view>
</view>
<view class="optionsBox" v-if="thisClass.state == '3'">
<view class="optionsBox" v-if="thisClass.state == '3'">
<view class=" ">
<view class="">
<!-- -->
@@ -98,10 +103,10 @@
@click="continueTest(examId)">继续考试</text>
</view>
</view>
</view>
<view class="flex_box flex_center align-items_box userScore" v-else
style="color: #666; justify-content: space-around !important">
<view class="flex_box align-items_box">
<text><text class="PM_font mainTxt" style="font-size: 60rpx; ">{{paperSore}}</text>
</text>
@@ -117,7 +122,7 @@
</view>
</view>
</view>
<view class="pingfenBox" v-if="thisClass.state == '1' || thisClass.state == '3'">
<view class="pingfenBox" v-if="thisClass.state == '1' || thisClass.state == '3' || thisClass.state == '2'">
<view class="scoreTitle">
<view class="titles flex_box">
<text>表现分</text><uni-icons type="help" size="18" color="#fff" @click="clickHelp"></uni-icons>
@@ -661,10 +666,12 @@
var severNowTime = -1
// paperData = await this.getlocaltestInfo('paperEndTime')
var historyPaper = await this.getingPaper()
console.log('正在进行中的试卷信息', historyPaper);
this.ingPaper = historyPaper
// console.log('对比----------------', historyPaper.classId, this.classId);
if (historyPaper&& historyPaper != null && historyPaper.classId == this.classId) {
paperEndTime = this.hourUp(historyPaper.startTime, 1) // 结束的时间戳
var planEndTimeDate = new Date(historyPaper.planEndTime)
paperEndTime = planEndTimeDate.getTime(); // 结束的时间戳
this.examId = historyPaper.id
} else {
this.examId = undefined
@@ -1092,7 +1099,8 @@
console.log('考试中999999999999999999', res);
if (res.code == 0) {
if (res.classExamUser != null) {
obj = res.classExamUser
obj = {...res.classExamUser, planEndTime:res.planEndTime}
// obj
} else {
obj = undefined
}