From 6f5904aabf18277a09e1990d9e2ec4db8b5d8f1e Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期一, 16 十二月 2024 09:32:29 +0800
Subject: [PATCH] 题库

---
 packageBookService/pages/bookServices/examination/questionList/index.wxml |    8 +++++---
 packageBookService/pages/bookServices/examination/examination.js          |    9 +++------
 packageBookService/pages/bookServices/detail/index.js                     |   10 ++++++----
 3 files changed, 14 insertions(+), 13 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/index.js b/packageBookService/pages/bookServices/detail/index.js
index 123be36..5d71e49 100644
--- a/packageBookService/pages/bookServices/detail/index.js
+++ b/packageBookService/pages/bookServices/detail/index.js
@@ -1165,14 +1165,16 @@
 
             if (isTSFW.length > 0) {
               data = res.datas.cmsDatas[0].datas.filter((item) => item.type == 'questionBankFolder' && (item.childrenFolderCount > 0 || item.childrenCount > 0) && (item.name !== '濉┖棰�' &&
-                item.name !== '鍒ゆ柇棰�' &&
-                item.name !== '澶氶�夐' &&
-                item.name !== '绠�绛旈'))
+                  item.name !== '鍒ゆ柇棰�' &&
+                  item.name !== '澶氶�夐' &&
+                  item.name !== '绠�绛旈')) &&
+                item.refCode != 'jsek_interaction'
               that.setData({
                 jslx: false,
               });
             } else {
-              data = res.datas.cmsDatas[0].datas.filter((item) => item.type == 'questionBankFolder')
+              data = res.datas.cmsDatas[0].datas.filter((item) => item.type == 'questionBankFolder' &&
+                item.refCode != 'jsek_interaction')
               that.setData({
                 jslx: true,
               });
diff --git a/packageBookService/pages/bookServices/examination/examination.js b/packageBookService/pages/bookServices/examination/examination.js
index 29ac670..038bc76 100644
--- a/packageBookService/pages/bookServices/examination/examination.js
+++ b/packageBookService/pages/bookServices/examination/examination.js
@@ -77,7 +77,6 @@
       storeInfo: options.storeInfo,
       jslx: options.jslx,
     });
-    console.log(options, 'options');
     wx.setNavigationBarTitle({
       title: options.answerTitle,
     })
@@ -300,11 +299,9 @@
     this.setData({
       sliderValue: e.detail.value,
     });
-    console.log(e.detail.value);
   },
   // 杩斿洖
   goBack() {
-    console.log(this.data.submitStatus);
     wx.navigateBack();
   },
   //璁剧疆鑳屾櫙鑹�
@@ -842,7 +839,6 @@
         catalogName: pathitem.name,
         infoList: [],
       });
-      console.log(pathList, "pathList");
       this.setData({
         cardList: pathList,
       });
@@ -937,7 +933,8 @@
             questionObj.questionType == "multipleChoice"
           ) {
             try {
-              questionObj.answer = JSON.parse(questionObj.answer).toString();
+              // questionObj.answer = JSON.parse(questionObj.answer).toString();
+              questionObj.answer = JSON.parse(questionObj.answer)
             } catch (error) {
               questionObj.answer = item.Embedded_QuestionBank_Answer;
             }
@@ -1081,7 +1078,6 @@
     }
     // 鏈夐鐩啀寮�濮嬪�掕鏃�
     if (this.data.questionDataList.length) {
-      console.log(this.data.questionDataList);
       this.startCountdown();
     } else {
       this.setData({
@@ -1443,6 +1439,7 @@
             questionObj.questionType == "completion" ||
             questionObj.questionType == "multipleChoice"
           ) {
+            console.log(questionObj.answer, "111")
             try {
               questionObj.answer = JSON.parse(questionObj.answer).toString();
             } catch (error) {
diff --git a/packageBookService/pages/bookServices/examination/questionList/index.wxml b/packageBookService/pages/bookServices/examination/questionList/index.wxml
index 4f529f1..bfc5f67 100644
--- a/packageBookService/pages/bookServices/examination/questionList/index.wxml
+++ b/packageBookService/pages/bookServices/examination/questionList/index.wxml
@@ -50,7 +50,8 @@
             <t-radio value="{{contentItem.value}}" icon="none" placement="right" borderless style="background-color: {{isNight ? '#222' : '#fff'}}">
               <view style="font-size: {{sliderValue || 32}}rpx;" 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'}}" class="text-space">{{contentItem.value}}銆亄{contentItem.txt}}</text>
+                <text wx:if="{{item.optionStyle == 'Txt' && item.questionType == 'singleChoice'}}" class="text-space">{{contentItem.value}}銆亄{contentItem.txt}}</text>
+                <text wx:if="{{item.optionStyle == 'Txt' && item.questionType == 'judge'}}" class="text-space">{{contentItem.value}}</text>
                 <!-- 浠呭浘鐗� -->
                 <view wx:if="{{item.optionStyle == 'Image'}}" class="fl-center">
                   <text>{{contentItem.value}}銆�</text>
@@ -85,7 +86,7 @@
             <t-checkbox disabled="{{item.isComplete}}" icon="rectangle" block="{{false}}" class="t-checkbox" value="{{contentItem.value}}" style="background-color:{{isNight ? '#222' :'#F9F9F9'}}; ">
               <!-- 浠呮枃瀛� -->
               <view class="fl-center mh text-space" wx:if="{{item.optionStyle == 'Txt'}}" style="color:{{ isNight  ? '#fff' : '#000'}};font-size:{{sliderValue || 32}}rpx;">
-                <text>{{contentItem.value}}銆�</text>
+                <text>{{contentItem.value}}</text>
                 <text class="check-text-box">{{contentItem.txt}}</text>
               </view>
 
@@ -120,7 +121,8 @@
         <view class="analysis-answer {{sliderValue >35 ? 'fl-cl' : '' }}">
           <view class="answer-correct answer-center" style="font-size: {{sliderValue || 32}}rpx;">
             <text class="analysis-title-box">姝g‘绛旀锛�</text>
-            <rich-text nodes="{{item.answer}}" style="font-size: {{sliderValue || 40}}rpx;"></rich-text>
+            <text style="font-size: {{sliderValue || 40}}rpx;">{{item.answer}}</text>
+            <!-- <rich-text nodes="{{item.answer}}" style="font-size: {{sliderValue || 40}}rpx;"></rich-text> -->
           </view>
           <view class="answer-center  {{item.isRight ? 'answer-correct' : 'answer-error'}}  {{sliderValue <= 35 ? 'marginL' : ''}}" wx:if="{{item.questionType !== 'shortAnswer'}}">
             <text class="analysis-title-box" style="font-size: {{sliderValue || 32}}rpx;">鎮ㄧ殑绛旀锛�</text><text class="answer-text" style="font-size: {{sliderValue || 40}}rpx;">{{item.userAnswer}}</text>

--
Gitblit v1.9.1