|
@@ -12,6 +12,7 @@
|
|
|
color: #7f7f44;height: 30px;text-align: center;padding:20px;padding-bottom: 0;">
|
|
|
{{examObject.examTitle}}
|
|
|
</view>
|
|
|
+ <button type="primary" style="background-color: #f0eff0; position: fixed;top: 20px;right: 20px;width: 20px;height: 20px;line-height:1;color: #000000;" @click="reload">҉</button>
|
|
|
<uni-row>
|
|
|
<uni-col :span="4" style="margin-top: 30px">
|
|
|
<uni-card style="height: 85vh;">
|
|
@@ -42,7 +43,7 @@
|
|
|
<l-divider color="#b3b3b3">
|
|
|
</l-divider>
|
|
|
<button type="primary" style="margin-top: 10px;" @click="subExam">交卷</button>
|
|
|
- <button type="primary" style="margin-top: 10px;" @click="reload">刷新</button>
|
|
|
+
|
|
|
</uni-card>
|
|
|
|
|
|
</uni-col>
|
|
@@ -377,6 +378,13 @@
|
|
|
</view>
|
|
|
</uni-popup-dialog>
|
|
|
</uni-popup>
|
|
|
+ <uni-popup ref="answerFinal" type="dialog">
|
|
|
+ <uni-popup-dialog style="width: 50vh;" ref="inputClose" title="当前已经到最后一题">
|
|
|
+ <view style="color: #0b0ba5 ;">
|
|
|
+ <view>请检查是否存在漏答题目,检查无误后,请点击“<strong style="font-size: 20px;color: #f00004 ;">交卷</strong>”</view>
|
|
|
+ </view>
|
|
|
+ </uni-popup-dialog>
|
|
|
+ </uni-popup>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
@@ -473,9 +481,11 @@
|
|
|
'limitTime': this.userExamPaper.limitTime
|
|
|
}).then(data => {
|
|
|
console.log(data);
|
|
|
+
|
|
|
window.location.reload()
|
|
|
+
|
|
|
+
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
// 消息提示
|
|
|
messageToggle(type, message) {
|
|
@@ -598,10 +608,13 @@
|
|
|
if (this.scantron.sort < this.examObject.userExamQuestionList.length) {
|
|
|
// this.scantron = this.examObject.userExamQuestionList[this.scantron.sort]
|
|
|
this.radioScantron(this.scantron.sort + 1)
|
|
|
+ }else{
|
|
|
+ this.$refs.answerFinal.open()
|
|
|
}
|
|
|
},
|
|
|
// 答题卡单击题目
|
|
|
radioScantron(value) {
|
|
|
+ screenfull.request()
|
|
|
this.scantron = this.examObject.userExamQuestionList[value - 1]
|
|
|
if (this.scantron.questionType !== 7 && this.scantron.questionType !== 8) {
|
|
|
document.getElementById('scantronNodes').innerHTML = this.scantron.question.content
|
|
@@ -1658,6 +1671,10 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
window.addEventListener("unload", (e) => {
|
|
|
e.preventDefault();
|
|
|
setTimeout(() => {
|
|
@@ -1705,6 +1722,7 @@
|
|
|
this.answerDisplay(answerData.data.result)
|
|
|
}
|
|
|
})
|
|
|
+
|
|
|
})
|
|
|
}
|
|
|
}
|