Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
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
李俊赕
self-support
Commits
b1493d64
Commit
b1493d64
authored
May 26, 2021
by
linwenqing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:学习考试bug
parent
9e03467d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
answer.vue
src/pages/learn/answer.vue
+11
-12
No files found.
src/pages/learn/answer.vue
View file @
b1493d64
...
@@ -198,16 +198,15 @@ export default {
...
@@ -198,16 +198,15 @@ export default {
}
}
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
//examStatus 用户考试状态 0考试中 1考试完成 2未参与
if
(
res
.
data
.
examStatus
==
2
)
{
if
(
that
.
isOnLoad
&&
(
res
.
data
.
examStatus
==
1
||
res
.
data
.
examStatus
==
2
))
{
//刚进来是考试完成和未参与,直接申请考试
that
.
isOnLoad
=
false
;
that
.
applyExam
();
that
.
applyExam
();
return
;
return
;
}
}
if
(
res
.
data
.
examStatus
==
1
)
{
if
(
that
.
isOnLoad
){
that
.
applyExam
();
that
.
isOnLoad
=
false
;
that
.
isOnLoad
=
false
;
return
;
}
if
(
res
.
data
.
examStatus
==
1
)
{
that
.
isComplete
=
true
;
that
.
isComplete
=
true
;
that
.
examScore
=
res
.
data
.
examScore
;
that
.
examScore
=
res
.
data
.
examScore
;
return
;
return
;
...
@@ -217,15 +216,15 @@ export default {
...
@@ -217,15 +216,15 @@ export default {
let
key
=
'exma-'
+
this
.
examId
;
let
key
=
'exma-'
+
this
.
examId
;
let
limitTime
=
uni
.
getStorageSync
(
key
);
let
limitTime
=
uni
.
getStorageSync
(
key
);
if
(
limitTime
<
0
){
if
(
limitTime
<
=
0
||
limitTime
==
""
){
let
time
=
parseInt
(
let
time
=
parseInt
(
th
is
.
timeDefine
[
"time-id-"
+
this
.
examId
]
th
at
.
timeDefine
[
"time-id-"
+
that
.
examId
]
);
);
th
is
.
endTime
=
time
;
th
at
.
endTime
=
time
;
th
is
.
currentTime
=
parseInt
(
time
*
1000
);
th
at
.
currentTime
=
parseInt
(
time
*
1000
);
}
else
{
}
else
{
th
is
.
endTime
=
parseInt
(
limitTime
);
th
at
.
endTime
=
parseInt
(
limitTime
);
th
is
.
currentTime
=
parseInt
(
limitTime
*
1000
);
th
at
.
currentTime
=
parseInt
(
limitTime
*
1000
);
}
}
that
.
getNext
();
that
.
getNext
();
}
}
...
...
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