From bc1f3bb645daafa84b3a5e70a2331e40137de885 Mon Sep 17 00:00:00 2001 From: litian <2804272236@qq.com> Date: 星期四, 24 四月 2025 17:04:18 +0800 Subject: [PATCH] jiansuojiejue --- src/books/civilAviation/view/components/chapter001.vue | 60 ++++++++++++++++++++++++++++-------------------------------- 1 files changed, 28 insertions(+), 32 deletions(-) diff --git a/src/books/civilAviation/view/components/chapter001.vue b/src/books/civilAviation/view/components/chapter001.vue index 90765c2..53f6706 100644 --- a/src/books/civilAviation/view/components/chapter001.vue +++ b/src/books/civilAviation/view/components/chapter001.vue @@ -676,7 +676,8 @@ <p class="event-header-text-bc pd-5 fl jc-sa" style="margin-left: 8px; width: 93%" v-if="showCheckAnswer"> <span class="c-g"> 绛旀锛欰BC </span> - <span>鎮ㄧ殑绛旀锛� + <span + :class="{ 'c-g': questionData.check.isRight, 'c-r': questionData.check.isRight == false }">鎮ㄧ殑绛旀锛� <span v-for="(item, index) in questionData.check.value" :key="index"> {{ item }} </span> @@ -1366,6 +1367,7 @@ 缁撲簡鈥滃崗鍜屸�濊秴澹伴�熷鏈�25骞寸殑鏃犱簨鏁呰褰曪紝閫犳垚鏈轰笂109浜哄叏閮ㄩ亣闅俱�佸湴闈�4浜烘浜$殑鎯ㄥ墽銆傝繖娆′簨鏁呭湪浜轰滑蹇冪洰涓暀涓嬩簡鏋佸ぇ鐨勯槾褰憋紝浠庢瓒呭0閫熻埅鐝笂搴х巼涓�韫朵笉鎸紝鑷翠娇鑸┖鍏徃涓ラ噸浜忔崯锛屼笉寰椾笉鍦�2003骞�10鏈�24鏃ュ皢鈥滃崗鍜屸�濊秴澹伴�熷鏈哄叏閮ㄩ��褰癸紝缁堟浜嗚秴澹伴�熷鏈虹殑杩愯惀銆� </p> </span> + <p><br></p> </div> </div> </div> @@ -1678,27 +1680,14 @@ <textarea v-model="questionData.reading.four" placeholder="璇疯緭鍏ュ唴瀹�" rows="6" class="textarea-box-left" @change="setBookQuestion" :class="{ 'textarea-focused': isFocused == 'four' }" @focus="handleFocus('four')" @blur="handleBlur()"></textarea> - <!-- 棰樼洰 --> + <!-- 棰樼洰 --> <!-- <div class="bk-ztgs"> <p class="bj1-ztgs">姘戣埅姒傝璇曢01</p> </div> --> </div> </div> </div> - <!-- 37椤� --> - <div class="page-box" page="44"> - <div v-if="showPageList.indexOf(44) > -1"> - <ul class="fl al-c pad-t-55 pad-l-60 mb-45"> - <li class="header-left-Number">036</li> - <li class="header-left-text">姘戣埅姒傝锛堢 2 鐗堬級</li> - </ul> - <div class="bodystyle"> - <div style="min-height:800px"><iframe :src="iframSrc" frameborder="0" - style="width: 100%; height: 800px"></iframe></div> - </div> - </div> - </div> - <preView :isClear="dialogVisible" :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView> + <preView :isClear="dialogVisible" :md5="p_md5" :pdfTitle="somePdfTitleValue" ref="pdfDialogRef"></preView> </div> </template> @@ -1717,8 +1706,7 @@ }, data() { return { - pdfDialogRef:"", - iframSrc: "", + pdfDialogRef: "", showChoiceAnswer: false, showQuestionAnswer: false, showCheckAnswer: false, @@ -1791,7 +1779,6 @@ if (CheckQuestion) { this.questionData.check = JSON.parse(CheckQuestion); } - this.getModel() }, methods: { toUrl(val) { @@ -1842,7 +1829,16 @@ }, // 澶氶�夐 goCheckJudge() { - this.questionData.check.isComplete = true + this.questionData.check.isComplete = true; + const sortedAnswer = [...this.questionData.check.answer].sort(); + const sortedUserAnswer = [...this.questionData.check.value].sort(); + + // 鐒跺悗姣旇緝鎺掑簭鍚庣殑鏁扮粍鏄惁鐩哥瓑 + if (JSON.stringify(sortedAnswer) === JSON.stringify(sortedUserAnswer)) { + this.questionData.check.isRight = true; + } else { + this.questionData.check.isRight = false; + } this.showCheckAnswer = true }, @@ -1875,17 +1871,6 @@ this.questionData.check.isComplete = false this.showCheckAnswer = false }, - // 涓夌淮妯″瀷 - getModel() { - const ctx = 'https://jsek.bnuic.com' - let localStr = - './static/modelView/index.html?md5=e405ef70e49088f167a0fd613b85b7b3' + - '&name=je' + - '&domain=' + - ctx + - '&target=iframe' - this.iframSrc = localStr - } } } @@ -1906,7 +1891,8 @@ margin: 0 !important; font-size: 16px !important; position: absolute !important; - left: 40% !important; + left: 50% !important; + transform: translateX(-50%); bottom: -2% !important; } @@ -1918,4 +1904,14 @@ .choice { padding: 0% !important; } + + +hr { + margin-left: 0; + margin-bottom: 4px; + width: 15.5%; + border: none; + height: 2px; + background-color: #000; +} </style> \ No newline at end of file -- Gitblit v1.9.1