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 |   45 +++++++++++++++++++++------------------------
 1 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/src/books/aviationEtiquette/view/components/index.vue b/src/books/aviationEtiquette/view/components/index.vue
index 2d8d9eb..65f3c20 100644
--- a/src/books/aviationEtiquette/view/components/index.vue
+++ b/src/books/aviationEtiquette/view/components/index.vue
@@ -9,16 +9,22 @@
       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>
 
 <script>
+import Vue from "vue";
 import pageHeader from "./header.vue";
 import chapterOne from "./chapter001.vue";
 import chapterTwo from "./chpater002.vue";
@@ -161,20 +167,7 @@
 
     //娴嬭瘯椤甸潰璺宠浆
     // setTimeout(() => {
-    //   this.gotoPage(5, 130);
-      //   setTimeout(() => {
-      //     this.renderSign("Highlight", {
-      //       id: "2ACA9359",
-      //       txt: "棰樹竴瀛︿範涓婚涓� 杩愬姩",
-      //       page: "10",
-      //       type: "Highlight",
-      //       color: "#F5E12A"
-      //     });
-      // setTimeout(() => {
-      //   this.delSign({
-      //     ids: ["2ACA9359"]
-      //   });
-      // }, 2000);
+    //   this.gotoPage(4, 99);
     // }, 500);
 
     // const pageDom = (this.container ? this.container : document)
@@ -709,6 +702,7 @@
     searchTextByPage(keyword) {
       const searchResult = [];
       let catalogIndex = 0;
+      console.log(keyword, "keyword")
       // 鎵�鏈夌珷鑺傜粍浠讹紙姣忔湰涔﹀埗浣滄椂鍗曠嫭閰嶇疆锛�
       const pageData = {
         pageHeader,
@@ -718,6 +712,7 @@
         chapterFour,
         chapterFive
       };
+
       // 閬嶅巻鎵�鏈夌珷鑺傛枃浠�
       for (const key in pageData) {
         catalogIndex++;
@@ -736,11 +731,13 @@
             "#searchContent"
           )
         );
-        // 鑾峰彇椤电爜
+        // 鑾峰彇椤电爜 
+
         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")));
@@ -920,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