闫增涛
2025-03-31 04c7b0163caeae4ab1c5da62e301fa993101cfad
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -227,7 +227,7 @@
          let buyList = []
          if (learn.length) buyList = learn.filter((item) => this.properties.buyIds.includes(item.saleMethod.find((citem) => citem.SaleType == 'Normal').Id))
          // 有父级(包含销售方式),且未购买
          if (learn.length && !buyList.length) return wx.showToast({
          if (learn.length && !buyList.length && !item.freeFile) return wx.showToast({
            icon: 'error',
            title: '请先购买该资源',
          })
@@ -261,12 +261,11 @@
      const token = wx.getStorageSync(app.config.tokenKey);
      if (!token && this.data.tab != 'jsek_teachingResources') {
        loginInfo(app, (data) => {
          if (data) goPlayerFun()
          if (data) {}
        })
      } else {
        goPlayerFun()
      }
    },
    // 拿到所有项