zhongshujie
2025-02-14 a64ed910c7ed920b216d9420c67c12bcd3f02c6f
src/books/childcareInstitutionsManagement/view/components/index.vue
@@ -10,10 +10,9 @@
    }">
      <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader>
      <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList"></chapterOne>
      <!-- <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList"></chapterTwo>
      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList"></chapterTwo>
      <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList"></chapterThree>
      <chapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList"></chapterFour>
      <chapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"> </chapterFive> -->
    </div>
  </div>
</template>
@@ -21,10 +20,9 @@
<script>
import pageHeader from "./header.vue";
import chapterOne from "./chapter001.vue";
// import chapterTwo from "./chpater002.vue";
// import chapterThree from "./chapter003.vue";
// import chapterFour from "./chapter004.vue";
// import chapterFive from "./chapter005.vue";
import chapterTwo from "./chapter002.vue";
import chapterThree from "./chapter003.vue";
import chapterFour from "./chapter004.vue";
import NoteIcon from "@/assets/images/biji.png";
import _ from "lodash";
import Swiper from "swiper/bundle";
@@ -35,7 +33,7 @@
  name: "pageContent",
  data() {
    return {
      catalogLength: 6, // 总章节数
      catalogLength: 5, // 总章节数
      showCatalogList: [], // 显示的章节
      loadThreshold: 300, // 触发加载阈值
      throttleThreshold: 100, // 节流阈值
@@ -158,8 +156,8 @@
    }, 500);
    // 测试页面跳转
    // setTimeout(() => {
      // this.gotoPage(2, 9);
    setTimeout(() => {
      this.gotoPage(3, 43);
      //   setTimeout(() => {
      //     this.renderSign("Highlight", {
      //       id: "2ACA9359",
@@ -173,7 +171,7 @@
      //     ids: ["2ACA9359"]
      //   });
      // }, 2000);
    // }, 500);
    }, 500);
    // const pageDom = (this.container ? this.container : document)
    //   .querySelector("#app")
@@ -713,8 +711,7 @@
        chapterOne,
        chapterTwo,
        chapterThree,
        chapterFour,
        chapterFive
        chapterFour
      };
      // 遍历所有章节文件
      for (const key in pageData) {
@@ -941,10 +938,9 @@
  components: {
    pageHeader,
    chapterOne,
    // chapterTwo,
    // chapterThree,
    // chapterFour,
    // chapterFive
    chapterTwo,
    chapterThree,
    chapterFour
  },
};
</script>