|
|
@@ -44,8 +44,8 @@
|
|
|
<image v-if="items.imgUrl && items.imgUrl !== null" :src="$method.splitImgHost(items.imgUrl)" mode="aspectFit" @click="seeBigImage(items.imgUrl)"></image>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view v-if="itemst.type === 3" class="banksChiList" :class="isWrong === 1 ? 'activeListBt' : ''" @click="activePDs(1, indexst)">正确</view>
|
|
|
- <view v-if="itemst.type === 3" class="banksChiList" :class="isWrong === 0 ? 'activeListBt' : ''" @click="activePDs(0, indexst)">错误</view>
|
|
|
+ <view v-if="itemst.type === 3" class="banksChiList" :class="isWrongs[indexst] === 1 ? 'activeListBt' : ''" @click="activePDs(1, indexst)">正确</view>
|
|
|
+ <view v-if="itemst.type === 3" class="banksChiList" :class="isWrongs[indexst] === 0 ? 'activeListBt' : ''" @click="activePDs(0, indexst)">错误</view>
|
|
|
<view class="jxTit" style="margin-bottom: 10rpx;" @click="showTitles(indexst)">
|
|
|
<span class="jxSpan">查看解析</span>
|
|
|
<u-icon name="info-circle" color="#999999" size="40"></u-icon>
|
|
|
@@ -179,6 +179,7 @@ export default {
|
|
|
alphabet: 'ABCDEFGHIJKLMNOPQRSTUVWXYZ',
|
|
|
replyL: [],
|
|
|
isWrong: -1,
|
|
|
+ isWrongs:[],
|
|
|
answerList: [], //总提交列表
|
|
|
bankId: 0, //题库ID
|
|
|
selects: [], //当前做了哪些题目
|
|
|
@@ -329,6 +330,7 @@ export default {
|
|
|
},
|
|
|
//数据清空
|
|
|
initDatas() {
|
|
|
+ this.isWrongs = []
|
|
|
this.isWrong = -1;
|
|
|
this.showJX = [];
|
|
|
this.showJXanli = [];
|
|
|
@@ -615,7 +617,10 @@ export default {
|
|
|
this.isWrong = int;
|
|
|
},
|
|
|
activePDs(int, fatInt) {
|
|
|
- this.isWrong = int;
|
|
|
+ console.log(this.replyL)
|
|
|
+ this.isWrongs[fatInt] = int
|
|
|
+ console.log(fatInt)
|
|
|
+ // this.isWrong = int;
|
|
|
if (this.replyL[fatInt] === undefined) {
|
|
|
this.replyL[fatInt] = {};
|
|
|
}
|