|
@@ -52,7 +52,7 @@
|
|
|
<view class="btnACs">全部解析</view>
|
|
|
</navigator>
|
|
|
<view class="btnACs" @click="doRepeat(reportdata.examId, reportdata.goodsId, reportdata.moduleExamId, reportdata.chapterExamId)">重新做题</view>
|
|
|
- <view class="btnACs" @click="backBank">继续做题</view>
|
|
|
+ <view class="btnACs" v-if="nextExamId" @click="backBank">继续做题</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="bottom">
|
|
@@ -93,8 +93,12 @@ export default {
|
|
|
reportdata: {},
|
|
|
examData:{},
|
|
|
examId:'',
|
|
|
+ moduleId:'',
|
|
|
+ goodsId:'',
|
|
|
+ chapterId:'',
|
|
|
context1: null,
|
|
|
context2: null,
|
|
|
+ nextExamId:'',
|
|
|
wrongRecordWrongNum:'',
|
|
|
};
|
|
|
},
|
|
@@ -103,11 +107,17 @@ export default {
|
|
|
async onShow() {
|
|
|
|
|
|
},
|
|
|
+
|
|
|
+
|
|
|
async onLoad(option) {
|
|
|
this.recordId = option.id;
|
|
|
this.examId = option.examId;
|
|
|
+ this.moduleId = option.moduleId || 0;
|
|
|
+ this.chapterId = option.chapterId || 0;
|
|
|
+ this.goodsId = option.goodsId || '';
|
|
|
|
|
|
this.examWrongRecordWrongNum();
|
|
|
+ this.bankExamNextExam()
|
|
|
await this.bankExam();
|
|
|
await this.examReport();
|
|
|
|
|
@@ -202,10 +212,28 @@ export default {
|
|
|
|
|
|
},
|
|
|
methods: {
|
|
|
- backBank() {
|
|
|
- uni.navigateBack({
|
|
|
- delta:1
|
|
|
+ bankExamNextExam() {
|
|
|
+ this.$api.bankExamNextExam({
|
|
|
+ chapterExamId:this.chapterId,
|
|
|
+ examId:this.examId,
|
|
|
+ goodsId:this.goodsId,
|
|
|
+ moduleExamId:this.moduleId
|
|
|
+ }).then(res => {
|
|
|
+ if(res.data.code == 500) {
|
|
|
+ this.nextExamId = '';
|
|
|
+ } else if(res.data.code == 200) {
|
|
|
+ this.nextExamId = res.data.data.examId;
|
|
|
+ }
|
|
|
})
|
|
|
+ },
|
|
|
+ backBank() {
|
|
|
+ uni.navigateTo({
|
|
|
+ url: '/pages2/bank/questionBank?id=' +this.nextExamId + '&goodsid=' + this.goodsId + '&moduleId=' + this.moduleId + '&chapterId=' + this.chapterId + ''
|
|
|
+ });
|
|
|
+
|
|
|
+ // uni.navigateBack({
|
|
|
+ // delta:1
|
|
|
+ // })
|
|
|
// uni.redirectTo({
|
|
|
// url: '/pages2/bank/my_question'
|
|
|
// });
|