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
d44a4670
Commit
d44a4670
authored
Apr 06, 2023
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 激活购买逻辑
parent
c7a0010e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletion
+12
-1
NJ_MonkyTree.ts
assets/NJ_MonkyTree/scene/NJ_MonkyTree.ts
+12
-1
No files found.
assets/NJ_MonkyTree/scene/NJ_MonkyTree.ts
View file @
d44a4670
...
@@ -114,17 +114,27 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -114,17 +114,27 @@ export default class SceneComponent extends MyCocosSceneComponent {
const
syllabusId
=
b
.
data_id
;
const
syllabusId
=
b
.
data_id
;
const
folderId
=
b
.
data_pid
;
const
folderId
=
b
.
data_pid
;
const
folderName
=
b
.
data_pname
;
const
folderName
=
b
.
data_pname
;
const
rowIndex
=
b
.
row_index
-
0
;
if
(
!
syllabusId
)
{
if
(
!
syllabusId
)
{
this
.
showTips
(
"
未解锁 [101]
"
);
this
.
showTips
(
"
未解锁 [101]
"
);
return
;
return
;
}
}
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
const
middleLayerComponent
=
middleLayer
.
getComponent
(
'
middleLayer
'
);
const
isActive
=
middleLayerComponent
.
isLevelActived
();
if
(
rowIndex
>
0
&&
!
isActive
)
{
middleLayerComponent
.
showActiveWindow
();
return
;
}
}
if
(
lock
.
active
)
{
if
(
lock
.
active
)
{
this
.
showTips
(
`完成拼读天地里
${
folderName
}
Story才能解锁哦!`
);
this
.
showTips
(
`完成拼读天地里
${
folderName
}
Story才能解锁哦!`
);
return
;
return
;
}
}
const
middleLayer
=
cc
.
find
(
'
middleLayer
'
);
if
(
middleLayer
)
{
if
(
middleLayer
)
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
setData
(
'
NJ_MonkyTree_Son
'
,
{
middleLayer
.
getComponent
(
'
middleLayer
'
).
setData
(
'
NJ_MonkyTree_Son
'
,
{
folderId
,
folderId
,
...
@@ -353,6 +363,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
...
@@ -353,6 +363,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
b
.
attr
({
'
data_id
'
:
lesson
.
id
});
b
.
attr
({
'
data_id
'
:
lesson
.
id
});
b
.
attr
({
'
data_pid
'
:
lesson
.
pid
});
b
.
attr
({
'
data_pid
'
:
lesson
.
pid
});
b
.
attr
({
'
data_pname
'
:
lesson
.
p_name
});
b
.
attr
({
'
data_pname
'
:
lesson
.
p_name
});
b
.
attr
({
'
row_index
'
:
index
});
if
(
if
(
...
...
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