闫增涛
2024-10-22 7715ae3606bb01c0e9f08f40e83bfed0d983c6a3
src/books/civilAviation/view/components/index.vue
@@ -94,6 +94,7 @@
    // 默认加载章节
    this.showCatalogList = [1];
    // 滚动监听节流
    debugger
    this.throttledScrollHandler = _.throttle(
      this.scrollFun,
      this.throttleThreshold,
@@ -198,6 +199,8 @@
    scrollFun(event) {
      this.handleVideoPicture()
      // 判断向上滚动还是向下滚动
      console.log(11);
      if (event.target.scrollTop > this.previousScrollTop) {
        this.getAduio();
        // 向下
@@ -207,6 +210,9 @@
          currentScrollTop >=
          event.target.scrollHeight - this.loadThreshold
        ) {
          console.log(1);
          debugger
          // 到达阈值
          if (
            this.showCatalogList[this.showCatalogList.length - 1] <