From c4e651ac030ef5fe8870f6974fcc4658d42986c6 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期四, 21 三月 2024 14:35:01 +0800
Subject: [PATCH] 图书列表,详情页、答题器样式修改,代码合并上传测试服

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

diff --git a/packageBookService/pages/bookServices/examination/questionList/index.wxml b/packageBookService/pages/bookServices/examination/questionList/index.wxml
index d776c40..66a3bbf 100644
--- a/packageBookService/pages/bookServices/examination/questionList/index.wxml
+++ b/packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -6,7 +6,7 @@
   </view>
   <!-- 棰樼洰鍒楄〃 -->
   <swiper class="swiper" bind:change="changeSwiper" current="{{currentIndex}}">
-    <swiper-item wx:for="{{questionList}}" wx:key="{{item.id}}">
+    <swiper-item wx:for="{{questionList}}" wx:key="{{id}}">
       <!-- 棰樺共 -->
       <view class="question-stem title-score" style="color: {{isNight ? '#fff' : '#000'}};">
         <!-- 棰樺彿 -->
@@ -39,8 +39,8 @@
         <!-- 鍗曢�夐 -->
         <t-radio-group wx:if="{{item.questionType == 'singleChoice' || item.questionType == 'judge'}}" defaultValue="{{item.userAnswer}}" disabled="{{item.isComplete}}" bind:change="onChangeRadio" class="radio-group" data-value="{{item.option}}" data-id="{{item.id}}">
           <view wx:for="{{item.option}}" wx:for-item="contentItem" wx:for-index="contentIndex" wx:key="contentIndex">
-            <t-radio value="{{contentItem.value}}" icon="none" placement="right" borderless style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#000' : '#fff'}}">
-              <view class="radio-item {{item.answer == contentItem.value && item.answer == item.userAnswer  ? 'radio-correct' : item.userAnswer == contentItem.value && item.userAnswer != item.answer ?'radio-error' :''}}" style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#000' : '#fff'}}">
+            <t-radio value="{{contentItem.value}}" icon="none" placement="right" borderless>
+              <view class="radio-item {{item.userAnswer == contentItem.value ? 'radio-active' : ''}} {{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.answer == contentItem.value && item.answer == item.userAnswer  ? 'radio-correct' : item.userAnswer == contentItem.value && item.userAnswer != item.answer ?'radio-error' :'')}}">
                 <!-- 浠呮枃瀛� -->
                 <text wx:if="{{item.optionStyle == 'Txt'}}">{{contentItem.value}}銆亄{contentItem.txt}}</text>
                 <!-- 浠呭浘鐗� -->
@@ -59,8 +59,8 @@
                   <text>{{contentItem.value}}銆�</text>
                   <rich-text nodes="{{contentItem.txt}}"></rich-text>
                 </view>
-                <text wx:if="{{item.answer == contentItem.value && item.answer == item.userAnswer}}">瀵�</text>
-                <text wx:if="{{item.userAnswer == contentItem.value && item.userAnswer != item.answer}}">閿�</text>
+                <text wx:if="{{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.answer == contentItem.value && item.answer == item.userAnswer)}}">瀵�</text>
+                <text wx:if="{{(answerType == 'collectQuestion' || answerType == 'errorQuestion') && (item.userAnswer == contentItem.value && item.userAnswer != item.answer)}}">閿�</text>
               </view>
             </t-radio>
           </view>
@@ -96,15 +96,15 @@
       <!-- 瑙f瀽 -->
       <view class="analysis" wx:if="{{item.isComplete}}">
         <view class="analysis-answer">
-          <view class="answer-correct">
+          <view class="answer-correct answer-center">
             <text class="analysis-title-box">姝g‘绛旀锛�</text>
             <rich-text nodes="{{item.answer}}" style="font-size: 40rpx"></rich-text>
           </view>
-          <view class="answer-error">
+          <view class="answer-center marginL {{item.isRight ? 'answer-correct' : 'answer-error'}}" wx:if="{{item.questionType !== 'shortAnswer'}}">
             <text class="analysis-title-box">鎮ㄧ殑绛旀锛�</text><text class="answer-text">{{item.userAnswer}}</text>
           </view>
         </view>
-        <view class="analysis-text" wx:if="{{item.analysisCon}}">
+        <view class="analysis-text" wx:if="{{item.analysisCon}}" style="color: {{isNight ? '#fff' : '#000'}};">
           绛旀瑙f瀽锛�<rich-text nodes="{{item.analysisCon}}" class="analysis-content"></rich-text>
         </view>
       </view>

--
Gitblit v1.9.1