From ecbc81c918a288dc752b1634b3f545f795d992aa Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期三, 20 三月 2024 16:15:41 +0800
Subject: [PATCH] 图书分类,图书列表样式修改,答题器优化

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

diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js
index d948903..6b82781 100644
--- a/packageBookService/pages/bookServices/examination/examination.js
+++ b/packageBookService/pages/bookServices/examination/examination.js
@@ -282,13 +282,15 @@
       } else {
         return false
       }
-    } else {
+    } else if (typeof data == 'object') {
       const answer = data.find((item) => item.length > 0)
       if (answer) {
         return true
       } else {
         return false
       }
+    } else {
+      return false
     }
   },
   // 鎻愪氦閫昏緫
@@ -712,7 +714,7 @@
       loading: false,
     })
   },
-  // 鎵规敼棰樼洰 锛堢粌涔狅紝鎴戠殑閿欓锛屾垜鐨勬敹钘忥級
+  // 鎵规敼棰樼洰 锛堢粌涔狅紝鎴戠殑閿欓锛屾垜鐨勬敹钘�,锛岀粍鍗凤級
   handleQuestion(num) {
     const questionList = this.data.questionDataList
     const index = num - 1 >= 0 ? num - 1 : 0
@@ -1332,7 +1334,6 @@
   },
   // 鑾峰彇缁勫嵎棰樼洰鍒楄〃
   async getMockDataList(questionList, oldList) {
-    console.log(questionList, oldList);
     const questionDataList = this.data.questionDataList
     questionList.forEach(async (pathitem, pathindex) => {
       let itemIds = []
@@ -1451,7 +1452,6 @@
           })
           let questionList = []
           const cardUpdatedList = this.data.cardList
-          // if (flag == this.data.idPathList.length) {
           cardUpdatedList.forEach(aitem => {
             aitem.infoList.forEach((bitem, bindex) => {
               questionList.push(bitem)
@@ -1462,6 +1462,7 @@
             questionDataList: questionList,
             cardList: cardUpdatedList
           })
+          console.log('缁勫嵎棰樼洰鍒楄〃', this.data.questionDataList);
         })
       })
     })

--
Gitblit v1.9.1