闫增涛
2024-07-29 af2e38d1d72633d03afdb6e75f8d30b7ef0d0aee
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() {