提交修改

This commit is contained in:
daihh
2023-01-04 17:53:44 +08:00
parent 3af2d10631
commit cef100a2d4
5 changed files with 174 additions and 49 deletions

View File

@@ -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>