From bb584963c6abe77c5577cbcad3c9956b69444ae9 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期二, 01 七月 2025 17:17:30 +0800
Subject: [PATCH] 无人机样章

---
 src/books/aviationEtiquette/view/components/index.vue |   37 +++++++++++++++++++++----------------
 1 files changed, 21 insertions(+), 16 deletions(-)

diff --git a/src/books/aviationEtiquette/view/components/index.vue b/src/books/aviationEtiquette/view/components/index.vue
index 4393dea..65f3c20 100644
--- a/src/books/aviationEtiquette/view/components/index.vue
+++ b/src/books/aviationEtiquette/view/components/index.vue
@@ -9,11 +9,16 @@
       transformOrigin: 'center top',
     }">
       <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" :interfaceQuestion="questionDataMap"></chapterTwo>
-      <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterThree>
-      <chapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"></chapterFour>
-      <chapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList" :interfaceQuestion="questionDataMap"> </chapterFive>
+      <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList"
+        :interfaceQuestion="questionDataMap"></chapterOne>
+      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList"
+        :interfaceQuestion="questionDataMap"></chapterTwo>
+      <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList"
+        :interfaceQuestion="questionDataMap"></chapterThree>
+      <chapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList"
+        :interfaceQuestion="questionDataMap"></chapterFour>
+      <chapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"
+        :interfaceQuestion="questionDataMap"> </chapterFive>
     </div>
   </div>
 </template>
@@ -161,9 +166,9 @@
     }, 500);
 
     //娴嬭瘯椤甸潰璺宠浆
-    setTimeout(() => {
-      this.gotoPage(3, 64);
-    }, 500);
+    // setTimeout(() => {
+    //   this.gotoPage(4, 99);
+    // }, 500);
 
     // const pageDom = (this.container ? this.container : document)
     //   .querySelector("#app")
@@ -697,7 +702,7 @@
     searchTextByPage(keyword) {
       const searchResult = [];
       let catalogIndex = 0;
-      console.log(keyword,"keyword")
+      console.log(keyword, "keyword")
       // 鎵�鏈夌珷鑺傜粍浠讹紙姣忔湰涔﹀埗浣滄椂鍗曠嫭閰嶇疆锛�
       const pageData = {
         pageHeader,
@@ -707,7 +712,7 @@
         chapterFour,
         chapterFive
       };
-      
+
       // 閬嶅巻鎵�鏈夌珷鑺傛枃浠�
       for (const key in pageData) {
         catalogIndex++;
@@ -727,12 +732,12 @@
           )
         );
         // 鑾峰彇椤电爜 
-       
+
         const pageDom = (this.container ? this.container : document)
           .querySelector("#searchDomBox")
           .querySelectorAll(".page-box");
         const pages = [];
-       
+
         for (let i = 0; i < pageDom.length; i++) {
           const pageDomItem = pageDom[i];
           pages.push(Number(pageDomItem.getAttribute("page")));
@@ -912,11 +917,11 @@
         const topGap = playVudio.getBoundingClientRect().top;
         if (bottomGap < 0 || topGap > window.innerHeight) {
           try {
-            if (playVudio.readyState){
-              setTimeout(()=>{
+            if (playVudio.readyState) {
+              setTimeout(() => {
                 playVudio.requestPictureInPicture();
-              },0)
-            } 
+              }, 0)
+            }
           } catch (error) {
             console.log(error, "灏忕獥閿欒error");
           }

--
Gitblit v1.9.1