From af2e38d1d72633d03afdb6e75f8d30b7ef0d0aee Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 29 七月 2024 15:24:30 +0800
Subject: [PATCH] 图书详情页添加对云学习目录整体购买的判断

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

diff --git a/packageBookService/pages/bookServices/detail/buyResource/index.js b/packageBookService/pages/bookServices/detail/buyResource/index.js
index 6cdc969..4b9e9b3 100644
--- a/packageBookService/pages/bookServices/detail/buyResource/index.js
+++ b/packageBookService/pages/bookServices/detail/buyResource/index.js
@@ -20,7 +20,8 @@
     productLinkPath: '',
     refCode: '',
     haider: false,
-    naData: false
+    naData: false,
+    bookRefCode: []
   },
 
   /**
@@ -526,12 +527,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() {
@@ -638,6 +661,7 @@
       this.setData({
         resourceClassList: JSON.parse(res[0].config).option,
       });
+
     });
   },
   checkAll() {

--
Gitblit v1.9.1