培训 bug 修复
This commit is contained in:
parent
6c6432e21c
commit
ec77228061
|
|
@ -201,9 +201,11 @@ export default {
|
||||||
onHide() {
|
onHide() {
|
||||||
// this.screenCount++
|
// this.screenCount++
|
||||||
// console.log('🚀 ~ onHide ~ this.screenCount:', this.screenCount)
|
// console.log('🚀 ~ onHide ~ this.screenCount:', this.screenCount)
|
||||||
|
setTimeout(() => {
|
||||||
if (!this.isHide) {
|
if (!this.isHide) {
|
||||||
this.handleConfirmSubmit()
|
this.handleConfirmSubmit()
|
||||||
}
|
}
|
||||||
|
}, 500)
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.getList()
|
this.getList()
|
||||||
|
|
@ -268,11 +270,17 @@ export default {
|
||||||
changeCountDown(time) {
|
changeCountDown(time) {
|
||||||
// console.log('🚀 ~ changeCountDown ~ time:', time)
|
// console.log('🚀 ~ changeCountDown ~ time:', time)
|
||||||
// 等时间赋值后再开始计时
|
// 等时间赋值后再开始计时
|
||||||
if (this.time == 0) return
|
if (this.time == 0 && !this.isLoading) return
|
||||||
this.answerTime =
|
this.answerTime =
|
||||||
this.time - (time.days * 24 * 60 * 60 + time.hours * 60 * 60 + time.minutes * 60 + time.seconds) * 1000
|
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.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.random1)
|
||||||
console.log('🚀 ~ changeCountDown ~:', this.answerTime / 1000 == this.random2)
|
console.log('🚀 ~ changeCountDown ~:', this.answerTime / 1000 == this.random2)
|
||||||
if (this.answerTime / 1000 == this.random1) {
|
if (this.answerTime / 1000 == this.random1) {
|
||||||
|
|
@ -416,7 +424,6 @@ export default {
|
||||||
})
|
})
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
this.showConfirmModal = false
|
this.showConfirmModal = false
|
||||||
this.isLoading = false
|
|
||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -203,7 +203,7 @@
|
||||||
v-for="(item, index) in questionListSelect"
|
v-for="(item, index) in questionListSelect"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="topic-wrapper"
|
class="topic-wrapper"
|
||||||
:class="{ correct: item.isCorrect, error: item.isError }"
|
:class="{ correct: item.isTrue == 1, error: item.isTrue == 0 }"
|
||||||
@click="handleJump('jump', item.index)"
|
@click="handleJump('jump', item.index)"
|
||||||
>
|
>
|
||||||
<div v-if="currentIndex == item.index">*</div>
|
<div v-if="currentIndex == item.index">*</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue