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/chapter002.vue | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/src/books/toddlerGameImplementation/view/components/chapter002.vue b/src/books/toddlerGameImplementation/view/components/chapter002.vue index bf60a0b..aa31250 100644 --- a/src/books/toddlerGameImplementation/view/components/chapter002.vue +++ b/src/books/toddlerGameImplementation/view/components/chapter002.vue @@ -1406,9 +1406,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> @@ -1461,11 +1461,11 @@ chapter001: { pdfMd5: { 1: { - md5: "e08c9c426561125b4c071831226bbd13", + md5: "c1e3ca59f0af5af2303eb79c97d6e8d0", name: "濠村辜鍎跨殑鐜╁叿閫夋嫨", }, 2: { - md5: "b3c5d39f898ad612cb74e6bd055b7072", + md5: "30b38a26cd4c0034fd5556d7ab69a3d8", name: " 妯″潡浜屄犲矖浣嶈繘闃惰缁�", }, 3: { @@ -1485,6 +1485,7 @@ themeColor: "#6dcff6", questionNum: 0, questionTitleMain: "", + cardArrayList: [], // 棰樼洰 tableData: { unitOne: { @@ -1783,6 +1784,18 @@ }, }; }, + 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-chapter02-tableData" @@ -1903,8 +1916,6 @@ JSON.stringify(this.unitQuestionOne) ); }, - - goUnitTwo() { for (let index = 0; index < this.unitQuestionTwo.unitOne.length; index++) { const item = this.unitQuestionTwo.unitOne[index]; @@ -1951,7 +1962,6 @@ JSON.stringify(this.unitQuestionTwo) ); }, - toUrl(val) { if (val) { this.p_md5 = this.chapter001.pdfMd5[val].md5; @@ -1963,6 +1973,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