From ccda9ec2fe70d8f51ef184eafc04b78d22dfbabd Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期三, 26 六月 2024 15:02:28 +0800
Subject: [PATCH] 小程序,教材,课程

---
 packageBookService/pages/bookServices/examination/questionOptions/index.js |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js
index 40919c9..f807034 100644
--- a/packageBookService/pages/bookServices/examination/questionOptions/index.js
+++ b/packageBookService/pages/bookServices/examination/questionOptions/index.js
@@ -52,6 +52,9 @@
       type: Boolean,
       value: false,
     },
+    showId: {
+      type: String
+    }
   },
 
   /**
@@ -75,7 +78,7 @@
             2 * 60 * 60 * 1000 - this.properties.countdownTime
           ),
         });
-      } else if (this.properties.answerType == "option") {
+      } else if (this.properties.answerType == "mock") {
         this.setData({
           useTime: this.formatTime(
             this.properties.mockSumTime - this.properties.countdownTime
@@ -85,7 +88,7 @@
       if (
         newValue == 0 &&
         (this.properties.answerType == "option" ||
-          this.properties.answerType == "mock")
+          this.properties.answerType == "mock") && !this.properties.submitStatus
       ) {
         this.timeout();
       }
@@ -172,7 +175,9 @@
     onChangeSlider(e) {
       const value = e.detail.value;
       console.log(value);
-      this.triggerEvent("onChangeSlider", { value });
+      this.triggerEvent("onChangeSlider", {
+        value
+      });
     },
     // 璁剧疆閬僵灞傜偣鍑�
     onSetUpChange(e) {
@@ -186,12 +191,9 @@
         radioItem: e.detail.value,
       });
       const value = e.detail.value == "night" ? true : false;
-      wx.setNavigationBarColor({
-        backgroundColor: "#222",
-        frontColor: "#222",
+      this.triggerEvent("changeBGColor", {
+        value
       });
-
-      this.triggerEvent("changeBGColor", { value });
     },
     // 閲嶅仛鎸夐挳
     resterBtn() {
@@ -244,7 +246,7 @@
         this.properties.answerType == "errorQuestion"
       ) {
         this.submitPaper();
-        return wx.navigateBack();
+        // wx.navigateBack();
       } else if (
         this.properties.answerType == "option" ||
         this.properties.answerType == "mock"
@@ -305,4 +307,4 @@
       this.submitPaper();
     },
   },
-});
+});
\ No newline at end of file

--
Gitblit v1.9.1