From b55024ee2f42aa93e0ecaa3113bdeb286f6e59ac Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期二, 29 七月 2025 18:01:55 +0800 Subject: [PATCH] 优化按钮显示,教学互动 --- packageBookService/pages/bookServices/examination/questionOptions/index.js | 18 +++++++++++++++--- 1 files changed, 15 insertions(+), 3 deletions(-) diff --git a/packageBookService/pages/bookServices/examination/questionOptions/index.js b/packageBookService/pages/bookServices/examination/questionOptions/index.js index f807034..5658306 100644 --- a/packageBookService/pages/bookServices/examination/questionOptions/index.js +++ b/packageBookService/pages/bookServices/examination/questionOptions/index.js @@ -54,6 +54,12 @@ }, showId: { type: String + }, + isShowDialog: { + type: Boolean + }, + joinGroup: { + type: Boolean } }, @@ -72,7 +78,7 @@ }, observers: { countdownTime: function (newValue, oldValue) { - if (this.properties.answerType == "option") { + if (this.properties.answerType == "option" || this.properties.answerType == 'interaction') { this.setData({ useTime: this.formatTime( 2 * 60 * 60 * 1000 - this.properties.countdownTime @@ -93,6 +99,12 @@ this.timeout(); } }, + isShowDialog: function (newValue, oldValue) { + if (newValue) + this.setData({ + testReportState: newValue, + }); + } }, created() {}, @@ -174,7 +186,6 @@ // 婊戝潡鍙樺寲 onChangeSlider(e) { const value = e.detail.value; - console.log(value); this.triggerEvent("onChangeSlider", { value }); @@ -249,7 +260,8 @@ // wx.navigateBack(); } else if ( this.properties.answerType == "option" || - this.properties.answerType == "mock" + this.properties.answerType == "mock" || + this.properties.answerType == "interaction" ) { if (this.properties.submitStatus) return wx.navigateBack(); this.properties.questionDataList.forEach((item) => { -- Gitblit v1.9.1