From 0787340ac90df571d7be9a405d42d33e53fb251f Mon Sep 17 00:00:00 2001 From: YM <479443481@qq.com> Date: 星期三, 29 五月 2024 16:52:02 +0800 Subject: [PATCH] 测试 --- src/App.vue | 2 +- src/books/childHealth/view/content/components/chapter001.vue | 5 ++--- src/books/childHealth/view/content/index.vue | 12 +++++------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/App.vue b/src/App.vue index 475b847..bbda760 100644 --- a/src/App.vue +++ b/src/App.vue @@ -58,7 +58,7 @@ } else { this.activeBook = await this.config.getBookConfig( // childHealth - this.config.resourceCtx + "lifeCare" + this.config.resourceCtx + "childHealth" ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; diff --git a/src/books/childHealth/view/content/components/chapter001.vue b/src/books/childHealth/view/content/components/chapter001.vue index 1521c43..26c96bc 100644 --- a/src/books/childHealth/view/content/components/chapter001.vue +++ b/src/books/childHealth/view/content/components/chapter001.vue @@ -1029,7 +1029,7 @@ </div> <div class="right" style="width: 60%"> <video - :src="pathFive" + :src="getResourcePath('163c06871b763954952d1cd74373c618')" poster="../../../assets/images/chapterOne/people-video-img.jpg" webkit-playsinline="true" x-webkit-airplay="true" @@ -4854,6 +4854,7 @@ }; }, async mounted() { + this.getResourcePath = getResourcePath; this.getVideoPath(); const localData = localStorage.getItem("chapterOneData"); if (localData) { @@ -4924,9 +4925,7 @@ }, saveChapterOneData() { // 璁板綍绗竴寮犺緭鍏ユ暟鎹� - console.log("20miao"); this.saveTime = 20; - console.log(this.chapterOneData); localStorage.setItem( "chapterOneData", JSON.stringify(this.chapterOneData) diff --git a/src/books/childHealth/view/content/index.vue b/src/books/childHealth/view/content/index.vue index a5d750e..3c07077 100644 --- a/src/books/childHealth/view/content/index.vue +++ b/src/books/childHealth/view/content/index.vue @@ -146,6 +146,7 @@ }, loadPageList: { handler(newVal, oldVal) { + console.log(newVal, "this.loadPageList"); setTimeout(() => { this.initSwiper(); this.initViewer(); @@ -201,8 +202,8 @@ }, 500); // 娴嬭瘯椤甸潰璺宠浆 - setTimeout(() => { - this.gotoPage(1, 11); + // setTimeout(() => { + // this.gotoPage(1, 15); // setTimeout(() => { // this.renderSign("Note", { // id: "2ACA9359", @@ -217,7 +218,7 @@ // }); // }, 2000); // }, 1000); - }, 1000); + // }, 1000); }, methods: { // 婊氬姩鐩戝惉 @@ -374,7 +375,7 @@ return false; } } - //observer 瑙傚療姣忎釜鍏冪礌锛屼互渚垮湪瀹冧滑杩涘叆鎴栫寮�瑙嗙獥鏃惰Е鍙戝洖璋冨嚱鏁般�� + // observer 瑙傚療姣忎釜鍏冪礌锛屼互渚垮湪瀹冧滑杩涘叆鎴栫寮�瑙嗙獥鏃惰Е鍙戝洖璋冨嚱鏁般�� const isObserver = section.getAttribute("observer"); const isLoadObserver = section.getAttribute("loadObserver"); if (!isObserver) { @@ -487,10 +488,8 @@ "chapter" ); const catalog = catalogDom.getAttribute("num"); - console.log(page, "page", catalog, "catalog"); let text = null; if (target.querySelector("p")) { - console.log(target.querySelector("p").textContent.substring(0, 20)); text = target.querySelector("p").textContent.substring(0, 20); } // 杩斿洖椤电爜鍜岀珷鑺備俊鎭� @@ -513,7 +512,6 @@ const target = entry.target; const page = target.getAttribute("page"); if (this.loadPageList.indexOf(page) == -1) { - // const catalogDom = this.tool.getParentNodeByClassName( target, "chapter" -- Gitblit v1.9.1