Commit a1fe7886 authored by zhengke's avatar zhengke

修改

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