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
724d6f11
Commit
724d6f11
authored
May 20, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
15dd877c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
8 deletions
+30
-8
apps/exams/Lib/Action/IndexAction.class.php
+1
-0
apps/exams/Tpl/default/Index/examsresult_w3g.html
+10
-3
apps/exams/Tpl/default/Index/examsroom_w3g.html
+19
-5
No files found.
apps/exams/Lib/Action/IndexAction.class.php
View file @
724d6f11
...
...
@@ -124,6 +124,7 @@ class IndexAction extends Action
$this
->
assign
(
'exams_difficult'
,
$exams_difficult
);
// 因页面上此参数使用位置较多,直接传递变量
$this
->
assign
(
'level'
,
$_GET
[
'level'
]);
$this
->
assign
(
'review'
,
$_GET
[
'review'
]);
$this
->
assign
(
'order'
,
$order
);
$this
->
assign
(
'module_id'
,
$module_id
);
$this
->
assign
(
'exams_subject_id'
,
$cateId
);
...
...
apps/exams/Tpl/default/Index/examsresult_w3g.html
View file @
724d6f11
...
...
@@ -87,8 +87,8 @@
<div
class=
"reportLastBox"
>
<img
class=
"reportLastBg"
src=
"../img/reBg.png"
>
<div
class=
"reportLastBtns box"
>
<span
class=
"reportLastBtn reportLastBtnL"
>
全部解析
</span>
<span
class=
"reportLastBtn reportLastBtnR"
>
错题解析
</span>
<span
@
click=
"onAll"
class=
"reportLastBtn reportLastBtnL"
>
全部解析
</span>
<span
@
click=
"onAll"
class=
"reportLastBtn reportLastBtnR"
>
错题解析
</span>
</div>
</div>
</div>
...
...
@@ -104,8 +104,14 @@
created
:
function
()
{
},
mounted
:
function
(){
$
(
"#preloader"
).
hide
();
},
methods
:{
onAll
:
function
()
{
let
url
=
"{:U('exams/index/examsroom')}"
+
"&paper_id="
+
"{$paper['exams_paper_id']}"
+
"&joinType=1&preview=true"
window
.
location
.
href
=
url
}
}
})
</script>
\ No newline at end of file
apps/exams/Tpl/default/Index/examsroom_w3g.html
View file @
724d6f11
...
...
@@ -326,8 +326,8 @@
<div
id=
"app"
>
<div
class=
"testPaperTop box"
>
<p
class=
"testPaperTop_time flex1"
>
{{countDown}}
</p>
<span
class=
"testPaperTop_da"
>
答题卡
</span>
<img
@
click=
"onCounting"
class=
"testPaperTop_pau"
:src=
"counting ? '__THEME__/img/pau.png' : '__THEME__/img/right_arrow.png'"
>
<span
v-show=
"!review"
class=
"testPaperTop_da"
>
答题卡
</span>
<img
v-show=
"!review"
@
click=
"onCounting"
class=
"testPaperTop_pau"
:src=
"counting ? '__THEME__/img/pau.png' : '__THEME__/img/right_arrow.png'"
>
</div>
<div
class=
"testPaperBotm"
>
<div
class=
"box"
>
...
...
@@ -351,7 +351,7 @@
</div>
<div
v-if=
"current > 1"
class=
"testPaperBtns box"
>
<p
@
click=
"onPreviousQuestion"
class=
"testPaperBtn"
>
上一题
</p>
<p
@
click=
"onNextQuestion"
class=
"testPaperBtn testPaperBtn1"
>
下一题 / 交卷
</p>
<p
@
click=
"onNextQuestion"
class=
"testPaperBtn testPaperBtn1"
>
{{ review ? 下一题 : (下一题 / 交卷) }}
</p>
</div>
<!-- 解析 -->
<div
class=
"testPaperJiedaPage"
>
...
...
@@ -401,6 +401,7 @@
current
:
1
,
paperOptions
:
{},
counting
:
true
,
review
:
"${review}"
,
countDown
:
"00:00:00"
,
timeConsumed
:
0
,
expand
:
false
,
...
...
@@ -494,6 +495,11 @@
this
.
paperOptions
=
{:
json_encode
(
$paper_options
)};
this
.
initAnswerMode
()
this
.
doCountDown
()
if
(
this
.
review
)
{
this
.
countDown
=
""
this
.
expand
=
true
}
console
.
log
(
"Review = "
+
this
.
review
)
console
.
log
(
this
.
info
)
console
.
log
(
this
.
temp
)
console
.
log
(
this
.
paperOptions
)
...
...
@@ -532,7 +538,7 @@
}
},
doCountDown
:
function
()
{
if
(
!
this
.
counting
)
{
if
(
!
this
.
counting
||
this
.
review
)
{
return
}
if
(
this
.
info
.
reply_time
)
{
...
...
@@ -598,9 +604,14 @@
onNextQuestion
:
function
()
{
if
(
this
.
current
<
this
.
totalQuestion
)
{
this
.
cacheQuestion
()
if
(
!
this
.
review
)
{
this
.
expand
=
false
}
this
.
current
+=
1
}
else
{
this
.
showFinish
=
true
if
(
!
this
.
review
)
{
this
.
showFinish
=
true
}
}
},
onPreviousQuestion
:
function
()
{
...
...
@@ -609,6 +620,9 @@
}
},
cacheQuestion
:
function
()
{
if
(
this
.
review
)
{
return
}
let
q
=
this
.
currentQuestion
let
mode
=
this
.
finished
.
hx_firstOf
(
r
=>
{
return
r
.
qId
==
q
.
exams_question_id
})
if
(
mode
)
{
...
...
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