From b1ee986edd5ea1c55186b795bf4b54215e4e9331 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 25 四月 2025 11:09:07 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/aviationSafety/view/components/index.vue |   19 ++++++++++++++-----
 1 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/src/books/aviationSafety/view/components/index.vue b/src/books/aviationSafety/view/components/index.vue
index aff5a0d..b646fac 100644
--- a/src/books/aviationSafety/view/components/index.vue
+++ b/src/books/aviationSafety/view/components/index.vue
@@ -16,11 +16,13 @@
         <chapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"></chapterFive> 
         <chapterSix v-if="showCatalogList.indexOf(7) > -1" :showPageList="loadPageList"></chapterSix>
         <chapterSeven v-if="showCatalogList.indexOf(8) > -1" :showPageList="loadPageList"></chapterSeven>
+        <chapterEight v-if="showCatalogList.indexOf(9) > -1" :showPageList="loadPageList"></chapterEight>
       </div>
     </div>
   </template>
   
   <script>
+  import Vue from "vue";
   import pageHeader from "./header.vue";
   import chapterOne from "./chapter001.vue";
   import chapterTwo from "./chapter002.vue";
@@ -29,6 +31,7 @@
   import chapterFive from "./chapter005.vue";
   import chapterSix from "./chapter006.vue";
   import chapterSeven from "./chapter007.vue";
+  import chapterEight from "./chapter008.vue";
   import NoteIcon from "@/assets/images/biji.png";
   import _ from "lodash";
   import Swiper from "swiper/bundle";
@@ -39,7 +42,7 @@
     name: "pageContent",
     data() {
       return {
-        catalogLength: 8, // 鎬荤珷鑺傛暟
+        catalogLength: 9, // 鎬荤珷鑺傛暟
         showCatalogList: [], // 鏄剧ず鐨勭珷鑺�
         loadThreshold: 300, // 瑙﹀彂鍔犺浇闃堝��
         throttleThreshold: 100, // 鑺傛祦闃堝��
@@ -162,8 +165,8 @@
       }, 500);
   
       // 娴嬭瘯椤甸潰璺宠浆
-      setTimeout(() => {
-        this.gotoPage(7, 127);
+      // setTimeout(() => {
+      //   this.gotoPage(3,22);
       //   setTimeout(() => {
       //     this.renderSign("Highlight", {
       //       id: "2ACA9359",
@@ -177,7 +180,7 @@
       //     ids: ["2ACA9359"]
       //   });
       // }, 2000);
-      }, 500);
+      // }, 500);
   
       // const pageDom = (this.container ? this.container : document)
       //   .querySelector("#app")
@@ -722,6 +725,7 @@
           chapterFive,
           chapterSix,
           chapterSeven,
+          chapterEight
         };
         // 閬嶅巻鎵�鏈夌珷鑺傛枃浠�
         for (const key in pageData) {
@@ -924,7 +928,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");
+          }
           }
         }
       },
@@ -950,6 +958,7 @@
       chapterFive,
       chapterSix,
       chapterSeven,
+      chapterEight
     },
   };
   </script>

--
Gitblit v1.9.1