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/chapter006.vue | 25 ++++++++++++++++++++----- 1 files changed, 20 insertions(+), 5 deletions(-) diff --git a/src/books/toddlerGameImplementation/view/components/chapter006.vue b/src/books/toddlerGameImplementation/view/components/chapter006.vue index e807650..46f190a 100644 --- a/src/books/toddlerGameImplementation/view/components/chapter006.vue +++ b/src/books/toddlerGameImplementation/view/components/chapter006.vue @@ -1354,9 +1354,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> @@ -1389,11 +1389,11 @@ chapter001: { pdfMd5: { 1: { - md5: "f751cb1f40862cc81972df87fdf1451c", + md5: "c0bc1cf672ea6d25f5cb3ecba2cc9dff", name: "妯″潡鍏犲矖浣嶈繘闃惰缁�", }, 2: { - md5: "16eb97c685067d0651b97aacb3548315", + md5: "f9d9026bc00a9b0560e4a348352fb385", name: "妯″潡鍏犲疄璁伐浣滀换鍔�", }, }, @@ -1461,6 +1461,7 @@ themeColor: "#6dcff6", questionNum: 0, questionTitleMain: "", + cardArrayList: [], // 棰樼洰 collectImg: require("../../assets/images/icon/heart.png"), collectCheck: require("../../assets/images/icon/heart-check.png"), @@ -1884,6 +1885,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-chapter06-tableData"); if (bookQuestion) { @@ -2088,6 +2100,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