Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
eduline
Commits
dfc7cf06
Commit
dfc7cf06
authored
May 20, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
1913b0e9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
10 deletions
+33
-10
apps/exams/Tpl/default/Index/examsroom_w3g.html
+33
-10
No files found.
apps/exams/Tpl/default/Index/examsroom_w3g.html
View file @
dfc7cf06
...
...
@@ -632,7 +632,8 @@
if
(
my
.
length
>
0
)
{
this
.
finished
.
push
({
qId
:
q
.
exams_question_id
,
option
:
my
[
0
].
key
option
:
my
[
0
].
key
,
key
:
"radio"
})
}
break
...
...
@@ -642,22 +643,44 @@
//Request
saveProgress
:
function
()
{
let
that
=
this
let
time
=
th
is
.
info
.
reply_time
*
60
-
this
.
timeConsumed
let
time
=
th
at
.
info
.
reply_time
*
60
-
that
.
timeConsumed
let
param
=
{
anser_time
:
th
is
.
timeConsumed
,
anser_time
:
th
at
.
timeConsumed
,
exams_mode
:
1
,
paper_id
:
th
is
.
info
.
paper_id
,
paper_id
:
th
at
.
info
.
paper_id
,
ch_id
:
"{$_GET['s_id']}"
,
view_url
:
"{$_GET['view']}"
,
is_timeout
:
time
<=
0
?
1
:
0
,
paper_options_id
:
th
is
.
info
.
paper_options_id
,
paper_options_id
:
th
at
.
paperOptions
.
exams_
paper_options_id
,
}
// user_answer[15]: 'A',
// user_answer[14]: 'B',
// user_answer[13]: 'B',
// user_answer[12]: 'C',
// user_answer[11]: 'C',
that
.
finished
.
forEach
(
r
=>
{
let
key
=
'user_answer['
+
r
.
qId
+
']'
switch
(
r
.
key
)
{
case
"radio"
:
param
.
key
=
r
.
option
break
}
})
console
.
log
(
param
)
return
$
.
post
(
U
(
'exams/Index/doProgressExams'
),
param
,
function
(
res
)
{
if
(
typeof
(
res
)
!=
'object'
)
{
try
{
let
res
=
JSON
.
parse
(
res
)
}
catch
(
e
)
{
ui
.
error
(
"处理异常,请重新尝试"
)
}
}
if
(
res
.
status
==
1
)
{
ui
.
success
(
res
.
data
.
info
)
window
.
location
.
href
=
res
.
data
.
jumpurl
}
else
{
ui
.
error
(
res
.
message
)
}
})
},
submitPaper
:
function
()
{
...
...
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