From 092b8c442d686354a738b8ef423dac9516442d92 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期一, 01 七月 2024 10:42:25 +0800 Subject: [PATCH] 数学json题目请求修改 --- src/books/childHealth/view/content/components/chapter008.vue | 4 ++-- src/components/examinations/index.vue | 9 ++++++--- src/books/mathBook/view/components/index.vue | 11 ++++++++++- src/App.vue | 2 +- src/books/childHealth/view/content/index.vue | 2 +- 5 files changed, 20 insertions(+), 8 deletions(-) diff --git a/src/App.vue b/src/App.vue index ef3b19b..58ee2a9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,7 +65,7 @@ process.env.VUE_APP_RESOURCE_CTX + (process.env.VUE_APP_ENV == "product" ? process.env.VUE_APP_BOOK_ID - : "english") + : "mathBook") ); // 娴嬭瘯璇曡30椤� // this.activeBook.tryPageCount = 10; diff --git a/src/books/childHealth/view/content/components/chapter008.vue b/src/books/childHealth/view/content/components/chapter008.vue index 256dd23..c6ade5d 100644 --- a/src/books/childHealth/view/content/components/chapter008.vue +++ b/src/books/childHealth/view/content/components/chapter008.vue @@ -1521,12 +1521,12 @@ <div class="fl fl-around openImgBox"> <div class="left" style="width: 40%"> <p class="center"> - <img src="../../../assets/images/chapterEight/0238-3.jpg" class="w100"> + <img src="../../../assets/images/chapterEight/0238-3.jpg" style="height: 178px;"> </p> <p class="img">鍥�8-6 鍗曟墜鑳稿鎸夊帇</p> </div> <div class="right" style="width: 40%"> - <div class="banshi openImgBox" style="height:214px"> + <div class="banshi openImgBox" style="height:188px"> <div class="swiper-container swiper-img"> <div class="swiper-wrapper"> <div class="swiper-slide"> diff --git a/src/books/childHealth/view/content/index.vue b/src/books/childHealth/view/content/index.vue index 0b2d947..213ed4f 100644 --- a/src/books/childHealth/view/content/index.vue +++ b/src/books/childHealth/view/content/index.vue @@ -229,7 +229,7 @@ // 娴嬭瘯椤甸潰璺宠浆 // setTimeout(() => { - // this.gotoPage(8,175); + // this.gotoPage(8,233); // setTimeout(() => { // this.renderSign("Highlight", { // id: "2ACA9359", diff --git a/src/books/mathBook/view/components/index.vue b/src/books/mathBook/view/components/index.vue index 87f357e..bd0e2e3 100644 --- a/src/books/mathBook/view/components/index.vue +++ b/src/books/mathBook/view/components/index.vue @@ -866,8 +866,17 @@ if (!res.data.data) return []; for (let index = 0; index < res.data.data.length; index++) { const item = res.data.data[index]; + // 鏁板鍏紡鍔犵被鍚嶅幓淇敼鏍峰紡 + if(item.type && item.type == 'material') { + if(!item.infoList.length) return false + item.infoList.forEach(citem => { + if(citem.answer) citem.answer.replace(/\<math/gi, '<math class="examination-math"') + }) + } else { + if(item.answer) item.answer.replace(/\<math/gi, '<math class="examination-math"') + } + console.log('棰樼洰',item); item.isCollect = this.collectId.indexOf(item.id) > -1 ? true :false - console.log(item.id ,this.collectId.indexOf(item.id)); if (this.questionId[num][page].indexOf(item.id) > -1) { if (item.type && item.type == "material") { cardList.push(item); diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index 5192350..3eb2645 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -371,14 +371,14 @@ </template> <div class="referBox"> <span>鍙傝�冪瓟妗堬細</span> - <p - v-html="arrayToString(value.answer)" + <span + v-html="value.answer" class="ti-2" :class="[ 'subjectiveBox', value.isUnfold ? 'showText' : 'hideText', ]" - ></p> + ></span> </div> <!-- 瑙f瀽 --> <div class="referBox" v-if="value.analysisCon"> @@ -1204,6 +1204,9 @@ .referBox { display: flex; margin-bottom: 10px; + /deep/ math { + display: flex; + } span { width: 80px; color: #999; -- Gitblit v1.9.1