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/chapter004.vue | 185 +++++++++++++++++++++++++++++++++++++++++----- 1 files changed, 164 insertions(+), 21 deletions(-) diff --git a/src/books/aurturingAndEducationAged0to3/view/components/chapter004.vue b/src/books/aurturingAndEducationAged0to3/view/components/chapter004.vue index 04c6f2c..d55fd98 100644 --- a/src/books/aurturingAndEducationAged0to3/view/components/chapter004.vue +++ b/src/books/aurturingAndEducationAged0to3/view/components/chapter004.vue @@ -3175,6 +3175,9 @@ showPageList: { type: Array, }, + resourceList: { + type: Object, + }, }, data() { return { @@ -3201,6 +3204,156 @@ }, bookData: { one: "", + }, + chapter001: { + videoMd5: [ + { + isCollectVideo: false, + md5: this.resourceList[137], + handleMd5: "", + name: "鎸囧骞煎効姝g‘鍒风墮", + }, + { + isCollectVideo: false, + md5: this.resourceList[138], + handleMd5: "", + name: "鎸囧骞煎効姝g‘娲楁墜", + }, + { + isCollectVideo: false, + md5: this.resourceList[159], + handleMd5: "", + name: "缁寸敓绱燚缂轰箯鎬т綕鍋荤梾", + }, + { + isCollectVideo: false, + md5: this.resourceList[168], + handleMd5: "", + name: "濠村辜鍎垮畨鍏ㄧ幆澧冨垱璁炬寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[170], + handleMd5: "", + name: "濠村辜鍎跨帺鍏风瀛︽姇鏀炬寚瀵硷紙涓婏級", + }, + { + isCollectVideo: false, + md5: this.resourceList[171], + handleMd5: "", + name: "濠村辜鍎跨帺鍏风瀛︽姇鏀炬寚瀵硷紙涓嬶級", + }, + { + isCollectVideo: false, + md5: this.resourceList[175], + handleMd5: "", + name: "浜插瓙闃呰銆婂ソ閰稿ソ閰哥殑鏌犳鍛�銆�", + }, + { + isCollectVideo: false, + md5: this.resourceList[178], + handleMd5: "", + name: "鈥滅埇琛屸�濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[179], + handleMd5: "", + name: "鈥滄姇鎺封�濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[180], + handleMd5: "", + name: "鈥滀笂銆佷笅妤兼鈥濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[181], + handleMd5: "", + name: "鈥滆烦璺冣�濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[182], + handleMd5: "", + name: "鈥滆涪鐞冣�濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[183], + handleMd5: "", + name: "鈥滆窇鍔ㄢ�濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[185], + handleMd5: "", + name: "鈥滄惌绉湪鈥濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[186], + handleMd5: "", + name: "鈥滄棆鑵曗�濅翰瀛愭父鎴忔寚瀵�", + }, + + { + isCollectVideo: false, + md5: this.resourceList[187], + handleMd5: "", + name: "鈥滀笁鍙崗鈥濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[188], + handleMd5: "", + name: "鈥滃祵濉炩�濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[189], + handleMd5: "", + name: "鈥滅┛涓茬彔鈥濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[190], + handleMd5: "", + name: "鈥滄嫥铻轰笣鈥濅翰瀛愭父鎴忔寚瀵�", + }, + { + isCollectVideo: false, + md5: this.resourceList[193], + handleMd5: "", + name: "骞煎効璁ょ煡娓告垙鈥滅┖姘斿▋濞冣��", + }, + { + isCollectVideo: false, + md5: this.resourceList[195], + handleMd5: "", + name: "骞煎効鐙珛鍩瑰吇", + }, + { + isCollectVideo: false, + md5: this.resourceList[200], + handleMd5: "", + name: "鍒囬浮铔�", + }, + { + isCollectVideo: false, + md5: this.resourceList[203], + handleMd5: "", + name: "瀛︾敓鏍″唴瀹炶鏃╂暀璇�", + }, + { + isCollectVideo: false, + md5: this.resourceList[204], + handleMd5: "", + name: "浜插瓙娓告垙鈥滅涓彇瀹濃��", + }, + + ], }, }; }, @@ -3233,12 +3386,12 @@ }, methods: { async getVidoePath() { - this.videoPathOne = await getResourcePath( - "d056878ebe8cb0dbf323afa4f50ce59e" - ); - this.videoPathTwo = await getResourcePath( - "be2714f3c8679bbe0ff150b5443321a9" - ); + for (let index = 0; index < this.chapter001.videoMd5.length; index++) { + const item = this.chapter001.videoMd5[index]; + if (item.md5 && !item.md5.includes("https:")) { + item.handleMd5 = await getResourcePath(item.md5); + } + } }, setBookQuestion() { localStorage.setItem( @@ -3266,26 +3419,16 @@ this.unitQuestion.isShowAnswer = false; }, handleCollect(e) { - if (e == "video-01") { + if (e) { this.handleCollectResource( - "d056878ebe8cb0dbf323afa4f50ce59e", - "d056878ebe8cb0dbf323afa4f50ce59e", + e.md5, + e.md5, "", "瑙嗛", "bits", - "瑙嗛锛氬瓡鏈熷攼姘忕瓫鏌�" + "瑙嗛锛�" + e.md5, ); - this.chapterData.isCollectVideo = !this.chapterData.isCollectVideo; - } else if (e == "video-02") { - this.handleCollectResource( - "be2714f3c8679bbe0ff150b5443321a9", - "be2714f3c8679bbe0ff150b5443321a9", - "", - "瑙嗛", - "bits", - "瑙嗛锛氬瓡鏈熶繚鍋�" - ); - this.chapterData.isCollectVideo01 = !this.chapterData.isCollectVideo01; + e.isCollectVideo = !e.isCollectVideo; } this.handleChapterData(); }, -- Gitblit v1.9.1