Commit a1fe7886 authored by zhengke's avatar zhengke

修改

parent 97cc6d7b
......@@ -67,24 +67,37 @@
},
//交卷
async savePaper() {
console.log(data.questionList, 'questionList');
// data.questionList.forEach(x => {
// let obj = {
// DetailId: 0,
// ExamId: 0,
// QuestionId: 1,
// Title: "123",
// QuestionContent: "132131",
// QuestionTypeId: 1,
// QuestionTypeKey: "single",
// Answer: "",
// AnswerParse: "",
// IsAnswer: 1,
// IsWrong: 1,
// }
// })
console.log(data.saveMsg, 'saveMsg');
data.questionList.forEach(x => {
let obj = {
DetailId: 0,
ExamId: 0,
QuestionId: x.QuestionId,
Title: x.Title,
QuestionContent: x.QuestionContentObj,
QuestionTypeId: x.QuestionTypeId,
QuestionTypeKey: x.QuestionTypeKey,
Answer: x.Answer,
AnswerParse: x.AnswerParse,
IsAnswer: 0,
IsWrong: 1,
StundetAnswer:x.StundetAnswer,
Score:x.Score
}
if(obj.StundetAnswer.length>0){
obj.IsAnswer=1;
}
if(obj.StundetAnswer.length>0){
if(obj.StundetAnswer.toString()==obj.Answer){
obj.IsWrong = 0
}else{
obj.IsWrong = 1
}
}
data.saveMsg.ExamDetailsList.push(obj);
})
SetStudentExam(data.saveMsg).then(res=>{
console.log(res);
})
},
};
return {
......
<template>
<!-- 听力题 -->
<view class="listen">
<view class="item" style="padding: 0 20px">
<view class="item">
<audio style="text-align: left" poster="http://pic.pimg.tw/pam86591/1408719752-3322564110_n.jpg"
:src="dataObj.Src" name="日语听力" :action="audioAction" controls></audio>
<view>
<text class="Exam_Score">{{dataObj.Score}}分)</text>
</view>
<view class="item1" :style="{ height: `calc(100vh - 414rpx)` }">
<view class="questionView">
<view v-for="(item, index) in dataObj.QuestionContentObj" :key="index" class="item2">
......
......@@ -8,7 +8,8 @@
</view>
<view :style="{maxHeight: `calc(100vh - 730rpx)`}"
style="overflow-y: auto;">
<view style="margin:30rpx;" class="Exam_Score">本阅读理解共{{dataObj.QuestionContentObj.length}}小题
<view style="margin:30rpx;" class="Exam_Score">
本阅读理解共{{dataObj.QuestionContentObj.length}}小题({{dataObj.Score}}分)</text>
</view>
<view class="questionView">
<view v-for="(item, index) in dataObj.QuestionContentObj" :key="index"
......
......@@ -3,8 +3,9 @@
<view>
<view class="item" style="padding: 0 20px">
<view class="item1">
<view class="flex flex_start_center">
<view class="flex">
<view class="num" v-html="dataObj.Title"></view>
<text class="Exam_Score">{{dataObj.Score}}分)</text>
</view>
<view v-for="(item2, index2) in dataObj.QuestionContentObj" :key="index2"
class="flex item2 flex_start_center">
......@@ -149,4 +150,8 @@
font-weight: 500;
color: #111111;
}
.Exam_Score{
color:#999999;
font-size:28rpx;
}
</style>
......@@ -25,7 +25,7 @@
<!-- <view class="questionBox" :style="{ height: `${questionH}rpx` }">
<view class="questionTotal" @touchstart="touchstart" @touchmove="touchmove"
@touchend="touchend">本阅读理解共5小题</view> -->
<view :style="{maxHeight: `calc(100vh - 450rpx - ${statusBarHeight}px)`}"
<view :style="{maxHeight: `calc(100vh - 800rpx)`}"
style="overflow-y: auto;">
<view style="margin:30rpx;" class="Exam_Score">本阅读理解共{{item1.QuestionContentObj.length}}小题</view>
<template v-if="isOperate">
......@@ -330,7 +330,7 @@
</script>
<style scoped>
.AnswerBtn {
margin-top: 30rpx;
margin-top: 70rpx;
padding:0 40rpx;
}
......
......@@ -66,7 +66,7 @@
dataList: [],
msg: {
pageIndex: 1,
pageSize: 20,
pageSize: 1000,
BankId: 0
},
startMsg: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment