litian
2024-07-19 26f156cd7821fbebffcfbb178eb090973447df5c
zylq
1个文件已修改
1个文件已添加
23 ■■■■ 已修改文件
packageBookService/pages/bookServices/detail/components/tree/index.js 23 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
static/JDLANGZHENGTI.TTF 补丁 | 查看 | 原始文档 | blame | 历史
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -122,16 +122,15 @@
    },
    // 判断资源是否购买
    resourceIsBuy(data) {
      return true
      // if (data.saleMethod && data.saleMethod.length) {
      //   if (data.saleMethod[0].State == "Disable") return false;
      //   const isSHow = this.properties.buyIds.some(
      //     (item) => item == data.saleMethod[0].Id
      //   );
      //   return !isSHow;
      // } else {
      //   return false;
      // }
      if (data.saleMethod && data.saleMethod.length) {
        if (data.saleMethod[0].State == "Disable") return false;
        const isSHow = this.properties.buyIds.some(
          (item) => item == data.saleMethod[0].Id
        );
        return !isSHow;
      } else {
        return false;
      }
    },
    // 跳转音视频播放器
    goPlayer(e) {
@@ -174,8 +173,8 @@
        }
        if (
          this.properties.tab == "jsek_cloudLearning" &&
          // this.resourceIsBuy(item)
          item.saleMethod.length > 0
          this.resourceIsBuy(item)
          // item.saleMethod.length > 0
        ) {
          return wx.showToast({
            icon: "error",
static/JDLANGZHENGTI.TTF
Binary files differ