|
@@ -1,11 +1,7 @@
|
|
|
<template>
|
|
|
<view class="questionBank">
|
|
|
<nav-bar title="全部解析"></nav-bar>
|
|
|
- <swiper
|
|
|
- class="swiper"
|
|
|
- :current="current"
|
|
|
- @change="swiperChange"
|
|
|
- >
|
|
|
+ <swiper class="swiper" :current="current" @change="swiperChange">
|
|
|
<swiper-item v-for="(bank, bankIndex) in questionList" :key="bankIndex">
|
|
|
<view class="pageContent">
|
|
|
<view class="pad_8 titBox">
|
|
@@ -280,11 +276,8 @@
|
|
|
问题{{ tabIndex + 1 }}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view
|
|
|
- v-for="(ansItem, ansIndex) in bank.jsonStr"
|
|
|
- v-if="bank.current == ansIndex"
|
|
|
- :key="ansIndex"
|
|
|
- >
|
|
|
+ <!-- v-if="bank.current == ansIndex" -->
|
|
|
+ <view v-for="(ansItem, ansIndex) in bank.jsonStr" :key="ansIndex">
|
|
|
<template v-if="ansItem.type == 1">
|
|
|
<view class="pad_8 titBox">
|
|
|
<view class="leftLetters">
|
|
@@ -358,7 +351,7 @@
|
|
|
<view class="pad_8 answerInfos">
|
|
|
<view class="answerTitle">答案解析</view>
|
|
|
<view class="answerContent">
|
|
|
- <rich-text :nodes="option.analysisContent"></rich-text>
|
|
|
+ <rich-text :nodes="ansItem.analysisContent"></rich-text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -662,7 +655,7 @@ export default {
|
|
|
this.chapterId = option.chapterId || "";
|
|
|
this.moduleId = option.moduleId || "";
|
|
|
this.recordId = option.recordId || "";
|
|
|
- this.courseType = option.courseType
|
|
|
+ this.courseType = option.courseType;
|
|
|
let showDialog = uni.getStorageSync("showDialog");
|
|
|
|
|
|
if (showDialog) {
|
|
@@ -685,14 +678,13 @@ export default {
|
|
|
goodsQuestionList() {
|
|
|
if (this.courseType == 2) {
|
|
|
this.$api.bankReportData(this.recordId).then((res) => {
|
|
|
- this.questionList = JSON.parse(res.data.data.historyExamJson)
|
|
|
- })
|
|
|
+ this.questionList = JSON.parse(res.data.data.historyExamJson);
|
|
|
+ });
|
|
|
} else {
|
|
|
this.$api.examReport(this.recordId).then((res) => {
|
|
|
this.questionList = JSON.parse(res.data.data.historyExamJson);
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
|
|
|
openFooterTab() {
|