diff --git a/xietang-answer-h5/pages/answer/index.vue b/xietang-answer-h5/pages/answer/index.vue index c561e86..abb0e61 100644 --- a/xietang-answer-h5/pages/answer/index.vue +++ b/xietang-answer-h5/pages/answer/index.vue @@ -148,8 +148,9 @@ this.minutes = minutes.toString().padStart(2, '0') this.seconds = seconds.toString().padStart(2, '0') }, () => { - clearTimeout(this.timer) this.submitQue() + + }); }, onUnload() { @@ -235,7 +236,6 @@ console.log("hasFlag",this.hasFlag) }, submitQue(){ - console.log("this.myAnswer",this.myAnswer) let that = this const query = uni.createSelectorQuery().in(this); query.select('.wrap').boundingClientRect(({ height }) => { @@ -275,10 +275,8 @@ } }) - console.log("this.correctScore",this.correctScore,this.correctNum) }, nextQue(){ - console.log("进入questionIndex",this.questionIndex,this.correctNum) let that = this // this.isanswer = false if(this.isanswer){ @@ -313,12 +311,8 @@ }) this.correctAnswer = this.question_list[this.questionIndex]['correctAnswer'].join(',') - console.log("this.questionIndex",this.questionIndex,this.correctNum) - // if(this.questionIndex==9){ - // that.answerSubmit = true - // return - // } - // 判断选择的是否正确 + + // 判断选择的是否正确 加样式 this.question_list[this.questionIndex]['options'].map(item=>{ if(item.is_correct===1){ item.isanswer = true @@ -327,7 +321,7 @@ } }) this.isanswer = true - if(that.questionIndex==9){ + if(that.answerSubmit){ that.submitQue() return }