| | |
| | | v-if="showCatalogList.indexOf(1) > -1" |
| | | :showPageList="loadPageList" |
| | | /> |
| | | <!-- <ChapterOne |
| | | <ChapterOne |
| | | v-if="showCatalogList.indexOf(2) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | /> --> |
| | | <!-- <ChapterTwo |
| | | :isSearch="isSearch" |
| | | /> |
| | | <ChapterTwo |
| | | v-if="showCatalogList.indexOf(3) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | /> --> |
| | | <!-- <ChapterThree |
| | | @eventPublic="swdtChange" |
| | | :isSearch="isSearch" |
| | | /> |
| | | <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" |
| | |
| | | v-if="showCatalogList.indexOf(8) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | @eventSwdt="swdtChange" |
| | | @eventPublic="swdtChange" |
| | | /> --> |
| | | <!-- <chapterEight |
| | | v-if="showCatalogList.indexOf(9) > -1" |
| | |
| | | |
| | | <script> |
| | | import front001 from "./view/front001"; |
| | | // import ChapterOne from "./view/chapter001"; |
| | | // import ChapterTwo from "./view/chapter002"; |
| | | 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 = [1]; |
| | | this.showCatalogList = [5]; |
| | | // 滚动监听节流 |
| | | this.throttledScrollHandler = _.throttle( |
| | | this.scrollFun, |
| | |
| | | for (let i = 0; i < doms.length; i++) { |
| | | const dom = doms[i]; |
| | | new Viewer(dom, { |
| | | container: this.container |
| | | ? this.container.querySelector("#app") |
| | | : "body", |
| | | navbar: true, // 显示导航栏 |
| | | toolbar: true, // 显示工具栏 |
| | | title: true, // 显示标题 |
| | |
| | | swdtChange(data) { |
| | | if (this.$store.state.qiankun && this.$store.state.qiankun.chooseWords) { |
| | | this.$store.state.qiankun.chooseWords({ |
| | | type: data, |
| | | type: data.type, |
| | | data: data.data, |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | components: { |
| | | front001, |
| | | // ChapterOne, |
| | | // ChapterTwo, |
| | | // ChapterThree, |
| | | // ChapterFour, |
| | | ChapterOne, |
| | | ChapterTwo, |
| | | ChapterThree, |
| | | ChapterFour, |
| | | // ChapterFive, |
| | | // chapterSix, |
| | | // chapterSeven, |