zhongshujie
2025-02-27 04902e236ea7fa8dc82f610e335983f4bf5be9c2
src/books/meetingPlanners/view/components/index.vue
@@ -10,8 +10,8 @@
    }">
      <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList" ></pageHeader>
      <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterOne>
      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList"></chapterTwo>
      <chapterThree  v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList"></chapterThree>
      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterTwo>
      <chapterThree  v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterThree>
    </div>
  </div>
</template>
@@ -102,7 +102,6 @@
    // 默认加载章节
    this.showCatalogList = [1];
    // 滚动监听节流
    debugger
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
      this.throttleThreshold,
@@ -157,8 +156,8 @@
    }, 500);
    //测试页面跳转
    setTimeout(() => {
      this.gotoPage(2, 35);
    // setTimeout(() => {
    //   this.gotoPage(3, 96);
      //   setTimeout(() => {
      //     this.renderSign("Highlight", {
      //       id: "2ACA9359",
@@ -172,7 +171,7 @@
      //     ids: ["2ACA9359"]
      //   });
      // }, 2000);
    }, 500);
    // }, 500);
    // const pageDom = (this.container ? this.container : document)
    //   .querySelector("#app")
@@ -218,7 +217,6 @@
        ) {
          console.log(1);
          debugger
          // 到达阈值
          if (
            this.showCatalogList[this.showCatalogList.length - 1] <
@@ -532,7 +530,7 @@
      });
    },
    loadPageCallback(entries, observer) {
      console.log(entries,1234);
      // console.log(entries,1234);
      entries.forEach(async (entry) => {
        if (entry.isIntersecting) {
          const target = entry.target;