From 97eb39caf61e8ea8f70776af267f6deed51720fe Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期一, 28 七月 2025 09:43:39 +0800
Subject: [PATCH] Merge branch 'master' of http://182.92.203.7:2001/r/testbookLayout

---
 src/books/aurturingAndEducationAged0to3/view/components/index.vue |   24 +++++++++++++++++-------
 1 files changed, 17 insertions(+), 7 deletions(-)

diff --git a/src/books/aurturingAndEducationAged0to3/view/components/index.vue b/src/books/aurturingAndEducationAged0to3/view/components/index.vue
index 047159d..b473c63 100644
--- a/src/books/aurturingAndEducationAged0to3/view/components/index.vue
+++ b/src/books/aurturingAndEducationAged0to3/view/components/index.vue
@@ -9,10 +9,14 @@
       transformOrigin: 'center top',
     }">
       <pageHeader v-if="showCatalogList.indexOf(1) > -1" :showPageList="loadPageList"></pageHeader>
-      <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList"></chapterOne>
-      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList"></chapterTwo>
-      <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList"></chapterThree>
-      <chapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList"></chapterFour>
+      <chapterOne v-if="showCatalogList.indexOf(2) > -1" :showPageList="loadPageList" :resourceList="resourceList">
+      </chapterOne>
+      <chapterTwo v-if="showCatalogList.indexOf(3) > -1" :showPageList="loadPageList" :resourceList="resourceList">
+      </chapterTwo>
+      <chapterThree v-if="showCatalogList.indexOf(4) > -1" :showPageList="loadPageList" :resourceList="resourceList">
+      </chapterThree>
+      <chapterFour v-if="showCatalogList.indexOf(5) > -1" :showPageList="loadPageList" :resourceList="resourceList">
+      </chapterFour>
       <chapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"></chapterFive>
     </div>
   </div>
@@ -51,6 +55,7 @@
       audioPath: "",
       currentTime: null,
       videoList: [],
+      resourceList: {},
     };
   },
   computed: {
@@ -102,6 +107,11 @@
           this.container ? this.container : document
         ).querySelector(".page-main");
         scrollBox.scrollTop = (scrollBox.scrollTop / oldVal) * newVal;
+      },
+    },
+    resourceList: {
+      handler(newVal, oldVal) {
+        this.resourceList = newVal;
       },
     },
   },
@@ -165,9 +175,9 @@
     }, 500);
 
     // 娴嬭瘯椤甸潰璺宠浆
-    setTimeout(() => {
-      this.gotoPage(2, 12);
-    }, 500);
+    //setTimeout(() => {
+    //   this.gotoPage(5, 252);
+    //}, 500);
 
     // const pageDom = (this.container ? this.container : document)
     //   .querySelector("#app")

--
Gitblit v1.9.1