| | |
| | | total: 0, // 题目总数 |
| | | cardList: [], // 提交项, |
| | | questionDataList: [], // 显示题目列表 |
| | | noData: false, |
| | | mockid: 0, |
| | | uuid: 0, |
| | | mockData: { |
| | |
| | | sliderValue: 0, // 字体滑块 |
| | | startTime: "", //进入页面当前时间 |
| | | pauseTime: 0, //暂停时间 |
| | | |
| | | }, |
| | | |
| | | /** |
| | |
| | | loading: true, |
| | | }); |
| | | const child = this.selectComponent("#question-options"); |
| | | debugger |
| | | if ( |
| | | this.data.answerType == "option" || |
| | | this.data.answerType == "errorQuestion" || |
| | |
| | | this.setData({ |
| | | currentIndex: value.currentIndex, |
| | | }); |
| | | console.log(this.data.submitStatus); |
| | | // 携带答题记录 获取题目 |
| | | await this.getQuestionList(value.dataList); |
| | | } else { |
| | |
| | | async getQuestionList(oldData) { |
| | | // 清空正确题数记录 |
| | | this.setData({ |
| | | noData: false, |
| | | cardList: [], |
| | | correctNum: 0, |
| | | }); |
| | |
| | | }, |
| | | }; |
| | | await app.MG.store.getProductDetail(query).then((res) => { |
| | | if (!res.datas.cmsDatas[0].datas.length) return this.setData({ |
| | | noData: true |
| | | }) |
| | | this.setData({ |
| | | total: res.datas.cmsDatas[0].datas.length, |
| | | }); |
| | |
| | | /\<img/gi, |
| | | '<img style="max-width: 300rpx !important;object-fit: contain;" class="stem-rich-img" ' |
| | | ); |
| | | } |
| | | // 听力题修改 |
| | | if (questionObj.questionType == 'singleChoiceArr') { |
| | | questionObj.stem.stemTxt = questionObj.stem.stemTxt |
| | | .replace( |
| | | /\<audio/gi, |
| | | '<audio @play="play" ' |
| | | ) |
| | | } |
| | | // 获取图片 |
| | | if ( |
| | |
| | | } else { |
| | | this.setData({ |
| | | loading: false, |
| | | noData: true |
| | | }); |
| | | wx.showModal({ |
| | | title: "提示", |
| | |
| | | this.getErrorDataList(); |
| | | } else { |
| | | this.setData({ |
| | | loading: true, |
| | | loading: false, |
| | | noData: true |
| | | }); |
| | | wx.showModal({ |
| | | title: "提示", |