From cac88b3bf823fedf18f0faa4ec96c3de224f30c0 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 15 七月 2024 15:23:12 +0800
Subject: [PATCH] video

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

diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js
index a8121dc..7e2f406 100644
--- a/packageBookService/pages/bookServices/examination/examination.js
+++ b/packageBookService/pages/bookServices/examination/examination.js
@@ -820,7 +820,7 @@
       let query = {
         path: "*",
         queryType: "*",
-        storeInfo: this.data.storeInfo,
+
         productId: this.data.bookId,
         cmsPath: pathitem.productLinkPath,
         itemFields: {
@@ -840,6 +840,9 @@
           size: 999,
         },
       };
+      if (this.data.storeInfo) {
+        query.storeInfo = this.data.storeInfo
+      }
       await app.MG.store.getProductDetail(query).then((res) => {
         this.setData({
           total: res.datas.cmsDatas[0].datas.length,
@@ -1040,6 +1043,9 @@
             questionDataList: questionList,
             cardList: cardUpdatedList,
           });
+          console.log(
+            '棰樼洰', this.data.questionDataList
+          );
         });
       });
     }
@@ -1355,7 +1361,6 @@
     for (let qindex = 0; qindex < this.data.collectList.length; qindex++) {
       const qitem = this.data.collectList[qindex];
       let query = {
-        storeInfo: this.data.storeInfo,
         path: "*",
         cmsPath: this.data.rootCmsItemId,
         cmsType: "*",
@@ -1374,6 +1379,9 @@
           Embedded_QuestionBank_Difficulty: [],
         },
       };
+      if (this.data.storeInfo) {
+        query.storeInfo = this.data.storeInfo
+      }
       await app.MG.store.getProductDetail(query).then((res) => {
         let questionArr = [];
         res.datas.cmsDatas[0].datas.forEach((item, index) => {
@@ -1603,7 +1611,6 @@
     let multipleChoiceArr = []; // 澶氶��
     let completionArr = []; // 濉┖
     let query = {
-      storeInfo: this.data.storeInfo,
       path: "*",
       cmsPath: this.data.rootCmsItemId,
       cmsType: "*",
@@ -1622,6 +1629,9 @@
         Embedded_QuestionBank_Difficulty: [],
       },
     };
+    if (this.data.storeInfo) {
+      query.storeInfo = this.data.storeInfo
+    }
     await app.MG.store.getProductDetail(query).then((res) => {
       let questionArr = [];
       res.datas.cmsDatas[0].datas.forEach((item, index) => {
@@ -1889,7 +1899,6 @@
         itemIds.push(item.id + "");
       });
       let query = {
-        storeInfo: this.data.storeInfo,
         path: "*",
         cmsPath: this.data.rootCmsItemId,
         cmsType: "*",
@@ -1908,6 +1917,9 @@
           Embedded_QuestionBank_Difficulty: [],
         },
       };
+      if (this.data.storeInfo) {
+        query.storeInfo = this.data.storeInfo
+      }
       await app.MG.store.getProductDetail(query).then((res) => {
         res.datas.cmsDatas[0].datas.forEach((item, index) => {
           // 寰幆questionList,缁欐瘡棰樿祴鍊煎垎鏁�

--
Gitblit v1.9.1