From 6565078d7af60fe9496a43a7d3d9bf00f92f0531 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 11 七月 2024 17:38:37 +0800 Subject: [PATCH] 图书bug修改 --- src/books/childHealth/view/content/index.vue | 19 ++++++------------- 1 files changed, 6 insertions(+), 13 deletions(-) diff --git a/src/books/childHealth/view/content/index.vue b/src/books/childHealth/view/content/index.vue index 6b0600d..fb4a8ec 100644 --- a/src/books/childHealth/view/content/index.vue +++ b/src/books/childHealth/view/content/index.vue @@ -229,7 +229,7 @@ // 娴嬭瘯椤甸潰璺宠浆 // setTimeout(() => { - // this.gotoPage(8,175); + // this.gotoPage(11,282); // setTimeout(() => { // this.renderSign("Highlight", { // id: "2ACA9359", @@ -614,11 +614,12 @@ if (testData && testData[catalog]) { if (testData[catalog][page]) { if (Array.isArray(testData[catalog][page])) { - this.questionDataMap[page] = await getQuestionList( + const datas = await getQuestionList( page, testData[catalog][page], this.config.activeBook ); + this.$set(this.questionDataMap,page,datas) } else { const obj = {}; for (let key in testData[catalog][page]) { @@ -628,7 +629,8 @@ this.config.activeBook ); } - this.questionDataMap[page] = obj; + this.$set(this.questionDataMap,page,obj) + // this.questionDataMap[page] = obj; } } } @@ -898,6 +900,7 @@ // 璺宠浆 this.gotoPage(data.catalog, data.page, () => {}); }, + // 鐐瑰嚮瑙嗛鍏抽棴鍏朵粬 closeVideo() { let allVideo = ( this.container ? this.container : document @@ -907,7 +910,6 @@ item.addEventListener('playing',(item) => { const path = item.srcElement.src const videoList = Array.from(allVideo); - console.log('鎾斁',item); for (let cindex = 0; cindex < videoList.length; cindex++) { const citem = videoList[cindex]; if(citem.currentSrc != path && path) { @@ -917,15 +919,6 @@ }) } } - // allVideo = Array.from(allVideo); - // if(allVideo.length) { - // for (let index = 0; index < allVideo.length; index++) { - // const item = allVideo[index]; - // if(item.currentSrc != path) { - // item.pause() - // } - // } - // } }, components: { pageHeader, -- Gitblit v1.9.1