From fd40d674519a3fbc94f37cb2ece367a17f20f7d8 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Wed, 09 Mar 2022 11:22:09 +0800
Subject: [PATCH] 模拟考试样式调整,提交考试确认窗口回到第一题bug修复,答题后去除自动跳题
---
components/dyw-answer/answer.vue | 51 ++++++++++++++++++++++++---------------------------
1 files changed, 24 insertions(+), 27 deletions(-)
diff --git a/components/dyw-answer/answer.vue b/components/dyw-answer/answer.vue
index 6e42e28..bbb37a6 100644
--- a/components/dyw-answer/answer.vue
+++ b/components/dyw-answer/answer.vue
@@ -205,6 +205,7 @@
export default {
data() {
return {
+ sleepTime:2000,
subHeaderTop: 0,
isreadOnly: true,
quesModules: [],
@@ -438,11 +439,11 @@
if (item.tempAnswer == item.answer) item.correctOrError = true
// 强制刷新更新视图
this.$forceUpdate()
- if (this.currentIndex < this.max) {
- setTimeout(() => {
- this.currentIndex += 1
- }, 300)
- }
+ // if (this.currentIndex < this.max) {
+ // setTimeout(() => {
+ // this.currentIndex += 1
+ // }, this.sleepTime)
+ // }
},
/* 选择答案(多选)*/
chooseMutiSolution(item, subItem) {
@@ -490,11 +491,11 @@
this.$forceUpdate()
- if (this.currentIndex < this.max) {
- setTimeout(() => {
- this.currentIndex += 1
- }, 300)
- }
+ // if (this.currentIndex < this.max) {
+ // setTimeout(() => {
+ // this.currentIndex += 1
+ // }, this.sleepTime)
+ // }
},
// 实操题中的答案确认
pictureConfirm(item) {
@@ -528,11 +529,11 @@
this.$forceUpdate()
- if (this.currentIndex < this.max) {
- setTimeout(() => {
- this.currentIndex += 1
- }, 300)
- }
+ // if (this.currentIndex < this.max) {
+ // setTimeout(() => {
+ // this.currentIndex += 1
+ // }, this.sleepTime)
+ // }
},
/* 判断题答案 */
judgeSolution(item, value) {
@@ -542,21 +543,16 @@
if (item.tempAnswer == item.answer) item.correctOrError = true
// 强制刷新更新视图
this.$forceUpdate()
- if (this.currentIndex < this.max) {
- setTimeout(() => {
- this.currentIndex += 1
- }, 300)
- }
+ // if (this.currentIndex < this.max) {
+ // setTimeout(() => {
+ // this.currentIndex += 1
+ // }, this.sleepTime)
+ // }
},
/* 交卷 相同 */
handleSubmit(submitORimeEnd) {
/*submitORimeEnd == 1,submit
submitORimeEnd == 0,stimeEnd*/
- if (this.currentIndex == 0) {
- this.currentIndex++
- } else {
- this.currentIndex = 0
- }
if (submitORimeEnd) {
// this.$emit('submit', this.questionList)
this.$emit('submit')
@@ -576,6 +572,7 @@
right: 10px;
bottom: 0;
margin: auto;
+ font-size: 1.0rem;
color: #fff;
letter-spacing: 4rpx;
/* 如果您想让slot内容占满整个导航栏的宽度 */
@@ -619,13 +616,13 @@
.footer {
width: 100%;
height: 88rpx;
- padding: 30rpx 20rpx;
+ padding: 30rpx 25rpx;
position: fixed;
bottom: 0;
display: flex;
align-items: center;
justify-content: space-between;
- font-size: 30rpx;
+ font-size: 1rem;
box-sizing: border-box;
color: #4c8af3;
box-shadow: 0 0 5px 1px #eee;
--
Gitblit v1.9.3