mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 11:26:47 +08:00
提交修改
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<!--考试试卷详细信息,考试过的试卷内容-->
|
||||
<view>
|
||||
<view style="padding-bottom: 60px;">
|
||||
<u-toast ref="messager"></u-toast>
|
||||
<page-title :showBack="true">查看我的答卷</page-title>
|
||||
<view style="background-color: #FFFFFF;">
|
||||
@@ -14,10 +14,16 @@
|
||||
<view style="padding-top: 10upx;color: #757575; ">第{{curIndex+1}}题 / 共{{total}}题</view>
|
||||
</view>
|
||||
<view class="qitem">
|
||||
<view class="qitem-content">[{{getTypeName(curItem.type)}}]{{curItem.content}}</view>
|
||||
<view class="qitem-content">
|
||||
<view>[{{getTypeName(curItem.type)}}]{{curItem.content}}</view>
|
||||
<view class="qimg" v-if="curItem.images"><img class="qimg-fit" :src="imageBaseUrl+curItem.images"/></view>
|
||||
</view>
|
||||
<view v-for="(opt,optIdx) in curItem.options" :key="optIdx" class="qitem-opt" :class="{'qitem-opt-user':userOptIdxs.indexOf(optIdx)>-1}">
|
||||
<view>
|
||||
<view>{{toLetter(optIdx+1)}}, {{opt.content}}</view>
|
||||
<view v-if="opt.images" class="qimg">
|
||||
<img class="qimg-fit" :src="imageBaseUrl+opt.images"/>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<text v-if="userOptIdxs.indexOf(optIdx)>-1 && correctOptIdxs.indexOf(optIdx)>-1" style="color: #00aa00; ">√</text>
|
||||
@@ -56,6 +62,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import config from '@/config/index.js'
|
||||
import apiCourseStudy from '@/api/modules/courseStudy.js'
|
||||
import {formatDate,getQuestionType,correctJudgment,numberToLetter} from '@/utils/tools.js';
|
||||
export default {
|
||||
@@ -64,6 +71,7 @@
|
||||
recordId:'',//保存的考试记录的id
|
||||
toLetter:numberToLetter,
|
||||
getTypeName:getQuestionType,
|
||||
imageBaseUrl:config.fileUrl,
|
||||
paper:{
|
||||
items:[]
|
||||
},
|
||||
@@ -392,4 +400,14 @@
|
||||
text-align: center;
|
||||
line-height: 52px;
|
||||
}
|
||||
.qimg{
|
||||
//padding-left: 30px;
|
||||
width:100%;
|
||||
text-align: left;
|
||||
.qimg-fit{
|
||||
width:100%;
|
||||
|
||||
object-fit:scale-down
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user