From b25a0073b805e82416934d0f123c10e9063e3c57 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期三, 23 七月 2025 10:26:41 +0800 Subject: [PATCH] 婴幼儿运动安全替换 --- src/books/aurturingAndEducationAged0to3/view/components/index.vue | 18 ++++++++++++------ 1 files changed, 12 insertions(+), 6 deletions(-) diff --git a/src/books/aurturingAndEducationAged0to3/view/components/index.vue b/src/books/aurturingAndEducationAged0to3/view/components/index.vue index 047159d..a1bb7b6 100644 --- a/src/books/aurturingAndEducationAged0to3/view/components/index.vue +++ b/src/books/aurturingAndEducationAged0to3/view/components/index.vue @@ -9,11 +9,11 @@ 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> - <chapterFive v-if="showCatalogList.indexOf(6) > -1" :showPageList="loadPageList"></chapterFive> + <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> </template> @@ -51,6 +51,7 @@ audioPath: "", currentTime: null, videoList: [], + resourceList: {}, }; }, computed: { @@ -102,6 +103,11 @@ this.container ? this.container : document ).querySelector(".page-main"); scrollBox.scrollTop = (scrollBox.scrollTop / oldVal) * newVal; + }, + }, + resourceList: { + handler(newVal, oldVal) { + this.resourceList = newVal; }, }, }, @@ -166,7 +172,7 @@ // 娴嬭瘯椤甸潰璺宠浆 setTimeout(() => { - this.gotoPage(2, 12); + this.gotoPage(3, 29); }, 500); // const pageDom = (this.container ? this.container : document) -- Gitblit v1.9.1