Commit d8ffe406 authored by zhengke's avatar zhengke

修改

parent 8d2b5eab
......@@ -217,7 +217,7 @@
</text>
</view>
<view
style="margin: 20rpx 0"
style="margin-top: 20rpx"
v-if="item1.AnswerList[index2].StudentScore"
>
<text style="color: #8c8a94">您的得分:</text>
......
......@@ -90,10 +90,10 @@
</view>
<view
style="margin-top: 20rpx; word-wrap: break-word"
v-if="item1.AnswerParse"
v-if="item1.AnswerParse" class="flex"
>
<text style="color: #8c8a94">解析:</text>
<text style="color: #000">{{ item1.AnswerParse }}</text>
<text style="color: #8c8a94;flex-shrink: 0;">解析:</text>
<view style="color: #000" v-html="item1.AnswerParse"></view>
</view>
</view>
</swiper-item>
......
......@@ -67,6 +67,11 @@
"style": {
"navigationStyle": "custom"
}
}, {
"path": "examScore", //试卷得分
"style": {
"navigationStyle": "custom"
}
}]
}
],
......
<template>
<view>
<van-nav-bar fixed>
<template #left>
<van-icon name="cross" style="font-size: 32rpx; color: #111" @click="back" />
</template>
<template #title>
<view style="
font-size: 32rpx;
color: #111;
font-family: PingFang SC;
font-weight: 800;
">考试成绩</view>
</template>
</van-nav-bar>
<view class="examScoreMain">
<view class="exam_Progress">
<van-circle v-model="dataList.TotalScore"
:rate="dataList.Publish.ExamScore"
:speed="100"
color="#fff"
layer-color="#0097d8"
:text="dataList.TotalScore"
/>
</view>
<view>
<img style="width:100%;height:322px;" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/examTop.png" alt="" />
</view>
</view>
<view class="exam_Bottom">
<view class="exam_View">
<img style="width:20px;height:21px;margin-right:20rpx;" src="https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/exam_Edit.png" alt="" />
回顾试卷
</view>
<view class="exam_Pingyu">
<view class="teacher_Say">老师评语</view>
<view class="teacher_Inner">
{{dataList.StuComment}}
</view>
</view>
</view>
</view>
</template>
<script>
import {
ref,
reactive,
toRefs,
toRef,
getCurrentInstance,
watch,
computed,
onMounted,
} from "vue";
import {
getPaperDetail
} from "../../api/exam";
export default {
props: {
},
setup(props, ctx) {
let Gid = uni.getStorageSync("userInfo").Id;
let data = reactive({
value:50,
Exam_Student_Id: 0,
msg: {
GuestId: 0,
PaperId: 0,
PublishId: 0,
isShowAnswer: true
},
dataList:{}
});
let methods = {
//返回首页
backToIndex(){
uni.navigateBack();
},
async getPaperDetail() {
let res = await getPaperDetail(data.msg);
if (res) {
if (res.Code == 1) {
data.dataList = res.Data;
console.log(res,'数据');
}
}
},
};
return {
...toRefs(data),
...methods,
};
},
onLoad(options) {
if (options.GuestId) {
this.msg.GuestId = options.GuestId;
}
if (options.PaperId) {
this.msg.PaperId = options.PaperId;
}
if (options.Id) {
this.msg.PublishId = options.Id;
}
if (options.Exam_Student_Id) {
this.Exam_Student_Id = options.Exam_Student_Id;
}
this.getPaperDetail();
},
};
</script>
<style scoped>
.examScoreMain{
position: relative;
}
.exam_Progress{
position: absolute;
top:132px;
left:37%;
}
.exam_Bottom{
padding:30rpx;
}
.exam_View{
width:100%;
height:100rpx;
border-radius:20rpx;
display:flex;
align-items: center;
justify-content: center;
background-color: #fff;
color:#111111;
font-size:26rpx;
font-weight: bold;
box-shadow: 0px 5px 25px 0px rgba(218, 220, 230, 0.85);
}
.exam_Pingyu{
padding:30rpx;
height:490rpx;
border-radius:20rpx;
background-color: #fff;
margin-top:30rpx;
box-shadow: 0px 5px 25px 0px rgba(218, 220, 230, 0.85);
}
.teacher_Say{
font-size:32rpx;
color:#0F1B35;
font-weight: bold;
}
.teacher_Inner{
color:#0F1B35;
font-size:26rpx;
margin-top:24rpx;
line-height: 45rpx;
height:350rpx;
overflow-y: scroll;
font-family: PingFang SC;
}
</style>
......@@ -117,6 +117,7 @@
"
>
查看更多
<view @click="goExamScore">跳转</view>
</view>
</van-cell>
</van-cell-group>
......@@ -133,11 +134,7 @@
? `url(${item.PicList[0]})`
: `url(https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/defaultBgimg.png)`,
}"
@click="
jumpPage(
`/pages/exam/examPaper?GuestId=${item.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
)
"
@click="getItemStatus(item)"
>
<view class="testName">
{{ item.PaperName }}
......@@ -284,6 +281,18 @@ export default {
data.baseInfo[5].desc = res.Data.TeacherName;
}
},
//根据状态跳转
getItemStatus(item){
if(item.ExamStatus==3){
this.jumpPage(
`/pages/exam/examScore?GuestId=${item.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
)
}else{
this.jumpPage(
`/pages/exam/examPaper?GuestId=${item.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
)
}
}
};
onMounted(() => {
......
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