From 253245731d2b0c5ea4994a9c4e17ad6b60136f2c Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期二, 09 四月 2024 15:38:26 +0800 Subject: [PATCH] 答题器提交功能优化 --- packageBookService/pages/bookServices/examination/questionOptions/index.js | 14 +++++++++----- 1 files changed, 9 insertions(+), 5 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js index 40919c9..085c692 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.js +++ b/packageBookService/pages/bookServices/examination/questionOptions/index.js @@ -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