| | |
| | | v-if="showCatalogList.indexOf(1) > -1" |
| | | :showPageList="loadPageList" |
| | | /> |
| | | <!-- <ChapterOne |
| | | <ChapterOne |
| | | v-if="showCatalogList.indexOf(2) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | /> --> |
| | | <!-- <ChapterTwo |
| | | /> |
| | | <ChapterTwo |
| | | v-if="showCatalogList.indexOf(3) > -1" |
| | | :showPageList="loadPageList" |
| | | :questionData="questionData" |
| | | /> --> |
| | | @eventPublic="swdtChange" |
| | | /> |
| | | <!-- <ChapterThree |
| | | v-if="showCatalogList.indexOf(4) > -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/chapter003"; |
| | | // import ChapterFour from "./view/chapter004"; |
| | | // import ChapterFive from "./view/chapter005"; |
| | |
| | | }, |
| | | mounted() { |
| | | // 默认加载章节 |
| | | this.showCatalogList = [1]; |
| | | this.showCatalogList = [2]; |
| | | // 滚动监听节流 |
| | | 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.text, |
| | | }); |
| | | } |
| | | }, |
| | | }, |
| | | components: { |
| | | front001, |
| | | // ChapterOne, |
| | | // ChapterTwo, |
| | | ChapterOne, |
| | | ChapterTwo, |
| | | // ChapterThree, |
| | | // ChapterFour, |
| | | // ChapterFive, |