From 12cc87a1f2f9b91359d3ca43fe052440d9890dac Mon Sep 17 00:00:00 2001
From: yiming <m13691596795@163.com>
Date: 星期二, 09 四月 2024 19:12:22 +0800
Subject: [PATCH] 购物车跳转图书详情

---
 packageBookService/pages/bookServices/examination/questionOptions/index.js |   17 +++++++++++------
 1 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js
index 40919c9..57fd7d0 100644
--- a/packageBookService/pages/bookServices/examination/questionOptions/index.js
+++ b/packageBookService/pages/bookServices/examination/questionOptions/index.js
@@ -75,7 +75,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,8 +85,9 @@
       if (
         newValue == 0 &&
         (this.properties.answerType == "option" ||
-          this.properties.answerType == "mock")
+          this.properties.answerType == "mock") && !this.properties.submitStatus
       ) {
+        debugger
         this.timeout();
       }
     },
@@ -172,7 +173,9 @@
     onChangeSlider(e) {
       const value = e.detail.value;
       console.log(value);
-      this.triggerEvent("onChangeSlider", { value });
+      this.triggerEvent("onChangeSlider", {
+        value
+      });
     },
     // 璁剧疆閬僵灞傜偣鍑�
     onSetUpChange(e) {
@@ -191,7 +194,9 @@
         frontColor: "#222",
       });
 
-      this.triggerEvent("changeBGColor", { value });
+      this.triggerEvent("changeBGColor", {
+        value
+      });
     },
     // 閲嶅仛鎸夐挳
     resterBtn() {
@@ -244,7 +249,7 @@
         this.properties.answerType == "errorQuestion"
       ) {
         this.submitPaper();
-        return wx.navigateBack();
+        // wx.navigateBack();
       } else if (
         this.properties.answerType == "option" ||
         this.properties.answerType == "mock"
@@ -305,4 +310,4 @@
       this.submitPaper();
     },
   },
-});
+});
\ No newline at end of file

--
Gitblit v1.9.1