Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
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
wildfirecode13
xiaoxiaole
Commits
b43c4135
Commit
b43c4135
authored
Aug 26, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
fc814589
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
11 deletions
+26
-11
NoPrizePanel.ts
egret/libs/new_wx/components/NoPrizePanel.ts
+5
-2
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+9
-4
FailedPanel.ts
egret/src/panels/FailedPanel.ts
+12
-5
No files found.
egret/libs/new_wx/components/NoPrizePanel.ts
View file @
b43c4135
...
...
@@ -7,10 +7,11 @@ import { ModuleTypes } from "../types/sceneTypes";
import
{
createData
}
from
"../../../src/startScene/StartScene"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
export
default
class
NoPrizePanel
extends
Panel
{
_level
;
start
(
data
)
{
super
.
start
();
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
16
));
...
...
@@ -28,8 +29,10 @@ export default class NoPrizePanel extends Panel {
onTouchTap_closeBtn
()
{
super
.
onTouchTap_closeBtn
();
if
(
this
.
_level
+
1
<=
70
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
+
1
});
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
// SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, createData());
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'goBtn'
]]
}
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
b43c4135
...
...
@@ -6,6 +6,7 @@ import SceneCtrl from "../ctrls/sceneCtrl";
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
Panel
from
"./Panel"
;
export
default
class
PrizePanel
extends
Panel
{
_level
;
start
(
data
)
{
super
.
start
();
...
...
@@ -16,6 +17,7 @@ export default class PrizePanel extends Panel {
// this.img.height = this.picBigWidth / this.bigPicRatio;
// showCustomLog(lottery);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
.
data
.
img
=
DataManager
.
ins
.
getData
(
'getPlugOrderStatus'
).
lottery
.
imgurl
;
...
...
@@ -25,7 +27,7 @@ export default class PrizePanel extends Panel {
},
this
);
this
.
showlog
();
NetManager
.
ins
.
hc_home
(()
=>
{},
window
[
'collectRuleId'
]);
NetManager
.
ins
.
hc_home
(()
=>
{
},
window
[
'collectRuleId'
]);
const
hc_submitData
=
DataManager
.
ins
.
getData
(
'hc_submit'
).
data
;
this
.
setStar
(
hc_submitData
.
stars
);
...
...
@@ -52,6 +54,9 @@ export default class PrizePanel extends Panel {
onTouchTap_closeBtn
():
any
{
super
.
onTouchTap_closeBtn
();
if
(
this
.
_level
+
1
<=
70
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
+
1
});
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
// SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, createData());
}
...
...
egret/src/panels/FailedPanel.ts
View file @
b43c4135
...
...
@@ -5,16 +5,23 @@ import { createData } from "../startScene/StartScene";
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
export
default
class
FailedPanel
extends
Panel
{
_level
;
start
(
data
)
{
super
.
start
();
NetManager
.
ins
.
hc_home
(()
=>
{},
window
[
'collectRuleId'
]);
if
(
data
)
this
.
_level
=
parseInt
(
data
.
level
+
''
);
NetManager
.
ins
.
hc_home
(()
=>
{
},
window
[
'collectRuleId'
]);
}
onTouchTap_closeBtn
()
{
super
.
onTouchTap_closeBtn
();
if
(
this
.
_level
)
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
{
level
:
this
.
_level
});
else
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
);
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'againBtn'
]]
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'againBtn'
]]
}
get
skinKey
()
{
return
'Fail'
}
}
\ No newline at end of file
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