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
e9d7a6ae
Commit
e9d7a6ae
authored
Sep 10, 2021
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5b336e1d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
50 additions
and
23 deletions
+50
-23
examPaper.vue
src/pages/exam/examPaper.vue
+13
-13
examPaperList.vue
src/pages/exam/examPaperList.vue
+27
-5
index.vue
src/pages/index/index.vue
+10
-5
No files found.
src/pages/exam/examPaper.vue
View file @
e9d7a6ae
...
@@ -284,7 +284,7 @@
...
@@ -284,7 +284,7 @@
<view
class=
"answer-con"
v-if=
"isShowAnswer"
>
<view
class=
"answer-con"
v-if=
"isShowAnswer"
>
<Answer
<Answer
:paperData=
"peaperDetail"
:paperData=
"peaperDetail"
:ExamStuId=
"Exam_Student_Id"
:ExamStuId=
"Exam_Student_Id"
@
hideAnswer=
"hideAnswerSheet"
@
hideAnswer=
"hideAnswerSheet"
@
chooseTopic=
"jumpTopic"
@
chooseTopic=
"jumpTopic"
ref=
"answer"
ref=
"answer"
...
@@ -364,7 +364,7 @@ export default {
...
@@ -364,7 +364,7 @@ export default {
changeIndex
:
0
,
//大题序号
changeIndex
:
0
,
//大题序号
isLast
:
false
,
//用于判断是否从后往前翻
isLast
:
false
,
//用于判断是否从后往前翻
isShowAnswer
:
false
,
//是否显示答题卡
isShowAnswer
:
false
,
//是否显示答题卡
Exam_Student_Id
:
0
Exam_Student_Id
:
0
,
});
});
let
methods
=
{
let
methods
=
{
changeNumToHan
,
changeNumToHan
,
...
@@ -414,7 +414,7 @@ export default {
...
@@ -414,7 +414,7 @@ export default {
data
.
peaperDetail
.
Paper
.
GroupList
[
val
.
index
].
startIndex
=
data
.
peaperDetail
.
Paper
.
GroupList
[
val
.
index
].
startIndex
=
val
.
index1
+
1
;
val
.
index1
+
1
;
data
.
isShowAnswer
=
false
;
data
.
isShowAnswer
=
false
;
data
.
isLast
=
false
;
data
.
isLast
=
false
;
},
},
//考试结束
//考试结束
examFinish
()
{
examFinish
()
{
...
@@ -433,16 +433,16 @@ export default {
...
@@ -433,16 +433,16 @@ export default {
};
};
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
,
'options'
);
console
.
log
(
options
,
"options"
);
if
(
options
.
PaperId
)
{
if
(
options
.
PaperId
)
{
this
.
msg
.
PaperId
=
options
.
PaperId
;
this
.
msg
.
PaperId
=
options
.
PaperId
;
}
}
if
(
options
.
Id
)
{
if
(
options
.
Id
)
{
this
.
msg
.
PublishId
=
options
.
Id
;
this
.
msg
.
PublishId
=
options
.
Id
;
}
}
if
(
options
.
Exam_Student_Id
)
{
if
(
options
.
Exam_Student_Id
)
{
this
.
Exam_Student_Id
=
options
.
Exam_Student_Id
;
this
.
Exam_Student_Id
=
options
.
Exam_Student_Id
;
}
}
this
.
getPaperDetail
();
this
.
getPaperDetail
();
},
},
};
};
...
...
src/pages/exam/examPaperList.vue
View file @
e9d7a6ae
...
@@ -45,7 +45,15 @@
...
@@ -45,7 +45,15 @@
/>
/>
<view
class=
"teacherName"
>
{{
item
.
teacherName
}}
</view>
<view
class=
"teacherName"
>
{{
item
.
teacherName
}}
</view>
</view>
</view>
<view
class=
"exam-status"
>
<view
class=
"exam-status"
:class=
"
{
'status-blue': item.ExamStatusStr == '未开始',
'status-green': item.ExamStatusStr == '已开始',
'status-black': item.ExamStatusStr == '完成',
'status-red': item.ExamStatusStr == '缺考',
}"
>
{{
item
.
ExamStatusStr
}}
{{
item
.
ExamStatusStr
}}
</view>
</view>
</view>
</view>
...
@@ -75,7 +83,6 @@ export default {
...
@@ -75,7 +83,6 @@ export default {
Loadmore
,
Loadmore
,
},
},
setup
()
{
setup
()
{
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
let
data
=
reactive
({
let
data
=
reactive
({
pageState
:
"more"
,
pageState
:
"more"
,
examList
:
[
examList
:
[
...
@@ -93,7 +100,7 @@ export default {
...
@@ -93,7 +100,7 @@ export default {
pageSize
:
10
,
pageSize
:
10
,
rowsPerPage
:
10
,
rowsPerPage
:
10
,
ExamStatus
:
0
,
ExamStatus
:
0
,
GuestId
:
Gid
,
GuestId
:
0
,
},
},
pageCount
:
0
,
pageCount
:
0
,
});
});
...
@@ -139,10 +146,12 @@ export default {
...
@@ -139,10 +146,12 @@ export default {
...
methods
,
...
methods
,
};
};
},
},
onLoad
()
{
onLoad
(
optipns
)
{
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
"试卷列表"
,
title
:
"试卷列表"
,
});
});
this
.
msg
.
GuestId
=
optipns
.
Id
;
console
.
log
(
146
,
optipns
);
this
.
getList
();
this
.
getList
();
},
},
};
};
...
@@ -168,7 +177,8 @@ export default {
...
@@ -168,7 +177,8 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-radius
:
20
rpx
;
border-radius
:
20
rpx
;
overflow
:
hidden
;
overflow
:
hidden
;
background-color
:
#333333
;
/* background-color: #333333; */
box-shadow
:
0
rpx
10
rpx
30
rpx
0
rpx
rgba
(
36
,
36
,
36
,
0.2
);
background-repeat
:
no-repeat
;
background-repeat
:
no-repeat
;
background-position
:
center
;
background-position
:
center
;
background-size
:
cover
;
background-size
:
cover
;
...
@@ -231,4 +241,16 @@ export default {
...
@@ -231,4 +241,16 @@ export default {
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
30
rpx
40
rpx
;
padding
:
0
30
rpx
40
rpx
;
}
}
.status-blue
{
color
:
#00acf9
;
}
.status-green
{
color
:
#00df9f
;
}
.status-black
{
color
:
#111111
;
}
.status-red
{
color
:
#ff3816
;
}
</
style
>
</
style
>
src/pages/index/index.vue
View file @
e9d7a6ae
...
@@ -87,7 +87,12 @@
...
@@ -87,7 +87,12 @@
</view>
</view>
<van-cell-group
:border=
"false"
>
<van-cell-group
:border=
"false"
>
<van-cell
title=
"我的考试"
title-class=
"title"
:border=
"false"
>
<van-cell
title=
"我的考试"
title-class=
"title"
:border=
"false"
>
<view
class=
"value"
@
click=
"jumpPage('/pages/exam/examPaperList')"
>
<view
class=
"value"
@
click=
"
jumpPage(`/pages/exam/examPaperList?Id=$
{indexData.GuestId}`)
"
>
查看更多
查看更多
</view>
</view>
</van-cell>
</van-cell>
...
@@ -123,10 +128,10 @@
...
@@ -123,10 +128,10 @@
<view
<view
class=
"test-status"
class=
"test-status"
:class=
"
{
:class=
"
{
'status-bl
ack': item.ExamStatus == 1
,
'status-bl
ue': item.ExamStatusStr == '未开始'
,
'status-
red': item.ExamStatus == 2
,
'status-
green': item.ExamStatusStr == '已开始'
,
'status-
green': item.ExamStatus == 3
,
'status-
black': item.ExamStatusStr == '完成'
,
'status-
blue': item.ExamStatus == 4
,
'status-
red': item.ExamStatusStr == '缺考'
,
}"
}"
>
>
{{
item
.
ExamStatusStr
}}
{{
item
.
ExamStatusStr
}}
...
...
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