litian
2024-07-19 26f156cd7821fbebffcfbb178eb090973447df5c
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -174,6 +174,7 @@
        if (
          this.properties.tab == "jsek_cloudLearning" &&
          this.resourceIsBuy(item)
          // item.saleMethod.length > 0
        ) {
          return wx.showToast({
            icon: "error",
@@ -181,16 +182,16 @@
              "请先购买该资源" : "请先点击领取查看按钮",
          });
        }
        if (
          item.saleMethod.length == 0 &&
          item.sysType == "CmsItem" &&
          this.properties.tab == "jsek_cloudLearning"
        ) {
          return wx.showToast({
            icon: "error",
            title: "暂未开始销售,请联系管理员",
          });
        }
        // if (
        //   item.saleMethod.length == 0 &&
        //   item.sysType == "CmsItem" &&
        //   this.properties.tab == "jsek_cloudLearning"
        // ) {
        //   return wx.showToast({
        //     icon: "error",
        //     title: "暂未开始销售,请联系管理员",
        //   });
        // }
        if (this.properties.tab == "jsek_teachingResources" && (item.file || item.freeFile)) {
          let file = item.fileMap[item.file] ? item.fileMap[item.file] : item.fileMap[item.freeFile]
          if (file && file.protectType !== "Public") {
@@ -208,11 +209,8 @@
        wx.navigateTo({
          url: `${url}?productLinkPath=${item.productLinkPath}&parentProductLinkPath=${parentProductLinkPath}&parentName=${parentName}&activeId=${item.id}&bookId=${this.properties.bookInfo.id}&bookName=${this.properties.bookInfo.name}&cmsId=${this.properties.bookInfo.rootCmsItemId}&formPath=${this.properties.tab}&applyState=${this.properties.applyState}&deadline=${this.properties.deadline}`,
        });
<<<<<<< Updated upstream
=======
        // debugger
>>>>>>> Stashed changes
        if (item.selectType == "pdf" || item.selectType == "document") {
          const fileLink = item.file ? item.file : item.freeFile
          console.log(fileLink);
@@ -221,12 +219,7 @@
              fileLink +
              "&fileName=" +
              item.name +
<<<<<<< Updated upstream
              "&fileType=pdf" +
              "&bookBuy=true"
=======
              "&fileType=pdf" + "&bookBuy=true"
>>>>>>> Stashed changes
          });
        }
        // if (item.selectType == "document") {