Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_YouLeChang
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
NJ_YouLeChang
Commits
80623879
Commit
80623879
authored
Aug 05, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 数字版区分
parent
831bd3db
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
191 additions
and
541 deletions
+191
-541
NJ_YouLeChang.fire
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
+189
-525
NJ_YouLeChang.ts
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
+2
-16
No files found.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.fire
View file @
80623879
This diff is collapsed.
Click to expand it.
assets/NJ_YouLeChang/scene/NJ_YouLeChang.ts
View file @
80623879
...
...
@@ -18,14 +18,10 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
this
.
orgId
!=
507
)
{
// 说明是数字版, 变换一下界面布局
const
nd
=
cc
.
find
(
`Canvas/bg_ground/bg_grass`
);
cc
.
find
(
`qwqd_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`btn_yuedu_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`ydjyz_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`btn_quwen`
,
nd
).
active
=
false
;
cc
.
find
(
`jtpdr_lite`
,
nd
).
active
=
true
;
cc
.
find
(
`btn_familypindu`
,
nd
).
active
=
false
;
cc
.
find
(
`btn_yuedu`
,
nd
).
active
=
false
;
cc
.
find
(
`Canvas/userInfo/frame/BtnLogout`
).
active
=
false
;
}
await
this
.
initData
();
await
this
.
initView
();
...
...
@@ -159,16 +155,6 @@ export default class SceneComponent extends MyCocosSceneComponent {
jumpToBundle
(
'
NJ_YueDuJiaYouZhan
'
);
});
const
yuedu_lite
=
cc
.
find
(
'
Canvas/bg_ground/bg_grass/btn_yuedu_lite
'
);
buttonOnClick
(
yuedu_lite
,
()
=>
{
const
data
=
this
.
classData
.
find
(
data
=>
data
.
name
==
'
阅读加油站
'
);
if
(
!
data
)
{
middleLayerComponent
.
showTips
(
"
没有创建‘阅读加油站’
"
);
return
;
}
middleLayerComponent
.
setData
(
'
NJ_YueDuJiaYouZhan
'
,
data
.
id
);
jumpToBundle
(
'
NJ_YueDuJiaYouZhan
'
);
});
const
pindu
=
cc
.
find
(
'
Canvas/bg_ground/bg_grass/btn_pindu
'
);
buttonOnClick
(
pindu
,
()
=>
{
const
data
=
this
.
classData
.
find
(
data
=>
data
.
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