From d11b7bf0ecbf1662ca96c127beda0581ecfd6853 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期六, 19 七月 2025 00:07:27 +0800 Subject: [PATCH] 7.19 --- src/books/toddlerGameImplementation/view/components/chapter004.vue | 26 ++++++++++++++++++++------ 1 files changed, 20 insertions(+), 6 deletions(-) diff --git a/src/books/toddlerGameImplementation/view/components/chapter004.vue b/src/books/toddlerGameImplementation/view/components/chapter004.vue index bf4f093..068b2ca 100644 --- a/src/books/toddlerGameImplementation/view/components/chapter004.vue +++ b/src/books/toddlerGameImplementation/view/components/chapter004.vue @@ -1282,9 +1282,9 @@ </div> </div> <preView :isClear="dialogVisible" :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView> - <dialogExaminations :isClear="dialogVisibleOne" :primaryColor="themeColor" - :cardList="interfaceQuestion[questionNum]" v-if="interfaceQuestion" :chapter="3" :page="questionNum" - :questionTitle="questionTitleMain" ref="dialogRef"> + <dialogExaminations :isClear="dialogVisibleOne" :primaryColor="themeColor" :cardList="cardArrayList" + v-if="interfaceQuestion" :chapter="3" :page="questionNum" :questionTitle="questionTitleMain" + ref="dialogRef"> </dialogExaminations> </div> </template> @@ -1317,11 +1317,11 @@ chapter001: { pdfMd5: { 1: { - md5: "1163b037f10a617fad93b1920918ee25", + md5: "ddcce0c887753bc8005300ef82d5ec59", name: "妯″潡鍥浡犲矖浣嶈繘闃惰缁�", }, 2: { - md5: "96ee41c37890c9c0ce53b33ea8d5cc79", + md5: "5844d7e7f598ff1086885a20c3e86516", name: "妯″潡鍥浡犲疄璁伐浣滀换鍔�", }, }, @@ -1389,6 +1389,7 @@ themeColor: "#6dcff6", questionNum: 0, questionTitleMain: "", + cardArrayList: [], // 棰樼洰 collectImg: require("../../assets/images/icon/heart.png"), collectCheck: require("../../assets/images/icon/heart-check.png"), @@ -1821,6 +1822,17 @@ }, } }, + watch: { + interfaceQuestion: { + handler(newValue) { + if (newValue[this.questionNum] != undefined) { + this.cardArrayList = newValue[this.questionNum]; + } + }, + deep: true, + immediate: true + }, + }, async mounted() { const bookQuestion = localStorage.getItem("toddleGame-book-chapter04-tableData"); if (bookQuestion) { @@ -1852,7 +1864,6 @@ }, methods: { - async getVidoePath() { this.videoPathOne = await getResourcePath( "7ce18eab6c16b6c01ac0b3af352a2393" @@ -2080,6 +2091,9 @@ if (num) { this.questionNum = this.chapter001.question[num].questionNum; this.questionTitleMain = this.chapter001.question[num].questionTitleMain; + if (this.interfaceQuestion && this.interfaceQuestion[this.questionNum] != undefined) { + this.cardArrayList = this.interfaceQuestion[this.questionNum]; + } this.$refs.dialogRef.openDialogQuestion(); } }, -- Gitblit v1.9.1