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
9ddcd4eb
Commit
9ddcd4eb
authored
Aug 21, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
26dc3c0c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
47 additions
and
42 deletions
+47
-42
NoPrizePanel.ts
egret/libs/new_wx/components/NoPrizePanel.ts
+11
-4
PrizePanel.ts
egret/libs/new_wx/components/PrizePanel.ts
+11
-33
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-2
BoxPanel.ts
egret/src/panels/BoxPanel.ts
+11
-2
QuitPanel.ts
egret/src/panels/QuitPanel.ts
+11
-1
No files found.
egret/libs/new_wx/components/NoPrizePanel.ts
View file @
9ddcd4eb
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
Panel
from
"./Panel"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
import
setGray
from
"../../../src/setGray"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
Panel
from
"./Panel"
;
export
default
class
NoPrizePanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
this
.
setStar
(
0
);
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
16
));
},
this
);
this
.
showlog
();
}
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
16
));
}
setStar
(
nums
:
number
)
{
...
...
egret/libs/new_wx/components/PrizePanel.ts
View file @
9ddcd4eb
import
showCustomLog
from
"../../new_tw/ctrls/showCustomLog"
;
import
{
LotteryType
}
from
"../../tw/enum/LotteryType"
;
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
SceneCtrl
from
"../ctrls/sceneCtrl"
;
import
{
ModuleTypes
}
from
"../types/sceneTypes"
;
import
Panel
from
"./Panel"
;
import
setGray
from
"../../../src/setGray"
;
import
Panel
from
"./Panel"
;
import
{
NetManager
}
from
"../../tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../../src/Main"
;
export
default
class
PrizePanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
...
...
@@ -19,8 +15,15 @@ export default class PrizePanel extends Panel {
// showCustomLog(lottery);
this
.
setStar
(
3
);
}
this
[
'shareBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
15
));
},
this
);
this
.
showlog
();
}
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
15
));
}
setStar
(
nums
:
number
)
{
if
(
nums
==
0
)
{
setGray
(
this
[
'pic1'
]);
...
...
@@ -46,31 +49,6 @@ export default class PrizePanel extends Panel {
get
picBigWidth
()
{
return
510
};
get
bigPicRatio
()
{
return
640
/
300
}
initEvents
()
{
super
.
initEvents
();
// this.useBtn.once(egret.TouchEvent.TOUCH_TAP, this.onUse, this);
// this.img.once(egret.TouchEvent.TOUCH_TAP, this.onUse, this);
}
onUse
()
{
// const lottery = DataManager.ins.getCustomOrderStatusData.lottery;
// if (lottery.type == LotteryType.COUPON || lottery.type == LotteryType.LUCKY) {
// window["downloadAppConfig"] =
// {
// openUrl: lottery.openUrl,
// iosDownloadUrl: lottery.iosDownloadUrl,
// androidDownloadUrl: lottery.androidDownloadUrl,
// confirm: lottery.confirm ? lottery.confirm : false
// };
// window["downloadApp"]();
// if (lottery.type == "lucky") {
// NetManager.ins.spmclick(DataManager.ins.getCustomOrderStatusData.exposure);
// }
// }
// else {
// window.location.href = lottery.link;
// }
}
img
:
eui
.
Image
;
useBtn
:
eui
.
Button
;
get
skinKey
()
{
return
'Prize'
}
...
...
egret/src/mapScene/MapScene.ts
View file @
9ddcd4eb
...
...
@@ -50,12 +50,13 @@ export default class MapScene extends Scene {
const
element
=
MapScene
.
iconHash
[
key
];
element
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
PanelCtrl
.
instance
.
show
(
'StartPanel'
,
key
);
NetManager
.
ins
.
clickLog
(
getlogItem
(
19
))
},
this
)
}
// setTimeout(() => {
//
// PanelCtrl.instance.show('box
');
// getSharePic(this);
//
PanelCtrl.instance.show('quit
');
//
//
getSharePic(this);
// }, 2000);
this
.
updateHomeData
();
...
...
egret/src/panels/BoxPanel.ts
View file @
9ddcd4eb
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../Main"
;
export
default
class
BoxPanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
}
this
[
'close2Btn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
17
));
},
this
);
this
.
showlog
();
}
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
17
));
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
],
this
[
'close2Btn'
]]
}
get
skinKey
()
{
return
'Box'
}
}
\ No newline at end of file
egret/src/panels/QuitPanel.ts
View file @
9ddcd4eb
import
Panel
from
"../../libs/new_wx/components/Panel"
;
import
{
NetManager
}
from
"../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../Main"
;
export
default
class
QuitPanel
extends
Panel
{
start
(
data
)
{
super
.
start
();
this
[
'quitBtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
()
=>
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
18
));
},
this
);
this
.
showlog
();
}
showlog
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
18
));
}
get
skinKey
()
{
return
'Quit'
}
...
...
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