From 13dbb7d053efa1fef63d76ecd5cbebbdbc919a24 Mon Sep 17 00:00:00 2001
From: unknown <qq1940665526@163.com>
Date: 星期三, 29 五月 2024 18:26:38 +0800
Subject: [PATCH] 增加体育与健康

---
 src/books/lifeCare/index.vue |  134 +++++++++++++++++++++++++++++++++-----------
 1 files changed, 100 insertions(+), 34 deletions(-)

diff --git a/src/books/lifeCare/index.vue b/src/books/lifeCare/index.vue
index 3538dae..1329af6 100644
--- a/src/books/lifeCare/index.vue
+++ b/src/books/lifeCare/index.vue
@@ -1,33 +1,99 @@
 <template>
   <div class="page-main" @scroll="throttledScrollHandler">
     <div
-      class="public-books"
+      class="public-lifCare"
       @mouseup="handleMouseUp"
       :style="{
         fontSize: fontSize ? fontSize + 'px' : '16px',
         transform: `scale(${pageZoom ? pageZoom : 1})`,
-        transformOrigin: 'center top'
+        transformOrigin: 'center top',
       }"
     >
-    <front001 v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList" />
-      <ChapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :questionData="questionData"/>
-      <ChapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :questionData="questionData"/>
-      <ChapterThree v-if="showCatalogList.indexOf(4) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <ChapterFour v-if="showCatalogList.indexOf(5) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <ChapterFive v-if="showCatalogList.indexOf(6) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <chapterSix v-if="showCatalogList.indexOf(7) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <chapterSeven v-if="showCatalogList.indexOf(8) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <chapterEight v-if="showCatalogList.indexOf(9) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <chapterNine v-if="showCatalogList.indexOf(10) > -1"  :showPageList="loadPageList" :questionData="questionData"/>
-      <chapter010 v-if="showCatalogList.indexOf(11) > -1"  :showPageList="loadPageList" />
-      <chapter011 v-if="showCatalogList.indexOf(12) > -1"  :showPageList="loadPageList" />
-      <chapter012 v-if="showCatalogList.indexOf(13) > -1"  :showPageList="loadPageList" />
-      <chapter013 v-if="showCatalogList.indexOf(14) > -1"  :showPageList="loadPageList" />
-      <chapter014 v-if="showCatalogList.indexOf(15) > -1"  :showPageList="loadPageList" />
-      <chapter015 v-if="showCatalogList.indexOf(16) > -1"  :showPageList="loadPageList" />
-      <chapter016 v-if="showCatalogList.indexOf(17) > -1"  :showPageList="loadPageList" />
-      <chapter017 v-if="showCatalogList.indexOf(18) > -1"  :showPageList="loadPageList" />
-      <chapter018 v-if="showCatalogList.indexOf(19) > -1"  :showPageList="loadPageList" />
+      <front001
+        v-if="showCatalogList.indexOf(1) > -1"
+        :showPageList="loadPageList"
+      />
+      <ChapterOne
+        v-if="showCatalogList.indexOf(2) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <ChapterTwo
+        v-if="showCatalogList.indexOf(3) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <ChapterThree
+        v-if="showCatalogList.indexOf(4) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <ChapterFour
+        v-if="showCatalogList.indexOf(5) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <ChapterFive
+        v-if="showCatalogList.indexOf(6) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <chapterSix
+        v-if="showCatalogList.indexOf(7) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <chapterSeven
+        v-if="showCatalogList.indexOf(8) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <chapterEight
+        v-if="showCatalogList.indexOf(9) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <chapterNine
+        v-if="showCatalogList.indexOf(10) > -1"
+        :showPageList="loadPageList"
+        :questionData="questionData"
+      />
+      <chapter010
+        v-if="showCatalogList.indexOf(11) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter011
+        v-if="showCatalogList.indexOf(12) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter012
+        v-if="showCatalogList.indexOf(13) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter013
+        v-if="showCatalogList.indexOf(14) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter014
+        v-if="showCatalogList.indexOf(15) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter015
+        v-if="showCatalogList.indexOf(16) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter016
+        v-if="showCatalogList.indexOf(17) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter017
+        v-if="showCatalogList.indexOf(18) > -1"
+        :showPageList="loadPageList"
+      />
+      <chapter018
+        v-if="showCatalogList.indexOf(19) > -1"
+        :showPageList="loadPageList"
+      />
     </div>
   </div>
 </template>
@@ -68,7 +134,7 @@
       observer: null,
       loadPageObserver: null,
       loadPageList: [],
