From f72f8966ba4e1715e8df82d5cf1c7e912b6da719 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期一, 01 四月 2024 10:21:07 +0800
Subject: [PATCH] 检索的bug

---
 packageBookService/pages/bookServices/examination/questionList/index.wxml |   58 ++++++++++++++++++++++++++++++++++++----------------------
 1 files changed, 36 insertions(+), 22 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/questionList/index.wxml b/packageBookService/pages/bookServices/examination/questionList/index.wxml
index 0a37b80..22ae54e 100644
--- a/packageBookService/pages/bookServices/examination/questionList/index.wxml
+++ b/packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -30,30 +30,25 @@
         <text>{{item.number}}.</text>
         <!-- 浠呮枃瀛� -->
         <view
+          class="title-content"
           wx:if="{{item.stemStyle == 'Txt' && item.questionType != 'completion'}}"
           >{{item.stem.stemTxt}}</view
         >
         <!-- 浠呭浘鐗� -->
-        <view wx:elif="{{item.stemStyle == 'Image'}}">
-          <t-image src="{{item.stem.stemImage}}" />
+        <view wx:elif="{{item.stemStyle == 'Image'}}" class="title-content">
+          <image src="{{item.stem.stemImage}}" mode="aspectFit" />
         </view>
         <!-- 鍥剧墖鍔犳枃瀛� -->
         <view
           wx:elif="{{item.stemStyle == 'TxtAndImage'}}"
-          class="title-TxtAndImage"
+          class="title-content"
         >
-          <text>{{item.stem.stemTxt}}</text>
-          <t-image src="{{item.stem.stemImage}}" />
+          <view>{{item.stem.stemTxt}}</view>
+          <image src="{{item.stem.stemImage}}" mode="aspectFit" />
         </view>
         <!-- 瀵屾枃鏈� -->
-        <view
-          wx:elif="{{item.stemStyle == 'RichText'}} "
-          class="title-RichText"
-        >
-          <rich-text
-            nodes="{{item.stem.stemTxt}}"
-            style="height: 100%"
-          ></rich-text>
+        <view wx:elif="{{item.stemStyle == 'RichText'}} " class="title-content">
+          <mp-html content="{{item.stem.stemTxt}}" />
         </view>
         <!-- 濉┖棰� -->
         <view wx:if="{{item.questionType == 'completion'}}">
@@ -119,16 +114,18 @@
                 <!-- 浠呭浘鐗� -->
                 <view wx:if="{{item.optionStyle == 'Image'}}" class="fl-center">
                   <text>{{contentItem.value}}銆�</text>
-                  <t-image src="{{contentItem.img}}" />
+                  <image src="{{contentItem.img}}" mode="aspectFit" />
                 </view>
                 <!-- 鏂囧瓧鍔犲浘鐗� -->
                 <view
                   wx:if="{{item.optionStyle == 'TxtAndImage'}}"
                   class="fl-center"
+                  style="height: min-content"
                 >
                   <text>{{contentItem.value}}銆�</text>
-                  <text>{{contentItem.txt}}</text>
-                  <t-image src="{{contentItem.img}}" />
+                  <text class="radio-textimg">{{contentItem.txt}}</text>
+
+                  <image src="{{contentItem.img}}" mode="aspectFit" />
                 </view>
                 <!-- 瀵屾枃鏈� -->
                 <view
@@ -174,21 +171,25 @@
             <t-checkbox
               block="{{false}}"
               value="{{contentItem.value}}"
-              style="background-color:{{isNight ? '#222' :'#fff'}}; "
+              style="background-color:{{isNight ? '#222' :'#F9F9F9'}}; display: flex; align-items: center; margin-bottom: 20rpx;"
             >
               <!-- 浠呮枃瀛� -->
-              <text
+              <view
+                class="fl-center"
                 wx:if="{{item.optionStyle == 'Txt'}}"
                 style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
-                >{{contentItem.value}}銆亄{contentItem.txt}}</text
               >
+                <text>{{contentItem.value}}銆�</text>
+                <text class="check-text-box">{{contentItem.txt}}</text>
+              </view>
+
               <!-- 浠呭浘鐗� -->
               <view wx:if="{{item.optionStyle == 'Image'}}" class="fl-center">
                 <text
                   style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
                   >{{contentItem.value}}銆�</text
                 >
-                <t-image src="{{contentItem.img}}" />
+                <image src="{{contentItem.img}}" mode="aspectFit" />
               </view>
               <!-- 鏂囧瓧鍔犲浘鐗� -->
               <view
@@ -203,10 +204,17 @@
                   style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;"
                   >{{contentItem.txt}}</text
                 >
-                <t-image src="{{contentItem.img}}" />
+                <image
+                  src="{{contentItem.img}}"
+                  wx:if="{{contentItem.img}}"
+                  mode="aspectFit"
+                />
               </view>
               <!-- 瀵屾枃鏈� -->
-              <view wx:if="{{item.optionStyle == 'RichText'}}">
+              <view
+                wx:if="{{item.optionStyle == 'RichText'}}"
+                class="check-rich-box"
+              >
                 <text>{{contentItem.value}}銆�</text>
                 <rich-text
                   nodes="{{contentItem.txt}}"
@@ -234,6 +242,12 @@
           style="background-color:{{isNight ? '#000' : '#fff'}}; "
         />
       </view>
+      <!-- 鎴戠殑閿欓銆佹敹钘忔ā寮忎笅锛屾煡鐪嬭В鏋愭寜閽� -->
+      <view
+        wx:if="{{(answerType == 'collectQuestion' || answerType ==  'errorQuestion') && (item.questionType == 'multipleChoice' || item.questionType ==  'completion' || item.questionType == 'shortAnswer')}}"
+      >
+        鏌ョ湅瑙f瀽
+      </view>
       <!-- 鍗曢�夈�佸閫夎В鏋� -->
       <view
         class="analysis"

--
Gitblit v1.9.1