Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
game2048
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
熊东起
game2048
Commits
b5f88d29
Commit
b5f88d29
authored
Apr 26, 2020
by
wjf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
l
parent
c3b6da04
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
panelCtrl.ts
module/ctrls/panelCtrl.ts
+3
-2
No files found.
module/ctrls/panelCtrl.ts
View file @
b5f88d29
...
@@ -53,7 +53,7 @@ export default class PanelCtrl {
...
@@ -53,7 +53,7 @@ export default class PanelCtrl {
show
<
T
extends
Panel
>
(
cls
:
any
,
data
?:
any
):
T
{
show
<
T
extends
Panel
>
(
cls
:
any
,
data
?:
any
):
T
{
showWaiting
()
showWaiting
()
const
panel
:
T
=
new
cls
(
data
);
const
panel
:
T
=
new
cls
(
data
);
this
.
add
(
panel
);
this
.
add
(
panel
);
//必须得先加入栈,否则多重弹框重叠顺序就按加载熟读了
this
.
stacks
.
push
(
panel
);
this
.
stacks
.
push
(
panel
);
panel
.
onLoaded
=
()
=>
{
panel
.
onLoaded
=
()
=>
{
hideWaiting
();
hideWaiting
();
...
@@ -61,10 +61,11 @@ export default class PanelCtrl {
...
@@ -61,10 +61,11 @@ export default class PanelCtrl {
//start只执行一边,考虑什么时候执行,多弹框的时候
//start只执行一边,考虑什么时候执行,多弹框的时候
panel
.
start
(
data
);
panel
.
start
(
data
);
}
}
//资源加载失败时
//资源加载失败时
,RES的加载失败策略有问题,再检查
panel
.
onLoadError
=
()
=>
{
panel
.
onLoadError
=
()
=>
{
hideWaiting
();
hideWaiting
();
showToast
(
"资源加载失败"
)
showToast
(
"资源加载失败"
)
panel
.
removeEventListener
(
'onDestroy'
,
this
.
onPanelHide
,
this
);
this
.
remove
(
panel
);
this
.
remove
(
panel
);
}
}
...
...
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