From cd98c69ff835643f518337ee9ab532885c647efb Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期五, 15 三月 2024 18:48:39 +0800
Subject: [PATCH] 合并代码

---
 pages/bookServices/examination/questionOptions/index.wxml |  143 +++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 137 insertions(+), 6 deletions(-)

diff --git a/pages/bookServices/examination/questionOptions/index.wxml b/pages/bookServices/examination/questionOptions/index.wxml
index 10464c9..1130cc8 100644
--- a/pages/bookServices/examination/questionOptions/index.wxml
+++ b/pages/bookServices/examination/questionOptions/index.wxml
@@ -1,24 +1,155 @@
 <!--pages/bookServices/examination/questionOptions/index.wxml-->
 <view class="page-bottom">
-  <view class="li-option">
-    <t-image src="/static/images/bookService/examination/collect.png"></t-image>
+  <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>
-  <view class="li-option">
+  <view class="li-option" bind:tap="handlePopup">
     <t-image
       src="/static/images/bookService/examination/questionCard.png"
     ></t-image>
     绛旈鍗�
   </view>
-  <view class="li-option">
+  <view class="li-option" bind:tap="setUpBtn">
     <t-image src="/static/images/bookService/examination/setting.png"></t-image>
     璁剧疆
   </view>
-  <view class="li-option">
+  <view
+    class="li-option"
+    bind:tap="resterBtn"
+    wx:if="{{answerType == 'option' || answerType == 'mock'}}"
+  >
     <t-image src="/static/images/bookService/examination/reset.png"></t-image>
     閲嶅仛
   </view>
   <view class="bottom-submit">
-    <t-button theme="primary" size="large" style="{{btnStyle}}">鎻愪氦</t-button>
+    <t-button
+      theme="primary"
+      size="large"
+      style="{{btnStyle}}"
+      bind:tap="submitBtn"
+      >{{(answerType == 'option' || answerType == 'mock') ? '鎻愪氦' :
+      '閫�鍑�'}}</t-button
+    >
   </view>
 </view>
+
+<!-- 绛旈鍗� -->
+<t-popup
+  visible="{{questionCardState}}"
+  bind:visible-change="onVisibleChange"
+  placement="bottom"
+>
+  <view class="popup-block">
+    <view class="popup-header">
+      <view class="popup-title">绛旈鍗�</view>
+    </view>
+    <view class="question-explain">
+      <view class="explain-answered">
+        <text class="answered explain-color-box"></text>
+        <text>宸茬瓟</text>
+      </view>
+      <view class="explain-un-answered">
+        <text class="un-answered explain-color-box"></text>
+        <text>鏈瓟</text>
+      </view>
+    </view>
+    <view class="question-card-list">
+      <view wx:for="{{cardList}}" class="card-box">
+        <!-- 棰樺瀷 -->
+        <view class="question-title">
+          <text class="color-box"></text>
+          <text class="title-text">{{item.catalogName}}</text>
+        </view>
+        <view class="question-list">
+          <view
+            bind:tap="goQuestion"
+            data-id="{{citem.id}}"
+            wx:for="{{item.infoList}}"
+            wx:for-item="citem"
+            wx:for-index="cindex"
+            class="question-box {{citem.isComplete ? 'answered' : 'un-answered'}}"
+          >
+            {{citem.number}}
+          </view>
+        </view>
+      </view>
+    </view>
+  </view>
+</t-popup>
+
+<!-- 璁剧疆 -->
+<t-popup
+  visible="{{setUpPopup}}"
+  bind:visible-change="onSetUpChange"
+  placement="bottom"
+>
+  <view class="popup-block set-up-popup">
+    <view class="popup-header">
+      <view class="popup-title">璁剧疆</view>
+    </view>
+    <!-- 浜害 -->
+    <view>
+      <t-slider defaultValue="{{30}}" theme="capsule" />
+    </view>
+    <!-- 妯″紡 -->
+  </view>
+</t-popup>
+
+<!-- 娴嬭瘯鎶ュ憡 -->
+
+<t-dialog
+  class="test-report"
+  visible="{{testReportState}}"
+  cancel-btn="{{null}}"
+  confirm-btn="{{null}}"
+  close-btn="{{true}}"
+  title="娴嬭瘯鎶ュ憡"
+  bind:close="closeTestReportDialog"
+>
+  <view slot="content" class="test-report">
+    <view class="report-content-top">
+      <view class="report-li">
+        <view class="report-li-left">棰樼洰鎬绘暟锛�</view>
+        <view class="report-li-right">{{questionDataList.length}}閬�</view>
+      </view>
+      <view class="report-li">
+        <view class="report-li-left">鐢ㄦ椂锛�</view>
+        <view class="report-li-right">{{useTime}}</view>
+      </view>
+      <view class="report-li">
+        <view class="report-li-left">鍏朵腑瀹㈣棰橈細</view>
+        <view class="report-li-right"
+          >{{subjectiveTotal}}閬擄紝鍒嗗�納{subjectiveGrade}}鍒�</view
+        >
+      </view>
+      <view class="report-li">
+        <view class="report-li-left">绛斿锛�</view>
+        <view class="report-li-right"
+          ><text class="correct-color">{{correctNum}}</text> 閬�</view
+        >
+      </view>
+      <view class="report-li">
+        <view class="report-li-left">绛旈敊锛�</view>
+        <view class="report-li-right"
+          ><text class="error-color">{{subjectiveTotal - correctNum}}</text>
+          閬�</view
+        >
+      </view>
+      <view class="report-li">
+        <view class="report-li-left">瀹㈣棰樺緱鍒嗭細</view>
+        <view class="report-li-right"
+          ><text class="score-color">{{subjectiveNum}}</text> 鍒�</view
+        >
+      </view>
+    </view>
+    <view class="report-content-bottom">
+      <t-button theme="primary" bind:tap="viewAnswer" style="width: 560rpx"
+        >鏌ョ湅绛旀涓庤В鏋�</t-button
+      >
+    </view>
+  </view>
+</t-dialog>

--
Gitblit v1.9.1