diff --git a/pages/YNEduApp/exam/examination.vue b/pages/YNEduApp/exam/examination.vue index fdf936b..cd4d528 100644 --- a/pages/YNEduApp/exam/examination.vue +++ b/pages/YNEduApp/exam/examination.vue @@ -201,9 +201,11 @@ export default { onHide() { // this.screenCount++ // console.log('🚀 ~ onHide ~ this.screenCount:', this.screenCount) - if (!this.isHide) { - this.handleConfirmSubmit() - } + setTimeout(() => { + if (!this.isHide) { + this.handleConfirmSubmit() + } + }, 500) }, mounted() { this.getList() @@ -268,11 +270,17 @@ export default { changeCountDown(time) { // console.log('🚀 ~ changeCountDown ~ time:', time) // 等时间赋值后再开始计时 - if (this.time == 0) return + if (this.time == 0 && !this.isLoading) return this.answerTime = this.time - (time.days * 24 * 60 * 60 + time.hours * 60 * 60 + time.minutes * 60 + time.seconds) * 1000 // console.log('🚀 ~ changeCountDown ~ this.answerTime:', this.answerTime) - console.log('🚀 ~ changeCountDown ~ this.answerTime:',this.time, this.answerTime / 1000, this.random1, this.random2) + console.log( + '🚀 ~ changeCountDown ~ this.answerTime:', + this.time, + this.answerTime / 1000, + this.random1, + this.random2 + ) console.log('🚀 ~ changeCountDown ~:', this.answerTime / 1000 == this.random1) console.log('🚀 ~ changeCountDown ~:', this.answerTime / 1000 == this.random2) if (this.answerTime / 1000 == this.random1) { @@ -416,7 +424,6 @@ export default { }) setTimeout(() => { this.showConfirmModal = false - this.isLoading = false }, 1000) } }) diff --git a/pages/YNEduApp/prac/exercises.vue b/pages/YNEduApp/prac/exercises.vue index 3b1d273..d763f3f 100644 --- a/pages/YNEduApp/prac/exercises.vue +++ b/pages/YNEduApp/prac/exercises.vue @@ -203,7 +203,7 @@ v-for="(item, index) in questionListSelect" :key="index" class="topic-wrapper" - :class="{ correct: item.isCorrect, error: item.isError }" + :class="{ correct: item.isTrue == 1, error: item.isTrue == 0 }" @click="handleJump('jump', item.index)" >
*