| | |
| | | showId: lastItem.id |
| | | }); |
| | | }, |
| | | |
| | | // 我的错题,收藏查看解析按钮 |
| | | viewParsing() { |
| | | if ( |
| | |
| | | radioChange(citem) |
| | | } |
| | | } |
| | | const listLength = this.data.questionDataList.length - 1 |
| | | if (this.data.currentIndex < listLength) { |
| | | this.setData({ |
| | | currentIndex: this.data.currentIndex + 1 |
| | | }) |
| | | } |
| | | }, |
| | | // 输入框触发 |
| | | onChangeInput(e) { |
| | |
| | | }); |
| | | this.setData({ |
| | | loading: false, |
| | | showDialog: false, |
| | | }); |
| | | this.setData({ |
| | | isShowDialog: true, |
| | | submitStatus: true, |
| | | }); |
| | |
| | | // 初始化函数 |
| | | async init(isReset) { |
| | | this.setData({ |
| | | loading: false, |
| | | isShowDialog: false, |
| | | loading: true, |
| | | }); |
| | | const questuionName = this.data.questuionName |
| | | const questuionList = pastData.postData.list |
| | |
| | | }, |
| | | async restart() { |
| | | this.setData({ |
| | | isShowDialog: false, |
| | | currentIndex: 0, |
| | | submitStatus: false, |
| | | }); |
| | |
| | | this.setData({ |
| | | questionDataList: newArr, |
| | | scoreDataList: scoreArr, |
| | | loading: false, |
| | | }) |
| | | } catch (error) { |
| | | this.setData({ |
| | | questionDataList: newArr, |
| | | scoreDataList: scoreArr |
| | | scoreDataList: scoreArr, |
| | | loading: false, |
| | | }) |
| | | console.log(error); |
| | | } |
| | | const e = { |
| | | detail: { |
| | | index: 0 |
| | | } |
| | | }; |
| | | this.changeSwiper(e) |
| | | }); |
| | | }, |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | // 记录模考答题数据 |
| | | saveMockData() { |