unknown
2024-06-03 aed84ce590fe490ed173ec887f0f8b173c9174f0
src/books/sportsAndHealth/index.vue
@@ -13,16 +13,16 @@
        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"
      /> -->
      />
      <!-- <ChapterThree
        v-if="showCatalogList.indexOf(4) > -1"
        :showPageList="loadPageList"
@@ -101,8 +101,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";
@@ -130,7 +130,7 @@
export default {
  data() {
    return {
      catalogLength: 19, // 总章节数
      catalogLength: 15, // 总章节数
      showCatalogList: [], // 显示的章节
      loadThreshold: 300, // 触发加载阈值
      throttleThreshold: 100, // 节流阈值
@@ -186,7 +186,7 @@
  },
  mounted() {
    // 默认加载章节
    this.showCatalogList = [1];
    this.showCatalogList = [2];
    // 滚动监听节流
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
@@ -768,8 +768,8 @@
  },
  components: {
    front001,
    // ChapterOne,
    // ChapterTwo,
    ChapterOne,
    ChapterTwo,
    // ChapterThree,
    // ChapterFour,
    // ChapterFive,