Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hy04_pinci
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
hy04_pinci
Commits
79e285a4
Commit
79e285a4
authored
Jul 15, 2023
by
Tt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改结算分数
parent
bb69f138
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
19 deletions
+30
-19
hy04_pinci.fire
assets/hy04_pinci/scene/hy04_pinci.fire
+2
-2
hy04_pinci.ts
assets/hy04_pinci/scene/hy04_pinci.ts
+2
-7
defaultData_hy04_pinci.ts
assets/hy04_pinci/script/defaultData_hy04_pinci.ts
+24
-6
form.component.html
form/src/app/form/form.component.html
+2
-4
No files found.
assets/hy04_pinci/scene/hy04_pinci.fire
View file @
79e285a4
...
...
@@ -14000,7 +14000,7 @@
},
"_contentSize": {
"__type__": "cc.Size",
"width": 1
52.6
,
"width": 1
48.45
,
"height": 63
},
"_anchorPoint": {
...
...
@@ -14086,7 +14086,7 @@
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
2
10.81399999999996
,
2
06.664
,
0,
0,
0,
...
...
assets/hy04_pinci/scene/hy04_pinci.ts
View file @
79e285a4
...
...
@@ -132,13 +132,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
!
middleLayer
)
return
;
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
if
(
!
middleLayerComponent
)
return
;
const
{
index
,
length
}
=
middleLayerComponent
.
getPageInfo
();
// 返回 length:有多少页; index: 当前第几页(从0开始)
if
(
index
==
length
-
1
)
{
middleLayerComponent
.
goNextCross
();
// 跳转到下一关卡
}
else
{
middleLayerComponent
.
saveGolds
(
this
.
wordDataList
.
length
*
3
);
// 保存金币数量;num 是获得金币的数量,数字类型;
middleLayerComponent
.
goNextPage
();
// 跳转到下一页
}
// pg.event.once('layer_ending_touch_replay', () => {
// this.replay();
// })
...
...
assets/hy04_pinci/script/defaultData_hy04_pinci.ts
View file @
79e285a4
...
...
@@ -16,22 +16,40 @@ export const defaultData =
"
right
"
:
false
,
"
letterList
"
:
[
{
"
text
"
:
"
ga
"
"
text
"
:
"
Y
"
},
{
"
text
"
:
"
e
t
"
"
text
"
:
"
e
"
},
{
"
text
"
:
"
m
"
"
text
"
:
"
l
"
},
{
"
text
"
:
"
s
"
"
text
"
:
"
l
"
},
{
"
text
"
:
"
tu
"
"
text
"
:
"
o
"
},
{
"
text
"
:
"
ck
"
"
text
"
:
"
w
"
},
{
"
text
"
:
"
"
},
{
"
text
"
:
"
R
"
},
{
"
text
"
:
"
i
"
},
{
"
text
"
:
"
v
"
},
{
"
text
"
:
"
e
"
},
{
"
text
"
:
"
r
"
}
]
},
...
...
form/src/app/form/form.component.html
View file @
79e285a4
...
...
@@ -183,10 +183,8 @@
<div
style=
"display: flex; margin-top: 20px;"
>
<span
style=
"font-size: 18px;"
>
预览:
</span>
<div
type=
"text"
name=
""
id=
""
style=
"margin-left: 32px;"
class=
"letterList-content"
>
<span
*
ngFor=
"let letterList of question.letterList; let j = index"
>
<!-- 字母{{j}}的值为: -->
{{letterList.text}}
</span>
<div
type=
"text"
name=
""
id=
""
style=
"margin-left: 32px;font-size: 24px;"
class=
"letterList-content"
>
<span
*
ngFor=
"let letterList of question.letterList; let j = index"
>
{{letterList.text}}
</span>
</div>
</div>
...
...
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