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: '请先购买该资源', }) @@ -266,7 +266,6 @@ } else { goPlayerFun() } }, // 拿到所有项