| | |
| | | |
| | | // 测试页面跳转 |
| | | // setTimeout(() => { |
| | | // this.gotoPage(3,51); |
| | | // this.gotoPage(2,22); |
| | | // // setTimeout(() => { |
| | | // // this.renderSign("Highlight", { |
| | | // // id: "2ACA9359", |
| | |
| | | }); |
| | | }, |
| | | getParentWithClass(element, className) { |
| | | console.log(element, className, "element, className"); |
| | | while (element.parentElement) { |
| | | element = element.parentElement; |
| | | if (element.classList.contains(className)) { |
| | |
| | | this.questionDataMap[page] = obj; |
| | | } |
| | | } |
| | | console.log(1, this.questionDataMap); |
| | | } |
| | | } |
| | | // 渲染这一页的标记 |
| | |
| | | if (!res.data) return []; |
| | | this.questionList = res.data.data; |
| | | this.questionDataIndex = res.data.chapterNum; |
| | | console.log("章节号", num, res); |
| | | } |
| | | let ids = []; |
| | | questionIndex |