From cb6bb8bda31df75afe5a5bd50fe8e3ff6a3d34e2 Mon Sep 17 00:00:00 2001
From: 闫增涛 <1829501689@qq.com>
Date: 星期一, 15 四月 2024 09:31:39 +0800
Subject: [PATCH] 详情页bug修改,资源购买页添加骨架屏

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

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

--
Gitblit v1.9.1