| | |
| | | item.userAnswer = radioChecked |
| | | item.isUserAnswer = this.isHaveAnswer(radioChecked) |
| | | if ((item.questionType == 'singleChoice' || item.questionType == 'judge') && (this.data.answerType == 'collectQuestion' || this.data.answerType == 'errorQuestion') && !item.isComplete) { |
| | | let index = this.data.currentIndex - 1 >= 0 ? this.data.currentIndex - 1 : 0 |
| | | this.handleQuestion(index) |
| | | this.handleQuestion(this.data.currentIndex) |
| | | } |
| | | } |
| | | } |
| | |
| | | }) |
| | | }, |
| | | // 批改题目 (练习,我的错题,我的收藏,,组卷) |
| | | handleQuestion(num) { |
| | | handleQuestion(index) { |
| | | const questionList = this.data.questionDataList |
| | | const index = num |
| | | if (questionList[index].isComplete) { |
| | | // 题目已完成,跳过 |
| | | return true |