Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
FT_12
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
FT_12
Commits
cb5cb094
Commit
cb5cb094
authored
Dec 25, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文字变色逻辑调整
parent
18e0ef11
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
17 deletions
+25
-17
form.component.html
form/src/app/form/form.component.html
+17
-15
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+8
-2
No files found.
form/src/app/form/form.component.html
View file @
cb5cb094
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
<br>
<br>
<div
*
ngFor=
"let question of item.questionList; let i = index"
>
<div
*
ngFor=
"let question of item.questionList; let i = index"
>
<div
style=
"border-style:
dotted; border-width: 1px;
"
>
<div
style=
"border-style:
solid; border-width: 2px;width:100%
"
>
<div
style=
"margin-left: 5%; margin-bottom: 50px; padding-top: 20px; "
>
<div
style=
"margin-left: 5%; margin-bottom: 50px; padding-top: 20px; "
>
<div
style=
"height: 330px;width:100%;height:100%"
>
<div
style=
"height: 330px;width:100%;height:100%"
>
<span
style=
"height: 30px; font-size: 18px;"
>
第{{i + 1}}页题干:
</span>
<span
style=
"height: 30px; font-size: 18px;"
>
第{{i + 1}}页题干:
</span>
...
@@ -58,20 +58,22 @@
...
@@ -58,20 +58,22 @@
</div>
</div>
</div>
</div>
<br>
<br>
<div
style=
"margin-top: 20px;"
>
</div>
<button
style=
"margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;"
nz-button
<br>
nzType=
"danger"
(
click
)="
removeQuestion
(
i
)"
>
删除问题
<div
style=
"margin-top: 20px;"
>
</button>
<button
style=
"margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;"
nz-button
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px; "
nz-button
nzType=
"danger"
(
click
)="
removeQuestion
(
i
)"
>
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
copyQuestion
(
i
)"
>
删除问题
复制问题
</button>
</button>
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px; "
nz-button
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 120px; height: 32px;"
nz-button
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
copyQuestion
(
i
)"
>
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
pasteQuestion
(
i
)"
>
复制问题
粘贴到下一页
</button>
</button>
<button
style=
"margin-left: 5px; margin-top: 50px;margin-bottom: 8px; width: 120px; height: 32px;"
nz-button
</div>
nzType=
"dashed"
nzDanger
class=
"add-btn"
(
click
)="
pasteQuestion
(
i
)"
>
粘贴到下一页
</button>
</div>
</div>
</div>
</div>
<button
style=
"margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;"
nz-button
<button
style=
"margin-left: 5%; margin-top: 8px; margin-bottom: 100px; height: 50px; width: 90%;"
nz-button
...
...
play/assets/tmpGame/script/ItemAnswer.js
View file @
cb5cb094
...
@@ -236,12 +236,18 @@ cc.Class({
...
@@ -236,12 +236,18 @@ cc.Class({
this
.
playAudioOption
((
duration
)
=>
{
this
.
playAudioOption
((
duration
)
=>
{
this
.
scheduleStep
=
2
;
this
.
scheduleStep
=
2
;
this
.
scheduleDuration
=
duration
/
2
/
this
.
label
.
node
.
width
*
this
.
scheduleStep
;
this
.
scheduleDuration
=
duration
/
2
/
this
.
label
.
node
.
width
*
this
.
scheduleStep
;
if
(
this
.
scheduleDuration
<
0.0
1
){
if
(
this
.
scheduleDuration
<
0.0
5
){
this
.
scheduleDuration
=
0.0
1
;
this
.
scheduleDuration
=
0.0
5
;
this
.
scheduleStep
=
this
.
scheduleDuration
/
duration
*
2
*
this
.
label
.
node
.
width
;
this
.
scheduleStep
=
this
.
scheduleDuration
/
duration
*
2
*
this
.
label
.
node
.
width
;
}
}
this
.
unschedule
(
this
.
playLabelGreenCb
);
this
.
unschedule
(
this
.
playLabelGreenCb
);
this
.
unschedule
(
this
.
playLabelWhiteCb
);
this
.
labelMask
.
anchorX
=
0
;
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
-
this
.
label
.
node
.
width
/
2
*
this
.
label
.
node
.
scale
;
this
.
labelMask
.
width
=
0
;
this
.
labelGreen
.
node
.
anchorX
=
0
;
this
.
labelGreen
.
node
.
x
=
0
;
this
.
schedule
(
this
.
playLabelGreenCb
,
this
.
scheduleDuration
)
this
.
schedule
(
this
.
playLabelGreenCb
,
this
.
scheduleDuration
)
},
()
=>
{
},
()
=>
{
...
...
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