zhongshujie
2025-01-23 d7311d7a5dc477ff3baf09ef3a01aaa8b3d353a0
src/books/aviationSafety/view/components/index.vue
@@ -110,7 +110,6 @@
      // 默认加载章节
      this.showCatalogList = [1];
      // 滚动监听节流
      // debugger
      this.throttledScrollHandler = _.throttle(
        this.scrollFun,
        this.throttleThreshold,
@@ -165,8 +164,8 @@
      }, 500);
  
      // 测试页面跳转
      setTimeout(() => {
        this.gotoPage(9,130);
      // setTimeout(() => {
      //   this.gotoPage(3,22);
      //   setTimeout(() => {
      //     this.renderSign("Highlight", {
      //       id: "2ACA9359",
@@ -180,7 +179,7 @@
      //     ids: ["2ACA9359"]
      //   });
      // }, 2000);
      }, 500);
      // }, 500);
  
      // const pageDom = (this.container ? this.container : document)
      //   .querySelector("#app")
@@ -226,7 +225,6 @@
          ) {
            console.log(1);
  
            // debugger
            // 到达阈值
            if (
              this.showCatalogList[this.showCatalogList.length - 1] <
@@ -929,7 +927,11 @@
          const bottomGap = playVudio.getBoundingClientRect().bottom;
          const topGap = playVudio.getBoundingClientRect().top;
          if (bottomGap < 0 || topGap > window.innerHeight) {
            playVudio.requestPictureInPicture();
            try {
            if(playVudio.readyState) playVudio.requestPictureInPicture();
          } catch (error) {
              console.log(error,"小窗错误error");
          }
          }
        }
      },