From cb15c57d0ff984f5a100cf25d560fb0a69c00984 Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期二, 16 四月 2024 18:21:05 +0800
Subject: [PATCH] 音频bug4

---
 packageBookService/pages/bookServices/examination/questionOptions/index.wxml |  148 +++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 123 insertions(+), 25 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml
index 1130cc8..270bd18 100644
--- a/packageBookService/pages/bookServices/examination/questionOptions/index.wxml
+++ b/packageBookService/pages/bookServices/examination/questionOptions/index.wxml
@@ -1,28 +1,47 @@
 <!--pages/bookServices/examination/questionOptions/index.wxml-->
-<view class="page-bottom">
-  <view class="li-option" bind:tap="setCollect">
-    <t-image
-      src="{{ questionDataList[currentIndex].isCollect ? '/static/images/bookService/detail/collecting.png' : '/static/images/bookService/examination/collect.png'}}"
-    >
-    </t-image>
+<view
+  class="page-bottom"
+  style="color: {{isNight ? '#fff' : '#000'}}; background-color:{{isNight ? '#202020' : '#fff'}}"
+>
+  <view
+    class="li-option"
+    bind:tap="setCollect"
+    style="color: {{isNight ? '#fff' : '#000'}};"
+  >
+    <image
+      src="{{ questionDataList[currentIndex].isCollect ? '/static/images/bookService/detail/collecting.png' : isNight ? '/static/images/bookService/examination/wodeshoucang-w.png' : '/static/images/bookService/examination/collect.png'}}"
+    />
     鏀惰棌
   </view>
-  <view class="li-option" bind:tap="handlePopup">
-    <t-image
-      src="/static/images/bookService/examination/questionCard.png"
-    ></t-image>
+  <view
+    class="li-option"
+    bind:tap="handlePopup"
+    style="color: {{isNight ? '#fff' : '#000'}};"
+  >
+    <image
+      src="{{isNight ? '/static/images/bookService/examination/datika-w.png' : '/static/images/bookService/examination/questionCard.png'}}"
+    />
     绛旈鍗�
   </view>
-  <view class="li-option" bind:tap="setUpBtn">
-    <t-image src="/static/images/bookService/examination/setting.png"></t-image>
+  <view
+    class="li-option"
+    bind:tap="setUpBtn"
+    style="color: {{isNight ? '#fff' : '#000'}};"
+  >
+    <image
+      src="{{isNight ? '/static/images/bookService/examination/setting-w.png' : '/static/images/bookService/examination/setting.png'}}"
+    />
     璁剧疆
   </view>
   <view
     class="li-option"
     bind:tap="resterBtn"
-    wx:if="{{answerType == 'option' || answerType == 'mock'}}"
+    wx:if="{{answerType == 'option' || (answerType == 'mock' && !submitStatus)}}"
+    style="color: {{isNight ? '#fff' : '#000'}};"
   >
-    <t-image src="/static/images/bookService/examination/reset.png"></t-image>
+    <image
+      src="{{isNight ? '/static/images/bookService/examination/chongzuo-w.png' : '/static/images/bookService/examination/reset.png'}}"
+    />
     閲嶅仛
   </view>
   <view class="bottom-submit">
@@ -31,8 +50,8 @@
       size="large"
       style="{{btnStyle}}"
       bind:tap="submitBtn"
-      >{{(answerType == 'option' || answerType == 'mock') ? '鎻愪氦' :
-      '閫�鍑�'}}</t-button
+      >{{(answerType == 'option' || answerType == 'mock') && !submitStatus ?
+      '鎻愪氦' : '閫�鍑�'}}</t-button
     >
   </view>
 </view>
@@ -48,19 +67,45 @@
       <view class="popup-title">绛旈鍗�</view>
     </view>
     <view class="question-explain">
-      <view class="explain-answered">
+      <view
+        class="explain-answered"
+        wx:if="{{answerType == 'collectQuestion' || answerType == 'errorQuestion' || (answerType == 'option' && !submitStatus) || (answerType == 'mock' && !submitStatus)}}"
+      >
         <text class="answered explain-color-box"></text>
         <text>宸茬瓟</text>
       </view>
-      <view class="explain-un-answered">
+      <view
+        class="explain-un-answered"
+        wx:if="{{answerType == 'collectQuestion' || answerType == 'errorQuestion' || (answerType == 'option' && !submitStatus) || (answerType == 'mock' && !submitStatus)}}"
+      >
         <text class="un-answered explain-color-box"></text>
         <text>鏈瓟</text>
       </view>
