From e060ad2b2da9884e00b36796548eacc6a2b9a5d3 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期五, 29 三月 2024 09:44:30 +0800 Subject: [PATCH] 图书详情,列表页bug修改 --- packageBookService/pages/bookServices/examination/questionList/index.wxml | 35 +++++++++++++++++++++++++++-------- 1 files changed, 27 insertions(+), 8 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionList/index.wxml b/packageBookService/pages/bookServices/examination/questionList/index.wxml index de4ffce..0a37b80 100644 --- a/packageBookService/pages/bookServices/examination/questionList/index.wxml +++ b/packageBookService/pages/bookServices/examination/questionList/index.wxml @@ -50,7 +50,10 @@ wx:elif="{{item.stemStyle == 'RichText'}} " class="title-RichText" > - <rich-text nodes="{{item.stem.stemTxt}}"></rich-text> + <rich-text + nodes="{{item.stem.stemTxt}}" + style="height: 100%" + ></rich-text> </view> <!-- 濉┖棰� --> <view wx:if="{{item.questionType == 'completion'}}"> @@ -67,7 +70,7 @@ data-value="{{item.option}}" data-id="{{item.id}}" data-index="{{inputItem.num}}" - class="title-input" + class="title-input {{isNight ? 'input-night-color' : ''}}" style="border: 2rpx solid rgba(220,220,220,1);border-radius: 12rpx;background-color:{{isNight ? '#000' : '#fff'}}; " placeholder-style="{{placeholderstyle}}" wx:if="{{inputItem.data == 'input'}}" @@ -107,7 +110,7 @@ > <view style="font-size: {{sliderValue || 32}}rpx;" - class="radio-item {{(answerType == 'option' || answerType == 'mock' ) && !submitStatus && item.userAnswer == contentItem.value ? 'radio-active' : isNight ? 'night' :''}} {{ (item.answer == contentItem.value && item.answer == item.userAnswer && submitStatus) ? 'radio-correct' : (item.userAnswer == contentItem.value && item.userAnswer != item.answer && submitStatus) ?'radio-error' :'' }}" + class="radio-item {{(answerType == 'option' || answerType == 'mock' ) && !submitStatus && item.userAnswer == contentItem.value ? 'radio-active' : isNight ? 'night' :''}} {{item.userAnswer == contentItem.value && submitStatus ? item.isRight ? 'radio-correct' : 'radio-error' :''}}" > <!-- 浠呮枃瀛� --> <text wx:if="{{item.optionStyle == 'Txt'}}" @@ -128,9 +131,15 @@ <t-image src="{{contentItem.img}}" /> </view> <!-- 瀵屾枃鏈� --> - <view wx:if="{{item.optionStyle == 'RichText'}}"> + <view + wx:if="{{item.optionStyle == 'RichText'}}" + class="judge-rich-box" + > <text>{{contentItem.value}}銆�</text> - <rich-text nodes="{{contentItem.txt}}"></rich-text> + <rich-text + nodes="{{ contentItem.txt}}" + style="display: flex; align-items: center; width: 100%" + ></rich-text> </view> <text wx:if="{{submitStatus && (item.answer == contentItem.value && item.answer == item.userAnswer)}}" @@ -199,7 +208,10 @@ <!-- 瀵屾枃鏈� --> <view wx:if="{{item.optionStyle == 'RichText'}}"> <text>{{contentItem.value}}銆�</text> - <rich-text nodes="{{contentItem.txt}}"></rich-text> + <rich-text + nodes="{{contentItem.txt}}" + class="multipleChoice" + ></rich-text> </view> </t-checkbox> </view> @@ -211,7 +223,7 @@ bind:change="onChangeRadio" data-value="{{item.option}}" data-id="{{item.id}}" - class="option-textarea" + class="option-textarea {{isNight ? 'textarea-night-color' :''}}" wx:elif="{{item.questionType == 'shortAnswer'}}" t-class="external-class" placeholder="璇疯緭鍏ユ枃瀛�" @@ -328,8 +340,15 @@ </view> </view> </swiper-item> - <swiper-item wx:if="{{answerType !== 'collectQuestion'}}"> + <swiper-item + wx:if="{{answerType !== 'collectQuestion' && questionList.length}}" + > <text>娌℃湁鏇村浜嗐�傘�傘��</text> </swiper-item> + <swiper-item wx:if="{{!questionList.length}}"> + <view class="noData"> + <t-empty icon="folder-open" description="鏆傛棤鏁版嵁" /> + </view> + </swiper-item> </swiper> </view> -- Gitblit v1.9.1