From 1053bf2995141d5f73868bd2fb58deb1bc68c480 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 27 三月 2024 11:07:46 +0800 Subject: [PATCH] 图书详情,答题器bug修改 --- packageBookService/pages/bookServices/examination/questionOptions/index.js | 23 +++++++++++++++++------ 1 files changed, 17 insertions(+), 6 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js index 49b4ac6..e627970 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.js +++ b/packageBookService/pages/bookServices/examination/questionOptions/index.js @@ -48,6 +48,10 @@ mockSumTime: { type: Number, value: 0, + }, + isNight: { + type: Boolean, + value: false } }, @@ -60,7 +64,7 @@ questionCardState: false, setUpPopup: false, testReportState: false, - sliderValue: 0, + sliderValue: 36, useTime: '', radioItem: 'daytime' }, @@ -162,10 +166,9 @@ }, // 婊戝潡鍙樺寲 onChangeSlider(e) { - console.log(e); - this.setData({ - sliderValue: e.detail.value - }) + const value = e.detail.value + console.log(value); + this.triggerEvent('onChangeSlider', { value }) }, // 璁剧疆閬僵灞傜偣鍑� onSetUpChange(e) { @@ -179,6 +182,11 @@ radioItem: e.detail.value }) const value = e.detail.value == 'night' ? true : false + wx.setNavigationBarColor({ + backgroundColor: '#222', + frontColor: '#222', + }) + this.triggerEvent('changeBGColor', { value }) }, // 閲嶅仛鎸夐挳 @@ -220,6 +228,9 @@ }, // 搴曢儴鎻愪氦鎸夐挳 submitBtn() { + this.setData({ + noReady: 0 + }) // 鎴戠殑閿欓鍜屾敹钘� 鐩存帴璧版彁浜ら�昏緫 if (this.properties.answerType == 'collectQuestion' || this.properties.answerType == 'errorQuestion') { this.submitPaper() @@ -280,6 +291,6 @@ } }) this.submitPaper() - } + }, } }) -- Gitblit v1.9.1