From 606018855ad2d5ad55f527b76e9652fdb58ed982 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 09 九月 2024 19:50:05 +0800
Subject: [PATCH] bug

---
 packageBookService/pages/bookServices/detail/buyResource/index.js |   36 +++++++++++++++++++++++++++---------
 1 files changed, 27 insertions(+), 9 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.js b/packageBookService/pages/bookServices/detail/buyResource/index.js
index 8986936..a41289b 100644
--- a/packageBookService/pages/bookServices/detail/buyResource/index.js
+++ b/packageBookService/pages/bookServices/detail/buyResource/index.js
@@ -19,8 +19,8 @@
     checkAllState: true,
     productLinkPath: '',
     refCode: '',
-    haider: false,
-    naData: false
+    naData: false,
+    bookRefCode: []
   },
 
   /**
@@ -234,6 +234,7 @@
       itemFields: {
         SysType: 'CmsFolder',
         // 璧勬簮绫诲瀷锛岃瘯璇绘枃浠讹紝鏄惁鍏佽涓嬭浇绛夊弬鏁�
+        learnSelectType: [],
         selectType: [],
         freeFile: [],
         file: [],
@@ -254,7 +255,6 @@
         return this.setData({
           noResources: true,
           loading: false,
-          haider: true,
         });
       }
       let list = []
@@ -317,7 +317,6 @@
             learn: list,
             loading: false,
             openLearnids: result,
-            haider: true,
           });
         }
       }
@@ -359,7 +358,6 @@
           return this.setData({
             noResources: true,
             loading: false,
-            haider: true,
           });
         }
         //鏁欏璧勬簮 浜戝涔�
@@ -376,7 +374,6 @@
               this.setData({
                 teach: list,
                 loading: false,
-                haider: true
               });
               this.findChildIds(this.data.teach, (this.data.openTeachids = []));
             } else if (type.refCode == "jsek_cloudLearning") {
@@ -389,7 +386,6 @@
                 learn: list,
                 loading: false,
                 openLearnids: result,
-                haider: true
               });
             }
             console.log(list, '浜戝缈�');
@@ -401,7 +397,6 @@
           this.setData({
             test: res.datas.cmsDatas[0].datas,
             loading: false,
-            haider: true
           });
         } else {
           console.log("鍏朵粬");
@@ -525,12 +520,34 @@
       //   productLinkPath: this.data.productLinkPath,
       //   refCode: this.data.refCode,
       // });
+      // this.getResourceCode(
+      //   res.datas.id,
+      //   res.datas.rootCmsItemId
+      // )
       this.getResourceDataList({
         productLinkPath: this.data.productLinkPath,
         refCode: this.data.refCode,
       })
     });
 
+  },
+  getResourceCode(bookId, cmsId) {
+    let query = {
+      path: '*',
+      queryType: '*',
+      productId: bookId,
+      cmsPath: cmsId,
+      itemFields: {
+        SysType: 'Cms'
+      },
+      pading: {
+        start: 99,
+        size: 0
+      }
+    }
+    app.MG.store.getProductDetail(query).then(res => {
+      console.log('鍥句功璧勬簮', res.datas.cmsDatas[0].datas);
+    })
   },
   // 鑾峰彇宸茶喘涔板晢鍝�
   getShoppingCartProductGet() {
@@ -571,7 +588,7 @@
       if (isSHow) {
         return false;
       } else {
-        return data.saleMethod[0].price > 0 ? true : false;
+        return data.saleMethod[0].Price > 0 ? true : false;
       }
       return !isSHow;
     } else {
@@ -637,6 +654,7 @@
       this.setData({
         resourceClassList: JSON.parse(res[0].config).option,
       });
+
     });
   },
   checkAll() {

--
Gitblit v1.9.1