-      questionData: {}
+      questionData: {},
     };
   },
   computed: {
@@ -77,11 +143,11 @@
     },
     pageZoom() {
       return this.$store.state.qiankun.scale / 100;
-    }
+    },
   },
   provide() {
     return {
-      changeQuestionData: this.changeQuestionData
+      changeQuestionData: this.changeQuestionData,
     };
   },
   watch: {
@@ -93,7 +159,7 @@
         ) {
           // 璋冪敤鐖跺眰鏂规硶
           this.$store.state.qiankun.catalogChange({
-            showCatalogList: newVal
+            showCatalogList: newVal,
           });
         }
         // 鍚姩椤电爜瑙傚療
@@ -101,8 +167,8 @@
           this.initObservation();
           this.initThemeColor();
         }, 500);
-      }
-    }
+      },
+    },
   },
   mounted() {
     // 榛樿鍔犺浇绔犺妭
@@ -127,7 +193,7 @@
         // 鍒犻櫎绗旇銆侀珮浜�佸垝绾�
         delSign: (data) => {
           this.delSign(data);
-        }
+        },
       });
     }
 
@@ -136,13 +202,13 @@
     this.observer = new IntersectionObserver(this.pageChangeCallback, {
       root: null, // 鎸囧畾鏍瑰厓绱狅紝杩欓噷璁句负 null锛岃〃绀洪�夊彇鏁翠釜瑙嗙獥浣滀负鏍瑰厓绱犮��
       rootMargin: "0px", // 鎸囧畾鏍瑰厓绱犵殑杈圭晫锛岃繖閲岃涓� "0px"锛岃〃绀烘牴鍏冪礌鐨勮竟鐣屽拰瑙嗙獥鐨勮竟鐣岄噸鍚�
-      threshold: 0.5 // 鎸囧畾浜ゅ弶姣斾緥锛岃繖閲岃涓� 0.5锛岃〃绀哄綋鐩爣鍏冪礌涓�鍗婃垨鏇村鏄剧ず鍦ㄨ绐椾腑鏃惰Е鍙戝洖璋冨嚱鏁般��
+      threshold: 0.5, // 鎸囧畾浜ゅ弶姣斾緥锛岃繖閲岃涓� 0.5锛岃〃绀哄綋鐩爣鍏冪礌涓�鍗婃垨鏇村鏄剧ず鍦ㄨ绐椾腑鏃惰Е鍙戝洖璋冨嚱鏁般��
     });
 
     this.loadPageObserver = new IntersectionObserver(this.loadPageCallback, {
       root: null, // 鎸囧畾鏍瑰厓绱狅紝杩欓噷璁句负 null锛岃〃绀洪�夊彇鏁翠釜瑙嗙獥浣滀负鏍瑰厓绱犮��
       rootMargin: "0px", // 鎸囧畾鏍瑰厓绱犵殑杈圭晫锛岃繖閲岃涓� "0px"锛岃〃绀烘牴鍏冪礌鐨勮竟鐣屽拰瑙嗙獥鐨勮竟鐣岄噸鍚�
-      threshold: 0 // 鎸囧畾浜ゅ弶姣斾緥锛岃繖閲岃涓� 0.5锛岃〃绀哄綋鐩爣鍏冪礌涓�鍗婃垨鏇村鏄剧ず鍦ㄨ绐椾腑鏃惰Е鍙戝洖璋冨嚱鏁般��
+      threshold: 0, // 鎸囧畾浜ゅ弶姣斾緥锛岃繖閲岃涓� 0.5锛岃〃绀哄綋鐩爣鍏冪礌涓�鍗婃垨鏇村鏄剧ず鍦ㄨ绐椾腑鏃惰Е鍙戝洖璋冨嚱鏁般��
     });
 
     // 鍚姩椤电爜瑙傚療
@@ -277,7 +343,7 @@
           this.showCatalogList = [
             this.catalogLength - 2,
             this.catalogLength - 1,
-            this.catalogLength
+            this.catalogLength,
           ];
         } else {
           this.showCatalogList = [catalog - 1, catalog, catalog + 1];
@@ -494,7 +560,7 @@
           if (this.$store.state.qiankun && this.$store.state.qiankun.pageChange)
             this.$store.state.qiankun.pageChange({
               page: page,
-              catalog: catalog
+              catalog: catalog,
             });
           // const sections = Array.from(document.querySelectorAll(".section"));
           //sections锛氳幏鍙栨墍鏈夊叿鏈� .section 绫诲悕鐨勫厓绱狅紝骞惰浆鎹负鏁扮粍銆�
@@ -549,7 +615,7 @@
     },
     changeQuestionData(page, data) {
       this.$props.questionData[page] = data;
-    }
+    },
   },
   components: {
     front001,
@@ -571,7 +637,7 @@
     chapter016,
     chapter017,
     chapter018,
-  }
+  },
 };
 </script>
 

--
Gitblit v1.9.1