Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
educationStu
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
向伟
educationStu
Commits
d8ffe406
Commit
d8ffe406
authored
Sep 17, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8d2b5eab
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
184 additions
and
9 deletions
+184
-9
ListenTopic.vue
src/components/subject/ListenTopic.vue
+1
-1
SingleChoiceNumber.vue
src/components/subject/SingleChoiceNumber.vue
+3
-3
pages.json
src/pages.json
+5
-0
examScore.vue
src/pages/exam/examScore.vue
+161
-0
index.vue
src/pages/index/index.vue
+14
-5
No files found.
src/components/subject/ListenTopic.vue
View file @
d8ffe406
...
...
@@ -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>
...
...
src/components/subject/SingleChoiceNumber.vue
View file @
d8ffe406
...
...
@@ -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>
...
...
src/pages.json
View file @
d8ffe406
...
...
@@ -67,6 +67,11 @@
"style"
:
{
"navigationStyle"
:
"custom"
}
},
{
"path"
:
"examScore"
,
//试卷得分
"style"
:
{
"navigationStyle"
:
"custom"
}
}]
}
],
...
...
src/pages/exam/examScore.vue
0 → 100644
View file @
d8ffe406
<
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
:
30
rpx
;
}
.exam_View
{
width
:
100%
;
height
:
100
rpx
;
border-radius
:
20
rpx
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
background-color
:
#fff
;
color
:
#111111
;
font-size
:
26
rpx
;
font-weight
:
bold
;
box-shadow
:
0px
5px
25px
0px
rgba
(
218
,
220
,
230
,
0.85
);
}
.exam_Pingyu
{
padding
:
30
rpx
;
height
:
490
rpx
;
border-radius
:
20
rpx
;
background-color
:
#fff
;
margin-top
:
30
rpx
;
box-shadow
:
0px
5px
25px
0px
rgba
(
218
,
220
,
230
,
0.85
);
}
.teacher_Say
{
font-size
:
32
rpx
;
color
:
#0F1B35
;
font-weight
:
bold
;
}
.teacher_Inner
{
color
:
#0F1B35
;
font-size
:
26
rpx
;
margin-top
:
24
rpx
;
line-height
:
45
rpx
;
height
:
350
rpx
;
overflow-y
:
scroll
;
font-family
:
PingFang
SC
;
}
</
style
>
src/pages/index/index.vue
View file @
d8ffe406
...
...
@@ -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
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment