litian
2024-11-07 37a205e037614e497b00a076f5bc83520337dbea
packageBookService/pages/bookServices/detail/components/tree/index.js
@@ -176,7 +176,7 @@
      const parentName = parent ? parent.name : "教学资源";
      // 资源购买页面(只展示未购买资源) 点击不跳转
      if (this.properties.isShowCheck) return false;
      if (item.selectType == "webpage") {
      if (item.selectType == "webpage" || item.learnSelectType == "webpage") {
        // 网页类型跳转到网址复制页,因为url传参不能传 带参数的网络地址,所以此处要把网络地址里的传参摘出来,放到url里
        let urlData = ''
        const flags = item.jsek_link.indexOf("?")
@@ -194,7 +194,7 @@
          title: '暂无资源',
        })
      }
      if (item.selectType == 'zip') {
      if (item.selectType == 'zip' || item.learnSelectType == 'zip') {
        // if (this.properties.applyState == 'Normal') {
        return wx.showToast({
          icon: 'error',
@@ -251,7 +251,7 @@
      ) {
        url = "/packageDomain/pages/resourceDetails/myAudio/index";
      }
      if (item.selectType == "picture" || item.selectType == 'document' || item.selectType == 'pdf') {
      if (item.selectType == "picture" || item.selectType == 'document' || item.selectType == 'pdf' || item.learnSelectType == "picture" || item.learnSelectType == 'document' || item.learnSelectType == 'pdf') {
        url = "/packageDomain/pages/resourceDetails/document/index";
      }
      wx.navigateTo({