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
328f8cc7
Commit
328f8cc7
authored
Dec 25, 2020
by
asdf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
answer text ui
parent
a50cfa0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
form.component.html
form/src/app/form/form.component.html
+3
-2
ItemAnswer.js
play/assets/tmpGame/script/ItemAnswer.js
+6
-6
No files found.
form/src/app/form/form.component.html
View file @
328f8cc7
...
...
@@ -10,10 +10,11 @@
<input
style=
"margin-left: 5%;width: 150px; "
type=
"text"
maxlength=
""
nz-input
[(
ngModel
)]="
item
.
questionText
"
(
blur
)="
save
()"
>
<br>
<div
*
ngFor=
"let question of item.questionList; let i = index"
>
<div
style=
"border-style: dotted; border-width: 1px;"
>
<div
style=
"margin-left: 5%; margin-bottom: 50px; padding-top: 20px; "
>
<div
style=
"height: 330px;width:100%"
>
<div
style=
"height: 330px;width:100%
;height:100%
"
>
<span
style=
"height: 30px; font-size: 18px;"
>
第{{i + 1}}页题干:
</span>
<div
*
ngFor=
"let option of question.optionList; let j = index"
>
<div
style=
"margin-top: 20px; float: left; border-width: 1px; border-style: dotted;
...
...
@@ -57,7 +58,7 @@
</div>
</div>
<br>
<div>
<div
style=
"margin-top: 20px;"
>
<button
style=
"margin-left: 5%; margin-top: 50px;margin-bottom: 8px; width: 100px; height: 32px;"
nz-button
nzType=
"danger"
(
click
)="
removeQuestion
(
i
)"
>
删除问题
...
...
play/assets/tmpGame/script/ItemAnswer.js
View file @
328f8cc7
...
...
@@ -12,7 +12,7 @@ cc.Class({
},
onLoad
()
{
if
(
this
.
startPos
)
{
if
(
this
.
startPos
)
{
this
.
node
.
position
=
this
.
startPos
;
this
.
node
.
scale
=
this
.
startScale
;
}
...
...
@@ -83,15 +83,15 @@ cc.Class({
this
.
label
.
string
=
data
.
text
;
this
.
labelGreen
.
string
=
data
.
text
;
this
.
scheduleOnce
(()
=>
{
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
-
this
.
label
.
node
.
width
/
2
;
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
-
this
.
label
.
node
.
width
/
2
*
this
.
label
.
node
.
scale
;
this
.
labelMask
.
y
=
this
.
label
.
node
.
y
;
})
this
.
label
.
_forceUpdateRenderData
();
if
(
this
.
label
.
node
.
width
>
198
)
{
if
(
this
.
label
.
node
.
width
>
198
)
{
this
.
label
.
node
.
scale
=
198
/
this
.
label
.
node
.
width
;
this
.
labelMask
.
scale
=
this
.
label
.
node
.
scale
;
}
}
},
loadDragonBone
()
{
this
.
dragonBone
.
dragonAtlasAsset
=
null
;
...
...
@@ -248,7 +248,7 @@ cc.Class({
if
(
this
.
labelMask
.
width
>=
this
.
label
.
node
.
width
)
{
this
.
unschedule
(
this
.
playLabelGreenCb
)
this
.
labelMask
.
anchorX
=
1
;
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
+
this
.
label
.
node
.
width
/
2
;
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
+
this
.
label
.
node
.
width
/
2
*
this
.
label
.
node
.
scale
;
this
.
labelGreen
.
node
.
anchorX
=
1
;
this
.
labelGreen
.
node
.
x
=
0
;
this
.
playLabelWhite
();
...
...
@@ -262,7 +262,7 @@ cc.Class({
if
(
this
.
labelMask
.
width
<=
0
)
{
this
.
unschedule
(
this
.
playLabelWhiteCb
)
this
.
labelMask
.
anchorX
=
0
;
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
-
this
.
label
.
node
.
width
/
2
;
this
.
labelMask
.
x
=
this
.
label
.
node
.
x
-
this
.
label
.
node
.
width
/
2
*
this
.
label
.
node
.
scale
;
this
.
labelGreen
.
node
.
anchorX
=
0
;
this
.
labelGreen
.
node
.
x
=
0
;
}
...
...
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