From 1695fcd442fe2cefb6d3b63869ad8a72ebd5210a Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期五, 04 七月 2025 23:57:18 +0800
Subject: [PATCH] 测试图书 7.4

---
 src/books/aviationEtiquette/view/components/index.vue |   46 +++++++++++++++++++---------------------------
 1 files changed, 19 insertions(+), 27 deletions(-)

diff --git a/src/books/aviationEtiquette/view/components/index.vue b/src/books/aviationEtiquette/view/components/index.vue
index 4497d44..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>
@@ -162,20 +167,7 @@
 
     //娴嬭瘯椤甸潰璺宠浆
     // setTimeout(() => {
-    //   this.gotoPage(4, 116);
-      //   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)
@@ -710,7 +702,7 @@
     searchTextByPage(keyword) {
       const searchResult = [];
       let catalogIndex = 0;
-      console.log(keyword,"keyword")
+      console.log(keyword, "keyword")
       // 鎵�鏈夌珷鑺傜粍浠讹紙姣忔湰涔﹀埗浣滄椂鍗曠嫭閰嶇疆锛�
       const pageData = {
         pageHeader,
@@ -720,7 +712,7 @@
         chapterFour,
         chapterFive
       };
-      
+
       // 閬嶅巻鎵�鏈夌珷鑺傛枃浠�
       for (const key in pageData) {
         catalogIndex++;
@@ -740,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")));
@@ -925,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