mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-09 19:06:46 +08:00
课程学习考试
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<view class="paperinfo-item">
|
||||
<u-cell-group :border="false">
|
||||
<u-cell :border="false" icon="/static/images/icon/exam-duration.png" title="考试时长" :value="info.testDuration+'分钟'"></u-cell>
|
||||
<u-cell :border="false" icon="/static/images/icon/exam-times.png" title="考试次数" :value="info.times"></u-cell>
|
||||
<u-cell :border="false" icon="/static/images/icon/exam-times.png" title="考试次数" :value="allowTimes"></u-cell>
|
||||
<u-cell :border="false" icon="/static/images/icon/exam-score.png" title="及格线" :value="info.passLine"></u-cell>
|
||||
<u-cell :border="false" v-if="studyItemId!=''" title="考试成绩" :value="lastScore"></u-cell>
|
||||
<!--应该再显示最终成绩,最高一次或最后一次得分-->
|
||||
@@ -74,6 +74,7 @@
|
||||
show:0,
|
||||
toLetter:numberToLetter,
|
||||
testType:getQuestionType,
|
||||
allowTimes:'无限制',
|
||||
has:true,
|
||||
startTime:null,
|
||||
testStart: false,
|
||||
@@ -98,8 +99,10 @@
|
||||
loadExamInfo(){
|
||||
apiCourse.getExam(this.content.id).then(res=>{
|
||||
if(res.status==200){
|
||||
this.info=res.result;
|
||||
|
||||
if(res.result.times>0){
|
||||
this.allowTimes=res.result.times;
|
||||
}
|
||||
this.info=res.result;
|
||||
}else if(res.status==404){
|
||||
//没有找到考试信息
|
||||
}else{
|
||||
|
||||
Reference in New Issue
Block a user