From 45165fc45ec13e212de45bf9238e276959c54152 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 20 十一月 2024 18:05:50 +0800 Subject: [PATCH] 模型地址 --- src/books/civilAviation/view/components/chapter001.vue | 57 ++++++++++++++++++++++++++------------------------------- 1 files changed, 26 insertions(+), 31 deletions(-) diff --git a/src/books/civilAviation/view/components/chapter001.vue b/src/books/civilAviation/view/components/chapter001.vue index 90765c2..c8b4cce 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> @@ -1685,20 +1686,7 @@ </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 +1705,7 @@ }, data() { return { - pdfDialogRef:"", - iframSrc: "", + pdfDialogRef: "", showChoiceAnswer: false, showQuestionAnswer: false, showCheckAnswer: false, @@ -1791,7 +1778,6 @@ if (CheckQuestion) { this.questionData.check = JSON.parse(CheckQuestion); } - this.getModel() }, methods: { toUrl(val) { @@ -1842,7 +1828,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 +1870,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 +1890,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 +1903,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