From 608eefe5fb03d2f3d3145b11d7de573434451e76 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 29 三月 2024 19:42:58 +0800
Subject: [PATCH] 详情页bug修改

---
 packageBookService/pages/bookServices/examination/examination.js |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js
index 196a0ce..fc94dce 100644
--- a/packageBookService/pages/bookServices/examination/examination.js
+++ b/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

--
Gitblit v1.9.1