培训 bug 修复

This commit is contained in:
binbin_pan 2024-09-06 18:43:47 +08:00
parent 6c6432e21c
commit ec77228061
2 changed files with 14 additions and 7 deletions

View File

@ -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)
}
})

View File

@ -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)"
>
<div v-if="currentIndex == item.index">*</div>