|
@@ -227,11 +227,14 @@
|
|
class="lisSty"
|
|
class="lisSty"
|
|
@click="judgeSelect(index, bankIndex)"
|
|
@click="judgeSelect(index, bankIndex)"
|
|
>
|
|
>
|
|
|
|
+ <!-- right: bankType == 1 && (index == bank.ques || index == bank.ans),
|
|
|
|
+ wrong: bankType == 1 && (index == bank.ques && bank.ques != bank.ans),
|
|
|
|
+ user_choose: bankType == 2 && (index == bank.ques), -->
|
|
<text
|
|
<text
|
|
:class="{
|
|
:class="{
|
|
- right: bankType == 1 && (index == bank.ques || index == bank.ans),
|
|
|
|
- wrong: bankType == 1 && (index == bank.ques && bank.ques != bank.ans),
|
|
|
|
- user_choose: bankType == 2 && (index == bank.ques),
|
|
|
|
|
|
+ right: bankType == 1 && ((index + 1) == bank.ques || (index + 1) == bank.ans),
|
|
|
|
+ wrong: bankType == 1 && ((index - 1) == bank.ques && bank.ques == bank.ans),
|
|
|
|
+ user_choose: bankType == 2 && (index == (bank.ques == 1 ? 0 : 1)),
|
|
}"
|
|
}"
|
|
class="activeTI"
|
|
class="activeTI"
|
|
>
|
|
>
|
|
@@ -253,7 +256,7 @@
|
|
<view v-if="bankType == 1 && bank.ques">
|
|
<view v-if="bankType == 1 && bank.ques">
|
|
<view class="pad_8 answer">
|
|
<view class="pad_8 answer">
|
|
<view>正确答案:{{ ast[bank.ans] }}</view>
|
|
<view>正确答案:{{ ast[bank.ans] }}</view>
|
|
- <view>我的答案:{{ ast[bank.ques] }}</view>
|
|
|
|
|
|
+ <view>我的答案:{{ ast[bank.ques == 1 ? 0 : 1] }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="pad_8 answerInfos">
|
|
<view class="pad_8 answerInfos">
|
|
<view class="answerTitle">答案解析</view>
|
|
<view class="answerTitle">答案解析</view>
|
|
@@ -592,12 +595,12 @@
|
|
<text
|
|
<text
|
|
:class="{
|
|
:class="{
|
|
right:
|
|
right:
|
|
- bankType == 1 && (childindex == bank.ques[ansIndex] ||
|
|
|
|
- childindex == bank.ans[ansIndex]),
|
|
|
|
|
|
+ bankType == 1 && ((childindex + 1) == bank.ques[ansIndex] ||
|
|
|
|
+ (childindex + 1) == bank.ans[ansIndex]),
|
|
wrong:
|
|
wrong:
|
|
- bankType == 1 && (childindex == bank.ques[ansIndex] &&
|
|
|
|
- bank.ques[ansIndex] != bank.ans[ansIndex]),
|
|
|
|
- user_choose: bankType == 2 && (childindex == bank.ques[ansIndex]),
|
|
|
|
|
|
+ bankType == 1 && ((childindex - 1) == bank.ques[ansIndex] &&
|
|
|
|
+ bank.ques[ansIndex] == bank.ans[ansIndex]),
|
|
|
|
+ user_choose: bankType == 2 && (childindex == (bank.ques[ansIndex] == 1 ? 0 : 1)),
|
|
}"
|
|
}"
|
|
class="activeTI"
|
|
class="activeTI"
|
|
>
|
|
>
|
|
@@ -619,7 +622,7 @@
|
|
<view v-if="bankType == 1 && bank.ques[ansIndex]">
|
|
<view v-if="bankType == 1 && bank.ques[ansIndex]">
|
|
<view class="pad_8 answer">
|
|
<view class="pad_8 answer">
|
|
<view>正确答案:{{ ast[bank.ans[ansIndex]] }}</view>
|
|
<view>正确答案:{{ ast[bank.ans[ansIndex]] }}</view>
|
|
- <view>我的答案:{{ ast[bank.ques[ansIndex]] }}</view>
|
|
|
|
|
|
+ <view>我的答案:{{ ast[bank.ques[ansIndex] == 1 ? 0 : 1] }}</view>
|
|
</view>
|
|
</view>
|
|
<view class="pad_8 answerInfos">
|
|
<view class="pad_8 answerInfos">
|
|
<view class="answerTitle">答案解析</view>
|
|
<view class="answerTitle">答案解析</view>
|
|
@@ -888,7 +891,7 @@ export default {
|
|
current: 0,
|
|
current: 0,
|
|
questionList: [],
|
|
questionList: [],
|
|
ast: ["A", "B", "C", "D", "E", "F", "G"],
|
|
ast: ["A", "B", "C", "D", "E", "F", "G"],
|
|
- judge: ["错误", "正确"],
|
|
|
|
|
|
+ judge: ["正确", "错误"],
|
|
ans: [],
|
|
ans: [],
|
|
ques: [],
|
|
ques: [],
|
|
show: false,
|
|
show: false,
|
|
@@ -1879,8 +1882,8 @@ export default {
|
|
// if (this.questionList[bindex].ques) return;
|
|
// if (this.questionList[bindex].ques) return;
|
|
if (this.questionList[bindex].ques && this.bankType == 1) {
|
|
if (this.questionList[bindex].ques && this.bankType == 1) {
|
|
return
|
|
return
|
|
- }
|
|
|
|
- this.$set(this.questionList[bindex], "ques", index + "");
|
|
|
|
|
|
+ }// 答案: 判断题1正确 0错误
|
|
|
|
+ this.$set(this.questionList[bindex], "ques", index == 0 ? '1' : '0');
|
|
this.isDoOver();
|
|
this.isDoOver();
|
|
// 回答错误
|
|
// 回答错误
|
|
// if (this.questionList[bindex].ques != this.questionList[bindex].ans) {
|
|
// if (this.questionList[bindex].ques != this.questionList[bindex].ans) {
|
|
@@ -1919,7 +1922,7 @@ export default {
|
|
if (this.questionList[bindex].ques[ansindex] && this.bankType == 1) {
|
|
if (this.questionList[bindex].ques[ansindex] && this.bankType == 1) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- this.$set(this.questionList[bindex].ques, ansindex, childindex + "");
|
|
|
|
|
|
+ this.$set(this.questionList[bindex].ques, ansindex, childindex == 0 ? '1' : '0');
|
|
this.isDoOver();
|
|
this.isDoOver();
|
|
},
|
|
},
|
|
|
|
|