Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_NJ_lite
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
middleLayer_for_NJ_lite
Commits
53357a49
Commit
53357a49
authored
Jul 22, 2022
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat
parent
801928b6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
3 deletions
+51
-3
middleLayer_for_NJ_lite.fire
...iddleLayer_for_NJ_lite/scene/middleLayer_for_NJ_lite.fire
+1
-1
middleLayer.ts
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
+50
-2
No files found.
assets/middleLayer_for_NJ_lite/scene/middleLayer_for_NJ_lite.fire
View file @
53357a49
...
@@ -3048,7 +3048,7 @@
...
@@ -3048,7 +3048,7 @@
"__id__": 59
"__id__": 59
},
},
"_children": [],
"_children": [],
"_active":
tru
e,
"_active":
fals
e,
"_components": [
"_components": [
{
{
"__id__": 68
"__id__": 68
...
...
assets/middleLayer_for_NJ_lite/script/middleLayer.ts
View file @
53357a49
...
@@ -287,12 +287,62 @@ export default class NewClass extends middleLayerBase {
...
@@ -287,12 +287,62 @@ export default class NewClass extends middleLayerBase {
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
if
(
this
.
courseIndex
==
this
.
courses
.
length
-
1
)
{
// 最后一页课件
// 最后一页课件
this
.
unlockNextForder
();
this
.
unlockNextForder
();
this
.
playGetParterAnim
();
}
else
{
}
else
{
// 如果不是最后一页,跳转到下一页
// 如果不是最后一页,跳转到下一页
this
.
goNextPage
();
this
.
goNextPage
();
}
}
}
}
async
playGetParterAnim
()
{
const
coolcat
=
cc
.
find
(
'
middleLayer/coolcat
'
);
coolcat
.
active
=
true
;
// 胜利音效
this
.
playLocalAudio
(
"
win
"
).
then
();
const
star
=
cc
.
find
(
'
middleLayer/coolcat/star
'
);
star
.
active
=
true
;
star
.
getComponent
(
dragonBones
.
ArmatureDisplay
).
playAnimation
(
'
normal
'
,
1
);
setTimeout
(()
=>
{
this
.
showConfirm
(
'
还想再来一次吗?
'
,
()
=>
{
this
.
hideGetParterAnim
();
// 识别页
const
gameSelectData
=
this
.
getData
(
'
NJ_game_select
'
);
this
.
loadOnlineCourseWare
(
gameSelectData
.
courseId
);
},
()
=>
{
// 潜水艇页
this
.
hideGetParterAnim
();
cc
.
find
(
'
middleLayer/BtnRight
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/BtnLeft
'
).
active
=
false
;
cc
.
find
(
'
middleLayer/ExitBtn
'
).
active
=
false
;
const
idx
=
this
.
getData
(
'
NJ_menu_select_idx
'
);
if
(
idx
==
'
0
'
)
{
this
.
loadOnlineBundle
(
'
NJ_QianShuiTing
'
);
}
else
if
(
idx
==
'
1
'
)
{
this
.
loadOnlineBundle
(
'
NJ_ShaMo
'
);
}
else
if
(
idx
==
'
2
'
)
{
this
.
loadOnlineBundle
(
'
NJ_NongChang
'
);
}
});
},
1000
);
}
hideGetParterAnim
()
{
const
coolcat
=
cc
.
find
(
'
middleLayer/coolcat
'
);
coolcat
.
active
=
false
;
const
apple
=
cc
.
find
(
'
middleLayer/coolcat/apple
'
);
apple
.
active
=
false
;
apple
.
setPosition
(
0
,
0
);
const
light
=
cc
.
find
(
'
middleLayer/coolcat/light
'
);
light
.
active
=
false
;
const
star
=
cc
.
find
(
'
middleLayer/coolcat/star
'
);
star
.
active
=
false
;
}
saveLastGameData
(
callback
)
{
saveLastGameData
(
callback
)
{
const
token
=
cc
.
sys
.
localStorage
.
getItem
(
'
token
'
);
const
token
=
cc
.
sys
.
localStorage
.
getItem
(
'
token
'
);
this
.
callNetworkApiGet
(
'
/api/oxford/v1/kid/info
'
,
{
token
},
(
res
)
=>
{
this
.
callNetworkApiGet
(
'
/api/oxford/v1/kid/info
'
,
{
token
},
(
res
)
=>
{
...
@@ -626,7 +676,5 @@ export default class NewClass extends middleLayerBase {
...
@@ -626,7 +676,5 @@ export default class NewClass extends middleLayerBase {
this
.
reportErrorLog
();
this
.
reportErrorLog
();
this
.
onMiddleLayerLoadingFinish
();
this
.
onMiddleLayerLoadingFinish
();
// 测试定位使用的
// this.playGetParterAnim();
}
}
}
}
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