| | |
| | | v-if="showCatalogList.indexOf(2) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | :isSearch="isSearch" |
| | | /> |
| | | <ChapterTwo |
| | | v-if="showCatalogList.indexOf(3) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | @eventPublic="swdtChange" |
| | | :isSearch="isSearch" |
| | | /> |
| | | <!-- <ChapterThree |
| | | <ChapterThree |
| | | v-if="showCatalogList.indexOf(4) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | /> --> |
| | | <!-- <ChapterFour |
| | | :isSearch="isSearch" |
| | | /> |
| | | <ChapterFour |
| | | v-if="showCatalogList.indexOf(5) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | /> --> |
| | | :isSearch="isSearch" |
| | | /> |
| | | <!-- <ChapterFive |
| | | v-if="showCatalogList.indexOf(6) > -1" |
| | | :showPageList="loadPageList" |
| | |
| | | import front001 from "./view/front001"; |
| | | import ChapterOne from "./view/chapter001"; |
| | | import ChapterTwo from "./view/chapter002"; |
| | | import ChapterThree from "./view/testDynaicTable"; |
| | | import ChapterFour from "./view/testPp"; |
| | | // import ChapterThree from "./view/chapter003"; |
| | | // import ChapterFour from "./view/chapter004"; |
| | | // import ChapterFive from "./view/chapter005"; |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | catalogLength: 19, // 总章节数 |
| | | catalogLength: 5, // 总章节数 |
| | | showCatalogList: [], // 显示的章节 |
| | | loadThreshold: 300, // 触发加载阈值 |
| | | throttleThreshold: 100, // 节流阈值 |
| | |
| | | loadPageList: [], |
| | | questionData: {}, |
| | | renderSignMap: {}, |
| | | isSearch: false, |
| | | }; |
| | | }, |
| | | computed: { |
| | |
| | | }, |
| | | mounted() { |
| | | // 默认加载章节 |
| | | this.showCatalogList = [2]; |
| | | this.showCatalogList = [5]; |
| | | // 滚动监听节流 |
| | | this.throttledScrollHandler = _.throttle( |
| | | this.scrollFun, |
| | |
| | | if (this.$store.state.qiankun && this.$store.state.qiankun.chooseWords) { |
| | | this.$store.state.qiankun.chooseWords({ |
| | | type: data.type, |
| | | data: data.text, |
| | | data: data.data, |
| | | }); |
| | | } |
| | | }, |
| | |
| | | front001, |
| | | ChapterOne, |
| | | ChapterTwo, |
| | | // ChapterThree, |
| | | // ChapterFour, |
| | | ChapterThree, |
| | | ChapterFour, |
| | | // ChapterFive, |
| | | // chapterSix, |
| | | // chapterSeven, |