From 781876372311fa27266a223062b460ac09e93a40 Mon Sep 17 00:00:00 2001
From: YM <479443481@qq.com>
Date: 星期五, 31 五月 2024 14:27:28 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/lifeCare/index.vue |   60 ++++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 36 insertions(+), 24 deletions(-)

diff --git a/src/books/lifeCare/index.vue b/src/books/lifeCare/index.vue
index 4dd6659..531847a 100644
--- a/src/books/lifeCare/index.vue
+++ b/src/books/lifeCare/index.vue
@@ -47,6 +47,7 @@
         v-if="showCatalogList.indexOf(8) > -1"
         :showPageList="loadPageList"
         :questionData="questionData"
+        @eventSwdt="swdtChange"
       />
       <chapterEight
         v-if="showCatalogList.indexOf(9) > -1"
@@ -122,6 +123,10 @@
 import _ from "lodash";
 import getQuestionList from "@/assets/methods/examination";
 import testData from "./js/examinationList";
+import Swiper from "swiper/bundle";
+import "swiper/swiper-bundle.css";
+import Viewer from "viewerjs";
+import "viewerjs/dist/viewer.css";
 export default {
   data() {
     return {
@@ -135,7 +140,7 @@
       loadPageObserver: null,
       loadPageList: [],
       questionData: {},
-      renderSignMap: {}
+      renderSignMap: {},
     };
   },
   computed: {
@@ -168,7 +173,7 @@
           this.initObservation();
           this.initThemeColor();
         }, 500);
-      }
+      },
     },
     loadPageList: {
       handler(newVal, oldVal) {
@@ -177,8 +182,8 @@
           this.initSwiper();
           this.initViewer();
         }, 200);
-      }
-    }
+      },
+    },
   },
   mounted() {
     // 榛樿鍔犺浇绔犺妭
@@ -229,21 +234,21 @@
 
     // 娴嬭瘯椤甸潰璺宠浆
     // setTimeout(() => {
-      // this.gotoPage(1, 15);
-      //   setTimeout(() => {
-      //     this.renderSign("Note", {
-      //       id: "2ACA9359",
-      //       txt: "钀ュ吇绱犲拰鐑噺锛屾墠鑳�",
-      //       page: "100",
-      //       type: "Highlight",
-      //       color: "#F5E12A"
-      //     });
-      //     setTimeout(() => {
-      //       this.delSign({
-      //         ids: ["2ACA9359"]
-      //       });
-      //     }, 2000);
-      //   }, 1000);
+    // this.gotoPage(1, 15);
+    //   setTimeout(() => {
+    //     this.renderSign("Note", {
+    //       id: "2ACA9359",
+    //       txt: "钀ュ吇绱犲拰鐑噺锛屾墠鑳�",
+    //       page: "100",
+    //       type: "Highlight",
+    //       color: "#F5E12A"
+    //     });
+    //     setTimeout(() => {
+    //       this.delSign({
+    //         ids: ["2ACA9359"]
+    //       });
+    //     }, 2000);
+    //   }, 1000);
     // }, 1000);
   },
   methods: {
@@ -302,7 +307,7 @@
           this.showCatalogList = [
             this.catalogLength - 2,
             this.catalogLength - 1,
-            this.catalogLength
+            this.catalogLength,
           ];
         } else {
           this.showCatalogList = [catalog - 1, catalog, catalog + 1];
@@ -550,7 +555,7 @@
             this.$store.state.qiankun.pageChange({
               page: page,
               catalog: catalog,
-              text
+              text,
             });
           // const sections = Array.from(document.querySelectorAll(".section"));
           //sections锛氳幏鍙栨墍鏈夊叿鏈� .section 绫诲悕鐨勫厓绱狅紝骞惰浆鎹负鏁扮粍銆�
@@ -622,7 +627,7 @@
           autoplay: {
             //鑷姩寮�濮�
             delay: 3000, //鏃堕棿闂撮殧
-            disableOnInteraction: false //*鎵嬪姩鎿嶄綔杞挱鍥惧悗涓嶄細鏆傚仠*
+            disableOnInteraction: false, //*鎵嬪姩鎿嶄綔杞挱鍥惧悗涓嶄細鏆傚仠*
           },
           paginationClickable: true,
           slidesPerView: 1, // 涓�缁勪笁涓�
@@ -630,7 +635,7 @@
           // 濡傛灉闇�瑕佸墠杩涘悗閫�鎸夐挳
           navigation: {
             nextEl: ".swiper-button-next",
-            prevEl: ".swiper-button-prev"
+            prevEl: ".swiper-button-prev",
           },
           // 绐楀彛鍙樺寲,閲嶆柊init,閽堝F11鍏ㄥ睆鍜屾斁澶х缉灏�,蹇呴』鍔�
           observer: true,
@@ -652,7 +657,7 @@
         new Viewer(dom, {
           navbar: true, // 鏄剧ず瀵艰埅鏍�
           toolbar: true, // 鏄剧ず宸ュ叿鏍�
-          title: true // 鏄剧ず鏍囬
+          title: true, // 鏄剧ず鏍囬
         });
       }
     },
@@ -707,6 +712,13 @@
         }
       }
     },
+    swdtChange(data) {
+      if (this.$store.state.qiankun && this.$store.state.qiankun.chooseWords) {
+        this.$store.state.qiankun.chooseWords({
+          type: data,
+        });
+      }
+    },
   },
   components: {
     front001,

--
Gitblit v1.9.1