闫增涛
2024-03-25 8f9242a0cfc60fa3718c93123282fcb2b8dbf7fa
packageBookService/pages/bookServices/detail/index.js
@@ -589,22 +589,26 @@
              item.checked = false
            })
            const list = await this.getAllResource(res.datas.cmsDatas[0].datas)
            let result = []
            if (type.refCode == 'jsek_teachingResources') {
              this.findChildIds(list, result)
              this.setData({
                teach: list,
                loading: false
                loading: false,
                openTeachids: result
              })
              this.findChildIds(this.data.teach, this.data.openTeachids = [])
              console.log('教学资源', this.data.teach);
            } else if (type.refCode == 'jsek_cloudLearning') {
              res.datas.cmsDatas[0].datas.forEach(item => {
                item.checked = false
              })
              const list = await this.getAllResource(res.datas.cmsDatas[0].datas)
              // res.datas.cmsDatas[0].datas.forEach(item => {
              //   item.checked = false
              // })
              // const list = await this.getAllResource(res.datas.cmsDatas[0].datas)
              this.findChildIds(list, result)
              this.setData({
                learn: list,
                loading: false
                loading: false,
                openLearnids: result
              })
              this.findChildIds(this.data.learn, this.data.openLearnids = [])
            }
          } else {
            // 无数据
@@ -654,7 +658,8 @@
        isDownload: [],
        jsek_resourceBrief: [],
        jsek_link: [],
        accessType: []
        accessType: [],
        learnSelectType: []
      },
      pading: {
        start: 0,