闫增涛
2024-03-29 608eefe5fb03d2f3d3145b11d7de573434451e76
packageBookService/pages/bookServices/examination/examination.js
@@ -277,8 +277,7 @@
        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)
        }
      }
    }
@@ -824,9 +823,8 @@
    })
  },
  // 批改题目 (练习,我的错题,我的收藏,,组卷)
  handleQuestion(num) {
  handleQuestion(index) {
    const questionList = this.data.questionDataList
    const index = num
    if (questionList[index].isComplete) {
      // 题目已完成,跳过
      return true