Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NJ_MonkyTree
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_MonkyTree
Commits
2c687665
Commit
2c687665
authored
Feb 23, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 解锁提示
parent
b5b65f5c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
NJ_MonkyTree.ts
assets/NJ_MonkyTree/scene/NJ_MonkyTree.ts
+6
-1
No files found.
assets/NJ_MonkyTree/scene/NJ_MonkyTree.ts
View file @
2c687665
...
...
@@ -111,13 +111,14 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
lock
=
cc
.
find
(
'
icon_key
'
,
b
);
const
syllabusId
=
b
.
data_id
;
const
folderId
=
b
.
data_pid
;
const
folderName
=
b
.
data_pname
;
if
(
!
syllabusId
)
{
this
.
showTips
(
"
未解锁 [101]
"
);
return
;
}
if
(
lock
.
active
)
{
this
.
showTips
(
"
请拼读达人按顺序观看小剧场哦!
"
);
this
.
showTips
(
`完成拼读天地里
${
folderName
}
Story才能解锁哦!`
);
return
;
}
...
...
@@ -319,6 +320,9 @@ export default class SceneComponent extends MyCocosSceneComponent {
if
(
childrenList
.
length
>
3
)
{
childrenList
.
length
=
3
}
childrenList
=
childrenList
.
map
(
item
=>
{
return
{...
item
,
p_name
:
result
.
name
};
});
result
=
[...
result
,
...
childrenList
]
return
result
},
[]);
...
...
@@ -342,6 +346,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
}
b
.
attr
({
'
data_id
'
:
lesson
.
id
});
b
.
attr
({
'
data_pid
'
:
lesson
.
pid
});
b
.
attr
({
'
data_pname
'
:
lesson
.
p_name
});
if
(
index
==
0
||
(
this
.
kidInfo
&&
this
.
kidInfo
.
unlock_syllabuses
?.
includes
(
lesson
.
id
+
""
)
&&
(
index
-
0
)
%
3
===
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