|
@@ -13,10 +13,10 @@
|
|
|
<rich-text style="font-size: 42rpx; vertical-align: top" :nodes="createProblemTypeHtml(problemList[problemListIndex].type) +
|
|
|
(problemListIndex + 1) +
|
|
|
'、' +
|
|
|
- problemList[problemListIndex].question
|
|
|
+ problemList[problemListIndex].issue
|
|
|
"></rich-text>
|
|
|
|
|
|
-<view class="problem-media">
|
|
|
+ <view class="problem-media">
|
|
|
<image mode="widthFix" v-if="getFileType(problemList[problemListIndex].mediaUrl) == 'image'"
|
|
|
:src="problemList[problemListIndex].mediaUrl"></image>
|
|
|
<video :controls="false" autoplay loop v-if="getFileType(problemList[problemListIndex].mediaUrl) == 'video'"
|
|
@@ -31,8 +31,8 @@
|
|
|
<view class="problem-radio-flex">
|
|
|
<view class="problem-radio-icon">
|
|
|
<view class="problem-radio-letter">{{
|
|
|
- numberToLetter(index)
|
|
|
- }}</view>
|
|
|
+ numberToLetter(index)
|
|
|
+ }}</view>
|
|
|
</view>
|
|
|
<text style="
|
|
|
font-size: 42rpx;
|
|
@@ -166,18 +166,18 @@
|
|
|
<view class="problem-radio-flex">
|
|
|
<view class="problem-radio-icon">
|
|
|
<icon type="clear" v-if="index + 1 ==
|
|
|
- problemList[problemListIndex].userAnswerIndex &&
|
|
|
- problemList[problemListIndex].userAnswerIndex !=
|
|
|
- problemList[problemListIndex].answertrue
|
|
|
- " class="problem-radio-letter" color="red" size="60rpx"></icon>
|
|
|
+ problemList[problemListIndex].userAnswerIndex &&
|
|
|
+ problemList[problemListIndex].userAnswerIndex !=
|
|
|
+ problemList[problemListIndex].answertrue
|
|
|
+ " class="problem-radio-letter" color="red" size="60rpx"></icon>
|
|
|
<icon type="success" v-else-if="index + 1 ==
|
|
|
- problemList[problemListIndex].userAnswerIndex &&
|
|
|
- problemList[problemListIndex].userAnswerIndex ==
|
|
|
- problemList[problemListIndex].answertrue
|
|
|
- " class="problem-radio-letter" color="#33CDA4" size="60rpx"></icon>
|
|
|
+ problemList[problemListIndex].userAnswerIndex &&
|
|
|
+ problemList[problemListIndex].userAnswerIndex ==
|
|
|
+ problemList[problemListIndex].answertrue
|
|
|
+ " class="problem-radio-letter" color="#33CDA4" size="60rpx"></icon>
|
|
|
<view v-else class="problem-radio-letter">{{
|
|
|
- numberToLetter(index)
|
|
|
- }}</view>
|
|
|
+ numberToLetter(index)
|
|
|
+ }}</view>
|
|
|
</view>
|
|
|
<text style="
|
|
|
font-size: 42rpx;
|
|
@@ -189,7 +189,7 @@
|
|
|
</view>
|
|
|
</van-radio-group>
|
|
|
</view>
|
|
|
-
|
|
|
+
|
|
|
</view>
|
|
|
<view class="bottom">
|
|
|
<view class="switch">
|
|
@@ -199,9 +199,9 @@
|
|
|
<view class="submit">
|
|
|
<view>
|
|
|
<view v-if="query.showSubmit == '1'" @click="() => {
|
|
|
- submitExamVisible = true;
|
|
|
- }
|
|
|
- " class="submit-button"><text>交卷</text>
|
|
|
+ submitExamVisible = true;
|
|
|
+ }
|
|
|
+ " class="submit-button"><text>交卷</text>
|
|
|
<countDown @change="getThreeExamTime" @end="submitExam" background="" :time="examTime"></countDown>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -210,21 +210,21 @@
|
|
|
<view class="col">
|
|
|
<icon type="success" size="26rpx" color="#33CDA4"></icon>
|
|
|
<text style="font-size: 24rpx; color: #8a9099; margin-left: 8rpx">{{
|
|
|
- trueNum
|
|
|
- }}</text>
|
|
|
+ trueNum
|
|
|
+ }}</text>
|
|
|
</view>
|
|
|
<view class="col">
|
|
|
<icon type="clear" size="26rpx" color="#FF4D53"></icon>
|
|
|
<text style="font-size: 24rpx; color: #8a9099; margin-left: 8rpx">{{
|
|
|
- falseNum
|
|
|
- }}</text>
|
|
|
+ falseNum
|
|
|
+ }}</text>
|
|
|
</view>
|
|
|
<view @click="() => {
|
|
|
- selectQuestionVisible = true
|
|
|
- }" class="col">
|
|
|
+ selectQuestionVisible = true
|
|
|
+ }" class="col">
|
|
|
<van-icon name="description" />
|
|
|
<text style="font-size: 24rpx; color: #8a9099; margin-left: 8rpx">{{ problemListIndex + 1 }}/{{
|
|
|
- problemList.length }}</text>
|
|
|
+ problemList.length }}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -250,14 +250,14 @@
|
|
|
</view>
|
|
|
<view class="bottom">
|
|
|
<view @click="() => {
|
|
|
- submitExamVisible = false;
|
|
|
- }
|
|
|
- " class="left">继续答题</view>
|
|
|
+ submitExamVisible = false;
|
|
|
+ }
|
|
|
+ " class="left">继续答题</view>
|
|
|
<view @click="() => {
|
|
|
- resultExamVisible = true;
|
|
|
- submitExamVisible = false;
|
|
|
- }
|
|
|
- " class="right">现在交卷</view>
|
|
|
+ resultExamVisible = true;
|
|
|
+ submitExamVisible = false;
|
|
|
+ }
|
|
|
+ " class="right">现在交卷</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</van-popup>
|
|
@@ -275,19 +275,19 @@
|
|
|
<view>您的成绩<text style="color: #01c18d" v-if="score >= 90">合格</text><text style="color: #ff4d53"
|
|
|
v-if="score < 90">不合格</text></view>
|
|
|
<view class="tip2-text-line3">当前已答错<text style="color: #ff4d53; padding: 0 8rpx">{{
|
|
|
- falseNum
|
|
|
- }}</text>
|
|
|
+ falseNum
|
|
|
+ }}</text>
|
|
|
题</view>
|
|
|
<view class="tip2-bottom">
|
|
|
<!-- <view class="tip2-bottom-1">试试答题技巧,提分更快</view> -->
|
|
|
<view @click="
|
|
|
- goPath('/otherPages/threeExamScore/index?score=' + score)
|
|
|
- " class="tip2-bottom-2">现在交卷</view>
|
|
|
+ goPath('/otherPages/threeExamScore/index?score=' + score)
|
|
|
+ " class="tip2-bottom-2">现在交卷</view>
|
|
|
<view @click="() => {
|
|
|
- resultExamVisible = false;
|
|
|
- submitExamVisible = false;
|
|
|
- }
|
|
|
- " class="tip2-bottom-3">继续答题</view>
|
|
|
+ resultExamVisible = false;
|
|
|
+ submitExamVisible = false;
|
|
|
+ }
|
|
|
+ " class="tip2-bottom-3">继续答题</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -310,21 +310,21 @@
|
|
|
<view class="problem-header-right">
|
|
|
<van-icon size="18px" name="description" />
|
|
|
<view style="font-size: 14px; display: flex; align-items: center">{{ problemListIndex + 1 }}/{{
|
|
|
- problemList.length }}</view>
|
|
|
+ problemList.length }}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="problem-body">
|
|
|
<scroll-view scroll-y class="problem-listBody">
|
|
|
<view class="problem-listItem" :key="index" @click="() => {
|
|
|
- problemListIndex=index
|
|
|
- }
|
|
|
- " v-for="(item, index) in problemList" :class="{
|
|
|
- 'problem-listItem_current': problemListIndex == index,
|
|
|
- 'problem-listItem_dui':
|
|
|
- item.userAnswer.length && item.userAnswer == item.answer,
|
|
|
- 'problem-listItem_cuo':
|
|
|
- item.userAnswer.length && item.userAnswer !== item.answer,
|
|
|
- }">
|
|
|
+ problemListIndex = index
|
|
|
+ }
|
|
|
+ " v-for="(item, index) in problemList" :class="{
|
|
|
+ 'problem-listItem_current': problemListIndex == index,
|
|
|
+ 'problem-listItem_dui':
|
|
|
+ item.userAnswer.length && item.userAnswer == item.answer,
|
|
|
+ 'problem-listItem_cuo':
|
|
|
+ item.userAnswer.length && item.userAnswer !== item.answer,
|
|
|
+ }">
|
|
|
{{ index + 1 }}
|
|
|
</view>
|
|
|
</scroll-view>
|
|
@@ -337,9 +337,9 @@
|
|
|
" class="problem-bottom-sure">确定
|
|
|
</view> -->
|
|
|
<view @click="() => {
|
|
|
- selectQuestionVisible = false;
|
|
|
- }
|
|
|
- " class="problem-bottom-close">
|
|
|
+ selectQuestionVisible = false;
|
|
|
+ }
|
|
|
+ " class="problem-bottom-close">
|
|
|
关闭</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -449,7 +449,9 @@ export default {
|
|
|
onLoad(query) {
|
|
|
this.query = query;
|
|
|
if (this.query.showSubmit == "1") {
|
|
|
- api.exam.studentThreeForceSelectTestQuestionInfoList().then((res) => {
|
|
|
+ api.exam.studentQuestion2InfoList({
|
|
|
+ subject: 9
|
|
|
+ }).then((res) => {
|
|
|
if (Array.isArray(res.rows) && res.rows.length > 0) {
|
|
|
res.rows.forEach((element) => {
|
|
|
element.userAnswerIndex = -1;
|
|
@@ -457,14 +459,16 @@ export default {
|
|
|
});
|
|
|
this.problemList = res.rows;
|
|
|
} else {
|
|
|
- Toast({
|
|
|
- type: "fail",
|
|
|
- message: "加载失败",
|
|
|
+ uni.showToast({
|
|
|
+ icon: "error",
|
|
|
+ title: "加载失败",
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
} else if (this.query.showSubmit == "0") {
|
|
|
- api.exam.studentThreeForceList().then((res) => {
|
|
|
+ api.exam.studentQuestion2InfoList({
|
|
|
+ subject: 9
|
|
|
+ }).then((res) => {
|
|
|
if (Array.isArray(res.rows) && res.rows.length > 0) {
|
|
|
res.rows.forEach((element) => {
|
|
|
element.userAnswerIndex = -1;
|
|
@@ -472,9 +476,9 @@ export default {
|
|
|
});
|
|
|
this.problemList = res.rows;
|
|
|
} else {
|
|
|
- Toast({
|
|
|
- type: "fail",
|
|
|
- message: "加载失败",
|
|
|
+ uni.showToast({
|
|
|
+ icon: "error",
|
|
|
+ title: "加载失败",
|
|
|
});
|
|
|
}
|
|
|
});
|
|
@@ -606,6 +610,7 @@ export default {
|
|
|
.wxad {
|
|
|
border: none;
|
|
|
}
|
|
|
+
|
|
|
.select-problem {
|
|
|
display: flex;
|
|
|
width: 100vw;
|
|
@@ -687,7 +692,7 @@ export default {
|
|
|
display: inline-block;
|
|
|
overflow-y: scroll;
|
|
|
height: 440rpx;
|
|
|
-
|
|
|
+
|
|
|
.problem-listItem {
|
|
|
display: inline-block;
|
|
|
width: 99rpx;
|
|
@@ -722,6 +727,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.problem {
|
|
|
padding: 0 30rpx;
|
|
|
height: 500rpx;
|