| | |
| | | loading: false, |
| | | openTeachids: result, |
| | | }); |
| | | const bookId = that.data.bookId |
| | | if (bookId == 6619) { |
| | | const jsonData = {} |
| | | jsonData.name = "心理测评" |
| | | jsonData.children = [...pastData.postData.list] |
| | | var test = that.data.test; |
| | | test.push(jsonData); |
| | | that.setData({ |
| | | test: test, |
| | | }); |
| | | console.log(that.data.test, "教学互动"); |
| | | } |
| | | //Json赋值 |
| | | // const bookId = that.data.bookId |
| | | // if (bookId == 6619) { |
| | | // const jsonData = {} |
| | | // jsonData.name = "心理测评" |
| | | // jsonData.children = [...pastData.postData.list] |
| | | // var test = that.data.test; |
| | | // test.push(jsonData); |
| | | // that.setData({ |
| | | // test: test, |
| | | // }); |
| | | // console.log(that.data.test, "教学互动"); |
| | | // } |
| | | |
| | | } else { |
| | | that.setData({ |