+      <view
+        class="error-box"
+        wx:if="{{((answerType == 'option' || answerType == 'mock') && submitStatus) || answerType == 'collectQuestion' || answerType == 'errorQuestion'}}"
+      >
+        <text
+          class="explain-color-box"
+          style="background-color: #ee1818"
+        ></text>
+        <text>閿欒</text>
+      </view>
+      <view
+        class="correct-box"
+        wx:if="{{((answerType == 'option' || answerType == 'mock') && submitStatus) || answerType == 'collectQuestion' || answerType == 'errorQuestion'}}"
+      >
+        <text
+          class="explain-color-box"
+          style="background-color: #1fbc1f"
+        ></text>
+        <text>姝g‘</text>
+      </view>
     </view>
     <view class="question-card-list">
-      <view wx:for="{{cardList}}" class="card-box">
+      <view wx:for="{{cardList}}" wx:key="index" class="card-box">
         <!-- 棰樺瀷 -->
-        <view class="question-title">
+        <view class="question-title" wx:if="{{item.infoList.length}}">
           <text class="color-box"></text>
           <text class="title-text">{{item.catalogName}}</text>
         </view>
@@ -71,7 +116,8 @@
             wx:for="{{item.infoList}}"
             wx:for-item="citem"
             wx:for-index="cindex"
-            class="question-box {{citem.isComplete ? 'answered' : 'un-answered'}}"
+            wx:key="cindex"
+            class="question-box {{ citem.isUserAnswer ? 'answered' : 'un-answered' }} {{ ( ((answerType == 'option' || answerType == 'mock') && submitStatus || answerType == 'collectQuestion' || answerType == 'errorQuestion')  && citem.questionType !== 'shortAnswer' )  ? citem.isRight ? 'correct-box-color' : 'error-box-color' : ''}} "
           >
             {{citem.number}}
           </view>
@@ -92,10 +138,64 @@
       <view class="popup-title">璁剧疆</view>
     </view>
     <!-- 浜害 -->
-    <view>
-      <t-slider defaultValue="{{30}}" theme="capsule" />
+    <view class="brightness">
+      <text>A-</text>
+      <view class="brightness-slider">
+        <!-- <t-slider
+          value="{{sliderValue}}"
+          theme="capsule"
+          min="{{24}}"
+          max="{{100}}"
+          step="{{7}}"
+          bind:change="onChangeSlider"
+        /> -->
+        <slider
+          value="{{sliderValue}}"
+          min="{{28}}"
+          max="{{48}}"
+          step="{{7}}"
+          activeColor="#ff6c00"
+          bind:change="onChangeSlider"
+        />
+      </view>
+
+      <text>A+</text>
     </view>
     <!-- 妯″紡 -->
+    <view>
+      <t-radio-group
+        class="test-radio"
+        t-class="horizontal-box"
+        value="{{radioItem}}"
+        bind:change="onRadioChange"
+        style="margin: 0px"
+      >
+        <view class="card {{radioItem == 'daytime' ? 'card--active' : ''}}">
+          <t-radio value="daytime" icon="none" borderless>
+            <view class="radio-content" slot="content">
+              <image
+                src="{{ radioItem == 'daytime' ? '/static/images/bookService/examination/rijian-click.png' : '/static/images/bookService/examination/rijian.png'}}"
+              />
+              <text style="color: {{radioItem == 'daytime' ? '#fff':''}};"
+                >鏃ラ棿妯″紡</text
+              >
+            </view>
+          </t-radio>
+        </view>
+        <view class="card {{radioItem == 'night' ? 'card--active' : ''}}">
+          <t-radio value="night" icon="none" borderless>
+            <view class="radio-content" slot="content">
+              <image
+                src="{{ radioItem == 'night' ? '/static/images/bookService/examination/yejian-click.png' : '/static/images/bookService/examination/yejian.png'}}"
+              />
+              <text style="color: {{radioItem == 'night' ? '#fff':''}};"
+                >澶滈棿妯″紡</text
+              >
+            </view>
+          </t-radio>
+        </view>
+      </t-radio-group>
+    </view>
   </view>
 </t-popup>
 
@@ -104,9 +204,7 @@
 <t-dialog
   class="test-report"
   visible="{{testReportState}}"
-  cancel-btn="{{null}}"
   confirm-btn="{{null}}"
-  close-btn="{{true}}"
   title="娴嬭瘯鎶ュ憡"
   bind:close="closeTestReportDialog"
 >

--
Gitblit v1.9.1