From c718c815aef6ecb4175dc8ea7902a4adf0287714 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 22 十月 2024 15:20:33 +0800 Subject: [PATCH] 数学 --- src/books/mathBook/view/components/chapter001.vue | 4 ++-- src/components/examinations/index.vue | 15 ++++++--------- src/books/mathBook/view/components/index.vue | 3 +-- 3 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/books/mathBook/view/components/chapter001.vue b/src/books/mathBook/view/components/chapter001.vue index a0b673c..96ae31c 100644 --- a/src/books/mathBook/view/components/chapter001.vue +++ b/src/books/mathBook/view/components/chapter001.vue @@ -862,14 +862,14 @@ <img class="img-gn2" alt="" src="../../assets/images/hzjl.jpg" /> </p> </div> - <examinations :cardList="questionData[19][1]" :hideCollect="true" sourceType="json" inputBc="#d3edfa" + <examinations :cardList="questionData[19] ? questionData[19][1] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" v-if="questionData"></examinations> </div> <p class="left"> <img class="img-gn" alt="" src="../../assets/images/stlx.jpg" /> </p> <div class="bj"> - <examinations :cardList="questionData[19][2]" :hideCollect="true" sourceType="json" inputBc="#d3edfa" + <examinations :cardList="questionData[19] ? questionData[19][2] : []" :hideCollect="true" sourceType="json" inputBc="#d3edfa" v-if="questionData"></examinations> </div> </div> diff --git a/src/books/mathBook/view/components/index.vue b/src/books/mathBook/view/components/index.vue index 417892c..e57b77c 100644 --- a/src/books/mathBook/view/components/index.vue +++ b/src/books/mathBook/view/components/index.vue @@ -241,7 +241,6 @@ // 婊氬姩鐩戝惉 scrollFun(event) { this.handleVideoPicture(); - // 鍒ゆ柇鍚戜笂婊氬姩杩樻槸鍚戜笅婊氬姩 if (event.target.scrollTop > this.previousScrollTop) { // 鍚戜笅 @@ -903,7 +902,7 @@ ]; if (this.questionId) { if (this.questionId[num] && this.questionId[num][page]) { - if (num != this.questionDataIndex) { + if (num != this.questionDataIndex || !this.questionList.length) { // 鍒ゆ柇褰撳墠绔犺妭鐨勯鐩甹son鏄惁宸茬粡璇锋眰杩� const res = await axios.get( this.config.activeBook.resourceUrl + "/question-" + num + ".json" diff --git a/src/components/examinations/index.vue b/src/components/examinations/index.vue index 2d35390..4cdcd5c 100644 --- a/src/components/examinations/index.vue +++ b/src/components/examinations/index.vue @@ -33,7 +33,6 @@ </span> <!-- 鍚姏杩涘害鏉� --> <!-- <answerAudioPlayer :audioUrl="value.src" v-show="item.name == '鍚姏棰�'" /> --> - <!-- 浠呮枃瀛� --> <p class="titleText text-fl" @@ -103,18 +102,17 @@ v-html="itemText" class="input-txt" ></span> - <el-select + <el-select v-else v-model="value.userAnswer" :disabled="value.isComplete" > <el-option - v-for="citem in value.option" - :key="citem.index" - :label="citem.txt" - :value="citem.value" + v-for="(citem,cindex) in value.option" + :key="cindex + 'dropdown'" + :label="citem" + :value="citem" > - </el-option> </el-select> </span> @@ -277,7 +275,6 @@ <div class="analysis" v-if="value.isComplete"> <el-collapse v-model="value.isUnfold" - @change="handleChange(value)" accordion v-if="value.questionType != 'shortAnswer'" > @@ -378,8 +375,8 @@ ></div> <div v-else>鏆傛棤鏁版嵁</div> </el-collapse-item> - <!-- 涓昏棰� --> </el-collapse> + <!-- 涓昏棰� --> <el-collapse v-else v-model="value.isUnfold" accordion> <el-collapse-item :name="value.id" class="objective"> <template #title> -- Gitblit v1.9.1