litian
2024-03-26 10db09788d74b441a2efd85f5d4614e944b07bb3
packageBookService/pages/bookServices/detail/buyResource/index.js
@@ -148,6 +148,7 @@
                loading: false,
                openLearnids: result
              })
              console.log('教学资源', list);
            }
          } else {
            // 无数据
@@ -328,12 +329,12 @@
    for (let i = 0; i < data.length; i++) {
      if (index < 3) {
        const item = data[i]
        if (item.childrenFolderCount > 0) {
        if (item.children && item.children.length > 0) {
          result.push(item.id)
          for (let j = 0; j < item.children.length; j++) {
            if (index < 3) {
              const childrenItme = item.children[j]
              if (item.childrenCount > 0) {
              if (item.children && item.children.length > 0) {
                result.push(childrenItme.id)
                index += 1
              }
@@ -341,7 +342,7 @@
              break
            }
          }
        } else if (item.childrenCount > 0) {
        } else if (item.children && item.children.length > 0) {
          result.push(item.id)
          index += 1
        }