From 7eea32a9a7a034e951468bea279688e8db5c1c98 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 09 九月 2024 14:31:51 +0800
Subject: [PATCH] bug

---
 packageBookService/pages/bookServices/detail/index.js |   16 ++++++++++++----
 1 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index e8b3f6f..815a389 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -229,10 +229,8 @@
       this.setData({
         tabValue: options.tabValue,
       });
-      const checkData = this.data.cmsDatas.find(
-        (item) => item.refCode == options.tabValue
-      );
-      this.getResourceDataList(checkData)
+
+
     }
   },
 
@@ -452,6 +450,16 @@
           await this.getBookClass(classData);
         }
       }
+      if (this.data.tabValue == 'questionBank' || this.data.tabValue == 'jsek_cloudLearning' || this.data.tabValue == 'jsek_teachingResources') {
+        const checkData = this.data.cmsDatas.find(
+          (item) => item.refCode == this.data.tabValue
+        );
+        if (this.data.tabValue == "questionBank") {
+          this.getResourceData(checkData)
+        } else {
+          this.getResourceDataList(checkData)
+        }
+      }
 
       // 鑾峰彇缁勫嵎閿�鍞甶d
       if (res.datas.saleMethod && res.datas.saleMethod.length) {

--
Gitblit v1.9.1