| | |
| | | }, |
| | | // 提交逻辑 |
| | | submitPaper() { |
| | | |
| | | // 关闭退出页面监听 |
| | | wx.disableAlertBeforeUnload() |
| | | this.setData({ |
| | | submitStatus: true |
| | | submitStatus: true, |
| | | loading: true |
| | | }) |
| | | const child = this.selectComponent('#question-options') |
| | | if (this.data.answerType == 'option' || this.data.answerType == 'errorQuestion' || this.data.answerType == 'mock') { |
| | |
| | | }) |
| | | child.openTestReportDialog() |
| | | } |
| | | |
| | | this.setData({ |
| | | loading: false |
| | | }) |
| | | }, |
| | | // 初始化函数 |
| | | async init() { |
| | |
| | | } |
| | | if (mocklist.length && this.data.uuid) { |
| | | const oldMockData = mocklist.find((mockItem) => mockItem.id == this.data.uuid) |
| | | debugger |
| | | this.setData({ |
| | | 'mockData.state': oldMockData.state, |
| | | 'mockData.score': oldMockData.score, |