闫增涛
2024-06-03 f0c584b7a453a86a51fcdf356ec8ead98c4e46c8
src/books/sportsAndHealth/index.vue
@@ -13,16 +13,17 @@
        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"
@@ -47,7 +48,7 @@
        v-if="showCatalogList.indexOf(8) > -1"
        :showPageList="loadPageList"
        :questionData="questionData"
        @eventSwdt="swdtChange"
        @eventPublic="swdtChange"
      /> -->
      <!-- <chapterEight
        v-if="showCatalogList.indexOf(9) > -1"
@@ -101,8 +102,8 @@
<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";
@@ -186,7 +187,7 @@
  },
  mounted() {
    // 默认加载章节
    this.showCatalogList = [1];
    this.showCatalogList = [2];
    // 滚动监听节流
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
@@ -701,6 +702,9 @@
      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, // 显示标题
@@ -761,15 +765,16 @@
    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,