From 69a1b05bf19d29c91f190873a842391b0c9be370 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 12 四月 2024 09:42:10 +0800 Subject: [PATCH] 答题器听力题播放完善,样式优化 --- packageBookService/pages/bookServices/examination/questionSchedule/index.wxss | 9 +++++++++ packageBookService/pages/bookServices/examination/examination.js | 26 +++++++++++++++++++++++++- packageBookService/pages/bookServices/examination/questionSchedule/index.wxml | 2 +- packageBookService/pages/bookServices/examination/questionOptions/index.js | 1 - 4 files changed, 35 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js index d5c4b7a..acc8177 100644 --- a/packageBookService/pages/bookServices/examination/examination.js +++ b/packageBookService/pages/bookServices/examination/examination.js @@ -906,7 +906,6 @@ if (src) { questionObj.src = src questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) - console.log('棰樺共', questionObj.stem.stemTxt); } } // 鑾峰彇鍥剧墖 @@ -1414,6 +1413,14 @@ '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' ); } + // 鍚姏棰樹慨鏀� + if (questionObj.questionType == 'singleChoice') { + const src = this.extractSourceSrc(questionObj.stem.stemTxt) + if (src) { + questionObj.src = src + questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) + } + } if (item.Embedded_QuestionBank_QuestionType == "judge") { questionObj.type = "鍒ゆ柇棰�"; judgeArr.push(questionObj); @@ -1653,6 +1660,15 @@ /\<img/gi, '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' ); + } + // 鍚姏棰樹慨鏀� + if (questionObj.questionType == 'singleChoice') { + const src = this.extractSourceSrc(questionObj.stem.stemTxt) + if (src) { + questionObj.src = src + questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) + console.log('棰樺共', questionObj.stem.stemTxt); + } } if (item.Embedded_QuestionBank_QuestionType == "judge") { questionObj.type = "鍒ゆ柇棰�"; @@ -1906,6 +1922,14 @@ ); }); } + // 鍚姏棰樹慨鏀� + if (questionObj.questionType == 'singleChoice') { + const src = this.extractSourceSrc(questionObj.stem.stemTxt) + if (src) { + questionObj.src = src + questionObj.stem.stemTxt = this.removeVideoAndAudioTags(questionObj.stem.stemTxt) + } + } // 鑾峰彇鍥剧墖 if ( questionObj.stemStyle == "Image" || diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js index 57fd7d0..71e18a6 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.js +++ b/packageBookService/pages/bookServices/examination/questionOptions/index.js @@ -87,7 +87,6 @@ (this.properties.answerType == "option" || this.properties.answerType == "mock") && !this.properties.submitStatus ) { - debugger this.timeout(); } }, diff --git a/packageBookService/pages/bookServices/examination/questionSchedule/index.wxml b/packageBookService/pages/bookServices/examination/questionSchedule/index.wxml index 82ecfcd..54f3b66 100644 --- a/packageBookService/pages/bookServices/examination/questionSchedule/index.wxml +++ b/packageBookService/pages/bookServices/examination/questionSchedule/index.wxml @@ -22,7 +22,7 @@ wx:if="{{!submitStatus && (answerType == 'option' || answerType == 'mock')}}" style="color: {{isNight ? '#fff' : '#000'}};" > - <view>鍓╀綑鏃堕棿 </view> + <view class="remainder-text">鍓╀綑鏃堕棿 </view> <view class="parimary-color remaining-time">{{showTime}}</view></view > </view> diff --git a/packageBookService/pages/bookServices/examination/questionSchedule/index.wxss b/packageBookService/pages/bookServices/examination/questionSchedule/index.wxss index c85408a..348e5ec 100644 --- a/packageBookService/pages/bookServices/examination/questionSchedule/index.wxss +++ b/packageBookService/pages/bookServices/examination/questionSchedule/index.wxss @@ -21,11 +21,20 @@ .remainder { display: flex; + width: 234rpx; + color: #545C63; +} + +.remainder-text { + width: 112rpx; + height: 40rpx; color: #545C63; } .remaining-time { margin-left: 6rpx; + width: 116rpx; + height: 40rpx; } .parimary-color { -- Gitblit v1.9.1