|
@@ -39,7 +39,7 @@
|
|
|
结果:<text class="res-f" v-if="item.result == 0">答错</text><text v-else class="res-t">答对</text>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
- 结果:<text style="font-weight: bold;color:#009270 ;">{{ item.answer_fact.join(",") }}</text>
|
|
|
+ 正确答案:<text style="font-weight: bold;color:#009270 ;">{{ item.answer_fact.join(",") }}</text>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
分数:<text class="score">{{ item.result == 1 ? item.score : 0 }}</text>
|
|
@@ -59,8 +59,11 @@
|
|
|
下一题
|
|
|
</view>
|
|
|
<view v-if="detail.testquestions.length == currentItemId && detail.status != '已完成'" class="but submit"
|
|
|
- @click="submit" hover-class="navigator-hover">
|
|
|
- 提交
|
|
|
+ @click="loading ? '' : submit" hover-class="navigator-hover">
|
|
|
+ <u-loading-icon v-if="loading" />
|
|
|
+ <text v-else>
|
|
|
+ 提交
|
|
|
+ </text>
|
|
|
</view>
|
|
|
</view>
|
|
|
|
|
@@ -86,7 +89,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
-
|
|
|
<u-popup :show="showFinish" mode="center" round="8" :safeAreaInsetBottom="false">
|
|
|
<view class="finish">
|
|
|
<image class="result" src="../../static//examination-result.png" mode="aspectFill" />
|
|
@@ -126,8 +128,6 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
-
|
|
|
-
|
|
|
<view class="quere-height">
|
|
|
<view :id="'Item' + item.rowindex" v-for=" item in detail.testquestions "
|
|
|
:key="item.sat_courseware_testitemsid" :item-id="item.rowindex + ''">
|
|
@@ -157,7 +157,7 @@
|
|
|
结果:<text class="res-f">答错</text><text class="res-t">答对</text>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
- 结果:<text style="font-weight: bold;color:#009270 ;">{{ item.answer_fact }}</text>
|
|
|
+ 正确答案:<text style="font-weight: bold;color:#009270 ;">{{ item.answer_fact }}</text>
|
|
|
</view>
|
|
|
<view class="row">
|
|
|
分数:<text class="score">{{ item.result == 1 ? item.score : 0 }}</text>
|
|
@@ -181,7 +181,8 @@ export default {
|
|
|
},
|
|
|
swiperHeight: 10,
|
|
|
openTopicCard: false,
|
|
|
- showFinish: false
|
|
|
+ showFinish: false,
|
|
|
+ loading: false,
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
@@ -268,15 +269,19 @@ export default {
|
|
|
title: '提示',
|
|
|
content: tips,
|
|
|
success: ({ confirm }) => {
|
|
|
- if (confirm) that.$Http.basic({
|
|
|
- "id": 20240326145902,
|
|
|
- content
|
|
|
- }).then(res => {
|
|
|
- console.log('提交试卷', res)
|
|
|
- if (this.cutoff(res.msg, '', true)) return that.$refs.timer.startCounting();
|
|
|
- that.$refs.timer.endTiming();
|
|
|
- that.getDetail();
|
|
|
- })
|
|
|
+ if (confirm) {
|
|
|
+ that.loading = true;
|
|
|
+ that.$Http.basic({
|
|
|
+ "id": 20240326145902,
|
|
|
+ content
|
|
|
+ }).then(res => {
|
|
|
+ console.log('提交试卷', res)
|
|
|
+ that.loading = false;
|
|
|
+ if (this.cutoff(res.msg, '', true)) return that.$refs.timer.startCounting();
|
|
|
+ that.$refs.timer.endTiming();
|
|
|
+ that.getDetail();
|
|
|
+ })
|
|
|
+ }
|
|
|
},
|
|
|
})
|
|
|
|