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
417b8c78
Commit
417b8c78
authored
May 19, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
A
parent
97b68e25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
6 deletions
+30
-6
apps/exams/Tpl/default/Index/examsroom_w3g.html
+30
-6
No files found.
apps/exams/Tpl/default/Index/examsroom_w3g.html
View file @
417b8c78
...
...
@@ -328,9 +328,9 @@
<div
class=
"testPaperBotm"
>
<div
class=
"box"
>
<span
class=
"testPaperNum"
>
{{current}}/{{totalQuestion}}
</span>
<p
class=
"testPaperLei flex1"
>
(
单选题
)
</p>
<img
class=
"testPaperColl"
src=
"__THEME__/img/collect0.png"
>
<
!-- <img class="testPaperColl" src="../img/collect1.png"> --
>
<p
class=
"testPaperLei flex1"
>
(
{{currentQuestionTypeName}}
)
</p>
<img
v-if=
"currentQuestion.is_collect == 0"
@
click=
"onCollect(1)"
class=
"testPaperColl"
src=
"__THEME__/img/collect0.png"
>
<
img
v-if=
"currentQuestion.is_collect == 1"
@
click=
"onCollect(0)"
class=
"testPaperColl"
src=
"__THEME__/img/collect1.png"
>
</div>
<div
class=
"testPaperInfo"
>
某种糖果的进价为12元/千克,现购进这种糖果若干千克,每天销售10千克,且从第二天起每天都比前一天降价2元/千克。已知以6元/千克的价格销售的那天正好卖完最后10千克,且总销售额是总进货成本的2倍。问总共进了多少千克这种糖果?
</div>
<ul>
...
...
@@ -411,17 +411,38 @@
info
:
{},
temp
:
{},
current
:
1
,
currentType
:
0
,
paperOptions
:
{},
countDown
:
"00:00:00"
}
},
computed
:
{
totalQuestion
:
function
()
{
return
this
.
paperOptions
.
questions_count
return
this
.
currentQuestion
[
this
.
currentType
].
length
},
currentQuestions
:
function
()
{
let
optionType
=
this
.
currentQuestionType
let
questionType
=
optionType
.
question_type
let
questionData
=
this
.
paperOptions
.
options_questions_data
let
questions
=
questionData
[
questionType
]
return
questions
},
currentQuestionType
:
function
()
{
return
this
.
paperOptions
.
options_type
[
this
.
currentType
]
},
currentQuestionTypeName
:
function
()
{
let
type
=
this
.
currentQuestionType
if
(
type
.
question_type_key
==
'radio'
)
{
return
'单选题'
}
else
if
(
type
.
question_type_key
==
'judge'
)
{
return
'单选题'
}
else
if
(
type
.
question_type_key
==
'multiselect'
)
{
return
'单选题'
}
return
'未知'
},
currentQuestion
:
function
()
{
let
type
=
this
.
paperOptions
.
options_type
[
this
.
current
]
return
this
.
currentQuestions
[
this
.
current
]
}
},
created
:
function
()
{
...
...
@@ -439,6 +460,9 @@
let
minutes
=
Math
.
floor
((
time
%
3600
)
/
60
)
let
seconds
=
Math
.
round
(
time
%
60
)
},
onCollect
:
function
(
collect
)
{
}
}
})
...
...
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