Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cartoon_main
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
cartoon_main
Commits
613587a0
Commit
613587a0
authored
Sep 11, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 标题问题
parent
4bf2ee1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
cartoon_main.fire
assets/cartoon_main/scene/cartoon_main.fire
+1
-1
cartoon_main.ts
assets/cartoon_main/scene/cartoon_main.ts
+4
-1
No files found.
assets/cartoon_main/scene/cartoon_main.fire
View file @
613587a0
...
...
@@ -990,7 +990,7 @@
"vertical": true,
"inertia": true,
"brake": 0.75,
"elastic":
tru
e,
"elastic":
fals
e,
"bounceDuration": 0.23,
"scrollEvents": [],
"cancelInnerEvents": true,
...
...
assets/cartoon_main/scene/cartoon_main.ts
View file @
613587a0
...
...
@@ -96,6 +96,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
async
drawPage
()
{
const
contentNode
=
cc
.
find
(
"
Canvas/pages/view/content
"
);
contentNode
.
active
=
false
;
const
item
=
cc
.
find
(
"
item
"
,
contentNode
);
// 清理原来的数据
item
.
parent
=
this
.
node
;
...
...
@@ -138,6 +139,8 @@ export default class SceneComponent extends MyCocosSceneComponent {
});
}
contentNode
.
active
=
true
;
cc
.
find
(
`Canvas/pages`
).
getComponent
(
cc
.
ScrollView
).
scrollToTop
(
0.1
);
}
async
initView
()
{
...
...
@@ -163,7 +166,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
routers
.
length
===
0
)
{
cc
.
find
(
`Canvas/lefttop`
).
active
=
false
;
}
else
{
cc
.
find
(
`Canvas/lefttop/bg_title/title`
).
getComponent
(
cc
.
Label
).
string
=
item
.
name
;
cc
.
find
(
`Canvas/lefttop/bg_title/title`
).
getComponent
(
cc
.
Label
).
string
=
routers
[
routers
.
length
-
1
]
.
name
;
}
});
}
...
...
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