yiming
2024-05-11 3af76031f4d1bb8d808a07dff7b3e74a8b0db168
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -139,6 +139,7 @@
      if (token) {
        const item = e.currentTarget.dataset.item;
        const parent = e.currentTarget.dataset.parent;
        console.log('item', item);
        const parentProductLinkPath = parent ?
          parent.productLinkPath :
          wx.getStorageSync("teachResourcesPath");
@@ -198,7 +199,7 @@
              title: "资源不可用,请联系管理员",
            });
          }
        } else if ((this.properties.tab == "jsek_teachingResources" || this.properties.tab == "jsek_cloudLearning") && (!item.file || !item.freeFile || !item.protectedFile)) {
        } else if ((this.properties.tab == "jsek_teachingResources" || this.properties.tab == "jsek_cloudLearning") && (!item.file && !item.freeFile && !item.protectedFile)) {
          return wx.showToast({
            icon: 'error',
            title: '暂无资源',
@@ -221,9 +222,9 @@
        }
        if (item.selectType == "document") {
          // freeFile
          if (item.selectType == "document") {
            item.selectType = "pptx";
          }
          // if (item.selectType == "document") {
          //   item.selectType = "pptx";
          // }
          const fileLink = item.file ?
            app.config.requestCtx + "/file/api/ApiDownload?md5=" + item.file :
            app.config.requestCtx +