Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
middleLayer_for_debug
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_debug
Commits
eec9a0e0
Commit
eec9a0e0
authored
May 10, 2022
by
huoshizhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 结束时展示restart按钮
parent
f9a011dd
Changes
2
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
762 additions
and
376 deletions
+762
-376
middleLayer_for_debug.fire
...ts/middleLayer_for_debug/scene/middleLayer_for_debug.fire
+750
-376
middleLayer.js
assets/middleLayer_for_debug/script/middleLayer.js
+12
-0
No files found.
assets/middleLayer_for_debug/scene/middleLayer_for_debug.fire
View file @
eec9a0e0
This diff is collapsed.
Click to expand it.
assets/middleLayer_for_debug/script/middleLayer.js
View file @
eec9a0e0
...
...
@@ -277,9 +277,19 @@ cc.Class({
},
0
);
console
.
log
(
'
rightCount =
'
+
rightCount
);
}
this
.
showRestartBtn
();
console
.
log
(
'
onHomeworkFinish:
'
+
JSON
.
stringify
(
data
));
},
showRestartBtn
()
{
const
btnRestart
=
cc
.
find
(
'
middleLayer/BtnRestart
'
);
btnRestart
.
active
=
true
;
btnRestart
.
once
(
'
click
'
,
()
=>
{
btnRestart
.
active
=
false
;
this
.
loadPageBundle
();
});
},
callMiddleLayerFunction
(
apiName
,
data
,
callback
)
{
switch
(
apiName
)
{
case
'
NS_login
'
:
...
...
@@ -771,6 +781,8 @@ cc.Class({
return
this
.
asyncDelayLog
(
err
);
}
bundle
.
loadScene
(
sceneName
,
null
,
null
,
(
err
,
scene
)
=>
{
const
btnRestart
=
cc
.
find
(
'
middleLayer/BtnRestart
'
);
btnRestart
.
active
=
false
;
if
(
err
)
{
this
.
asyncDelayLog
(
'
err:
'
,
err
);
}
...
...
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