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
6a337486
Commit
6a337486
authored
Sep 16, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
6f41651b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
392 additions
and
533 deletions
+392
-533
ListenTopic.vue
src/components/subject/ListenTopic.vue
+1
-1
SortingProblem.vue
src/components/subject/SortingProblem.vue
+3
-3
answer.vue
src/components/subject/answer.vue
+0
-14
examPaper.vue
src/pages/exam/examPaper.vue
+388
-515
No files found.
src/components/subject/ListenTopic.vue
View file @
6a337486
...
...
@@ -55,7 +55,7 @@
<view
class=
"flex flex_start_center item3"
v-if=
"item2.QuestionKey === 'multiple'"
>
<
template
v-if=
"isOperate"
>
<view
class=
"chooseNum"
:class=
"
{ myAnswer: item3.IsAnswer }"
@click="multipleChange(item3)">
{{
item3
.
Name
}}
@click="multipleChange(item
2,item
3)">
{{
item3
.
Name
}}
</view>
<view
class=
"chooseName"
@
click=
"multipleChange(item2, item3)"
v-html=
"item3.Content"
></view>
...
...
src/components/subject/SortingProblem.vue
View file @
6a337486
<
template
>
<!-- 计算题 -->
<view>
<view
class=
"item"
style=
"padding: 0 20px"
>
<view
class=
"name"
>
<view
class=
"item"
>
<view
class=
"name"
style=
"padding: 0 20px"
>
<view>
{{
changeNumToHan
(
sortIndex
)
}}
、
{{
data
.
GroupName
}}
<text
style=
"color: #999999"
...
...
@@ -26,7 +26,7 @@
>
<swiper-item
v-if=
"sortIndex != 1"
></swiper-item>
<swiper-item
v-for=
"(item1, index1) in data.DetailsList"
:key=
"index1"
>
<view
class=
"item1"
>
<view
class=
"item1"
style=
"padding: 0 20px"
>
<view
class=
"flex"
>
<view>
{{
index1
+
1
}}
、
</view>
<view
class=
"num"
v-html=
"item1.Title"
></view>
(
{{
item1
.
Score
}}
)
...
...
src/components/subject/answer.vue
View file @
6a337486
...
...
@@ -97,22 +97,13 @@ export default {
ExamStuId
:
Number
,
SubmitTimes
:
Number
,
StartTime
:
String
,
isExamOver
:
Boolean
},
setup
(
props
,
ctx
)
{
let
Gid
=
uni
.
getStorageSync
(
"userInfo"
).
Id
;
let
data
=
reactive
({
msg
:
{
GuestId
:
Gid
,
PaperId
:
5
,
PublishId
:
1
},
questionList
:
props
.
paperData
.
Paper
.
GroupList
,
isExamOver
:
props
.
isExamOver
});
watch
(()
=>
props
.
isExamOver
,
(
newVal
,
oldVal
)
=>
{
console
.
log
(
oldVal
,
'oldValoldVal'
);
console
.
log
(
newVal
,
'newVal'
);
if
(
newVal
){
methods
.
savePaper
();
}
});
let
methods
=
{
changeNumToHan
,
chooseTopic
(
index
,
index1
,
index2
)
{
...
...
@@ -148,8 +139,6 @@ export default {
obj
.
Exam_Student_Id
=
props
.
ExamStuId
;
let
time1
=
props
.
StartTime
;
let
time2
=
methods
.
getNowTime
();
console
.
log
(
time1
,
'time1'
);
console
.
log
(
time2
,
'time2'
);
var
d1
=
new
Date
(
time1
);
var
d2
=
new
Date
(
time2
);
let
TimeDis
=
parseInt
(
d2
-
d1
)
/
1000
/
60
;
...
...
@@ -160,11 +149,8 @@ export default {
});
return
}
console
.
log
(
'自动交卷了'
);
return
;
let
res
=
await
submitPaper
(
obj
);
if
(
res
)
{
console
.
log
(
119
,
res
);
if
(
res
.
Code
==
1
)
{
uni
.
showToast
({
title
:
res
.
Message
,
...
...
src/pages/exam/examPaper.vue
View file @
6a337486
This diff is collapsed.
Click to expand it.
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