| | |
| | | type: Boolean, |
| | | value: false, |
| | | }, |
| | | showId: { |
| | | type: String |
| | | }, |
| | | isShowDialog: { |
| | | type: Boolean |
| | | }, |
| | | joinGroup:{ |
| | | type:Boolean |
| | | } |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | 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 |
| | | ), |
| | | }); |
| | | } else if (this.properties.answerType == "option") { |
| | | } else if (this.properties.answerType == "mock") { |
| | | this.setData({ |
| | | useTime: this.formatTime( |
| | | this.properties.mockSumTime - this.properties.countdownTime |
| | |
| | | this.timeout(); |
| | | } |
| | | }, |
| | | isShowDialog: function (newValue, oldValue) { |
| | | if (newValue) |
| | | this.setData({ |
| | | testReportState: newValue, |
| | | }); |
| | | } |
| | | }, |
| | | created() {}, |
| | | |
| | |
| | | radioItem: e.detail.value, |
| | | }); |
| | | const value = e.detail.value == "night" ? true : false; |
| | | wx.setNavigationBarColor({ |
| | | backgroundColor: "#222", |
| | | frontColor: "#222", |
| | | }); |
| | | |
| | | this.triggerEvent("changeBGColor", { |
| | | value |
| | | }); |
| | |
| | | // 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) => { |