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
faca4cb5
Commit
faca4cb5
authored
Apr 03, 2020
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
15471ee4
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
220 additions
and
130 deletions
+220
-130
NoPrizePanel.ts
egret/libs/new_wx/components/NoPrizePanel.ts
+1
-1
hbnoprizebg2.png
egret/resource/assets/hbNoPrize/hbnoprizebg2.png
+0
-0
default.res.json
egret/resource/default.res.json
+6
-1
default.thm.json
egret/resource/default.thm.json
+103
-103
HbNoPrize2Skin.exml
egret/resource/skins/HbNoPrize2Skin.exml
+22
-0
HbNoPrizeSkin.exml
egret/resource/skins/HbNoPrizeSkin.exml
+3
-3
HbPrizeSkin.exml
egret/resource/skins/HbPrizeSkin.exml
+2
-2
HbGame.ts
egret/src/panels/HongbaoRain/HbGame.ts
+2
-2
HbNoPrize.ts
egret/src/panels/HongbaoRain/HbNoPrize.ts
+13
-16
HbNoPrize2.ts
egret/src/panels/HongbaoRain/HbNoPrize2.ts
+68
-0
TaskCenterNoPrize.ts
egret/src/panels/TaskCenter/TaskCenterNoPrize.ts
+0
-2
No files found.
egret/libs/new_wx/components/NoPrizePanel.ts
View file @
faca4cb5
...
@@ -14,7 +14,7 @@ export default class NoPrizePanel extends Panel {
...
@@ -14,7 +14,7 @@ export default class NoPrizePanel extends Panel {
start
(
data
)
{
start
(
data
)
{
super
.
start
();
super
.
start
();
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
.
_level
=
parseInt
(
data
.
level
+
''
);
this
[
'lvTxt'
].
text
=
`关卡
${
this
.
_level
}
`
this
[
'lvTxt'
].
text
=
`关卡
${
this
.
_level
}
`
;
//0224需求,去掉炫耀按钮,继续闯关按钮居中
//0224需求,去掉炫耀按钮,继续闯关按钮居中
this
[
'shareBtn'
].
visible
=
false
;
this
[
'shareBtn'
].
visible
=
false
;
...
...
egret/resource/assets/hbNoPrize/hbnoprizebg2.png
0 → 100644
View file @
faca4cb5
178 KB
egret/resource/default.res.json
View file @
faca4cb5
...
@@ -181,7 +181,7 @@
...
@@ -181,7 +181,7 @@
"name"
:
"hbprize"
"name"
:
"hbprize"
},
},
{
{
"keys"
:
"hbNoPrize_bg_png,hbNoPrize_btn_png"
,
"keys"
:
"hbNoPrize_bg_png,hbNoPrize_btn_png
,hbnoprizebg2_png
"
,
"name"
:
"hbnoprize"
"name"
:
"hbnoprize"
},
},
{
{
...
@@ -5367,6 +5367,11 @@
...
@@ -5367,6 +5367,11 @@
"url"
:
"assets/common/commom_share1.png"
,
"url"
:
"assets/common/commom_share1.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"commom_share1_png"
"name"
:
"commom_share1_png"
},
{
"url"
:
"assets/hbNoPrize/hbnoprizebg2.png"
,
"type"
:
"image"
,
"name"
:
"hbnoprizebg2_png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
faca4cb5
{
{
"skins"
:
{},
"skins"
:
{},
"autoGenerateExmlsList"
:
true
,
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"exmls"
:
[
"resource/skins/ADSkin.exml"
,
"resource/skins/ADSkin.exml"
,
"resource/skins/ADSmallSkin.exml"
,
"resource/skins/ADSmallSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/AlertSkin.exml"
,
"resource/skins/AvatarSkin.exml"
,
"resource/skins/AvatarSkin.exml"
,
"resource/skins/BackIndexSkin.exml"
,
"resource/skins/BackIndexSkin.exml"
,
"resource/skins/BackSkin.exml"
,
"resource/skins/BackSkin.exml"
,
"resource/skins/BagItem2Skin.exml"
,
"resource/skins/BagItem2Skin.exml"
,
"resource/skins/BagItemSkin.exml"
,
"resource/skins/BagItemSkin.exml"
,
"resource/skins/BagQuitSkin.exml"
,
"resource/skins/BagQuitSkin.exml"
,
"resource/skins/BagSkin.exml"
,
"resource/skins/BagSkin.exml"
,
"resource/skins/Blood2Skin.exml"
,
"resource/skins/Blood2Skin.exml"
,
"resource/skins/BloodSkin.exml"
,
"resource/skins/BloodSkin.exml"
,
"resource/skins/Box2Skin.exml"
,
"resource/skins/Box2Skin.exml"
,
"resource/skins/BoxSkin.exml"
,
"resource/skins/BoxSkin.exml"
,
"resource/skins/Buy1Skin.exml"
,
"resource/skins/Buy1Skin.exml"
,
"resource/skins/Buy2Skin.exml"
,
"resource/skins/Buy2Skin.exml"
,
"resource/skins/Buy3Skin.exml"
,
"resource/skins/Buy3Skin.exml"
,
"resource/skins/ExchangeSkin.exml"
,
"resource/skins/ExchangeSkin.exml"
,
"resource/skins/FailSkin.exml"
,
"resource/skins/FailSkin.exml"
,
"resource/skins/FriendItem2Skin.exml"
,
"resource/skins/FriendItem2Skin.exml"
,
"resource/skins/FriendItemSkin.exml"
,
"resource/skins/FriendItemSkin.exml"
,
"resource/skins/FriendShareSkin.exml"
,
"resource/skins/FriendShareSkin.exml"
,
"resource/skins/FriendSkin.exml"
,
"resource/skins/FriendSkin.exml"
,
"resource/skins/H52Skin.exml"
,
"resource/skins/H52Skin.exml"
,
"resource/skins/H5Skin.exml"
,
"resource/skins/H5Skin.exml"
,
"resource/skins/HbCutTimeSkin.exml"
,
"resource/skins/HbCutTimeSkin.exml"
,
"resource/skins/HbGameSkin.exml"
,
"resource/skins/HbGameSkin.exml"
,
"resource/skins/HbNoPrizeSkin.exml"
,
"resource/skins/HbNoPrizeSkin.exml"
,
"resource/skins/HbPrizeSkin.exml"
,
"resource/skins/HbPrizeSkin.exml"
,
"resource/skins/HbRuleSkin.exml"
,
"resource/skins/HbRuleSkin.exml"
,
"resource/skins/HelpBloodSkin.exml"
,
"resource/skins/HelpBloodSkin.exml"
,
"resource/skins/HelpInviteSkin.exml"
,
"resource/skins/HelpInviteSkin.exml"
,
"resource/skins/HelpScratchSkin.exml"
,
"resource/skins/HelpScratchSkin.exml"
,
"resource/skins/IconButtonSkin.exml"
,
"resource/skins/IconButtonSkin.exml"
,
"resource/skins/InviteCutTimePanelSkin.exml"
,
"resource/skins/InviteCutTimePanelSkin.exml"
,
"resource/skins/InviteItemSkin.exml"
,
"resource/skins/InviteItemSkin.exml"
,
"resource/skins/InvitePrizePanelSkin.exml"
,
"resource/skins/InvitePrizePanelSkin.exml"
,
"resource/skins/InviteRulePanelSkin.exml"
,
"resource/skins/InviteRulePanelSkin.exml"
,
"resource/skins/InviteRuleSkin.exml"
,
"resource/skins/InviteRuleSkin.exml"
,
"resource/skins/InviteSkin.exml"
,
"resource/skins/InviteSkin.exml"
,
"resource/skins/Main2Skin.exml"
,
"resource/skins/Main2Skin.exml"
,
"resource/skins/MapBottomSkin.exml"
,
"resource/skins/MapBottomSkin.exml"
,
"resource/skins/MapRepeatSkin.exml"
,
"resource/skins/MapRepeatSkin.exml"
,
"resource/skins/MapSkin.exml"
,
"resource/skins/MapSkin.exml"
,
"resource/skins/MapTopSkin.exml"
,
"resource/skins/MapTopSkin.exml"
,
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/NoPrizeSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/OptionItemSkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/OptionsSkin.exml"
,
"resource/skins/PlaySkin.exml"
,
"resource/skins/PlaySkin.exml"
,
"resource/skins/Prize2Skin.exml"
,
"resource/skins/Prize2Skin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/PrizeSkin.exml"
,
"resource/skins/QuitSkin.exml"
,
"resource/skins/QuitSkin.exml"
,
"resource/skins/RankFriendListSkin.exml"
,
"resource/skins/RankFriendListSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/RankItemSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RankSkin.exml"
,
"resource/skins/RechargeSkin.exml"
,
"resource/skins/RechargeSkin.exml"
,
"resource/skins/RedBagActivitySkin.exml"
,
"resource/skins/RedBagActivitySkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBagAlertSkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/RedBombAlertSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombRuleSkin.exml"
,
"resource/skins/RedBombTips2Skin.exml"
,
"resource/skins/RedBombTips2Skin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/RedBombTipsSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/ReliveSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/RuleSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/ScratchItemSkin.exml"
,
"resource/skins/ScratchPrizeSkin.exml"
,
"resource/skins/ScratchPrizeSkin.exml"
,
"resource/skins/ScratchRuleSkin.exml"
,
"resource/skins/ScratchRuleSkin.exml"
,
"resource/skins/ScratchSkin.exml"
,
"resource/skins/ScratchSkin.exml"
,
"resource/skins/Share2Skin.exml"
,
"resource/skins/Share2Skin.exml"
,
"resource/skins/Share3Skin.exml"
,
"resource/skins/Share3Skin.exml"
,
"resource/skins/ShareCodePanelSkin.exml"
,
"resource/skins/ShareCodePanelSkin.exml"
,
"resource/skins/ShareSkin.exml"
,
"resource/skins/ShareSkin.exml"
,
"resource/skins/ShareTipsSkin.exml"
,
"resource/skins/ShareTipsSkin.exml"
,
"resource/skins/ShopSkin.exml"
,
"resource/skins/ShopSkin.exml"
,
"resource/skins/ShopTipSkin.exml"
,
"resource/skins/ShopTipSkin.exml"
,
"resource/skins/ShowOffSkin.exml"
,
"resource/skins/ShowOffSkin.exml"
,
"resource/skins/SignItemSkin.exml"
,
"resource/skins/SignItemSkin.exml"
,
"resource/skins/SignPrizeSkin.exml"
,
"resource/skins/SignPrizeSkin.exml"
,
"resource/skins/SignSkin.exml"
,
"resource/skins/SignSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/StarSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartPanelSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/StartSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TargetItemSkin.exml"
,
"resource/skins/TaskCenterItemSkin.exml"
,
"resource/skins/TaskCenterItemSkin.exml"
,
"resource/skins/TaskCenterNoPrizeSkin.exml"
,
"resource/skins/TaskCenterNoPrizeSkin.exml"
,
"resource/skins/TaskCenterPrizeSkin.exml"
,
"resource/skins/TaskCenterPrizeSkin.exml"
,
"resource/skins/TaskCenterSkin.exml"
,
"resource/skins/TaskCenterSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskItemSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/TaskPrizeSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/TaskSkin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/Toast2Skin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/ToastSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurnRuleSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntableNoPrizeSkin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntablePrize2Skin.exml"
,
"resource/skins/TurntablePrizeSkin.exml"
,
"resource/skins/TurntablePrizeSkin.exml"
,
"resource/skins/TurntableSkin.exml"
,
"resource/skins/TurntableSkin.exml"
,
"resource/skins/VScrollBarSkin.exml"
"resource/skins/VScrollBarSkin.exml"
],
],
"path"
:
"resource/default.thm.json"
"path"
:
"resource/default.thm.json"
}
}
\ No newline at end of file
egret/resource/skins/HbNoPrize2Skin.exml
0 → 100644
View file @
faca4cb5
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"InviteSkin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
y=
"177"
horizontalCenter=
"0"
source=
"hbnoprizebg2_png"
/>
<e:Button
id=
"closeBtn"
label=
""
x=
"590.91"
y=
"177"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"closeCommonBtn_png"
source.down=
"closeCommonBtn_png"
source.disabled=
"closeCommonBtn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button
id=
"ok_btn"
label=
""
y=
"738.76"
anchorOffsetX=
"186.36"
anchorOffsetY=
"63.15"
horizontalCenter=
"0"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"hbNoPrize_btn_png"
source.down=
"hbNoPrize_btn_png"
source.disabled=
"hbNoPrize_btn_png"
/>
<e:Label
id=
"labelDisplay"
horizontalCenter=
"0"
verticalCenter=
"0"
/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
\ No newline at end of file
egret/resource/skins/HbNoPrizeSkin.exml
View file @
faca4cb5
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Button
id=
"ok_btn"
label=
""
y=
"5
63
"
anchorOffsetX=
"150"
anchorOffsetY=
"48"
horizontalCenter=
"0"
>
<e:Button
id=
"ok_btn"
label=
""
y=
"5
58
"
anchorOffsetX=
"150"
anchorOffsetY=
"48"
horizontalCenter=
"0"
>
<e:skinName>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<e:Skin
states=
"up,down,disabled"
>
<e:Image
width=
"100%"
height=
"100%"
source=
"hbNoPrize_btn_png"
source.down=
"hbNoPrize_btn_png"
source.disabled=
"hbNoPrize_btn_png"
/>
<e:Image
width=
"100%"
height=
"100%"
source=
"hbNoPrize_btn_png"
source.down=
"hbNoPrize_btn_png"
source.disabled=
"hbNoPrize_btn_png"
/>
...
@@ -19,6 +19,6 @@
...
@@ -19,6 +19,6 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Label
id=
"tips"
text=
"您的速度太慢啦,奖励已经被抢走了~"
y=
"389"
verticalAlign=
"bottom"
textAlign=
"center"
horizontalCenter=
"0"
fontFamily=
"FZY4JW"
textColor=
"0xc17343"
/>
<e:Label
id=
"tips"
text=
"您的速度太慢啦,奖励已经被抢走了~"
y=
"389"
verticalAlign=
"bottom"
textAlign=
"center"
horizontalCenter=
"0"
fontFamily=
"FZY4JW"
textColor=
"0xc17343"
visible=
"false"
/>
<e:Label
text=
"
下次继续努力吧!"
y=
"431"
verticalAlign=
"bottom"
textAlign=
"center"
horizontalCenter=
"-1"
fontFamily=
"FZY4JW"
textColor=
"0xc17343
"
/>
<e:Label
text=
"
手速稍慢,再接再厉!"
y=
"412.5"
verticalAlign=
"bottom"
textAlign=
"center"
horizontalCenter=
"0"
fontFamily=
"FZY4JW"
textColor=
"0xc17343"
size=
"36
"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/HbPrizeSkin.exml
View file @
faca4cb5
...
@@ -31,6 +31,6 @@
...
@@ -31,6 +31,6 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Label
text=
"不愧是卓越的手速达人!"
y=
"4
48
"
fontFamily=
"FZY3JW"
size=
"36"
horizontalCenter=
"0"
textColor=
"0xc17343"
/>
<e:Label
text=
"不愧是卓越的手速达人!"
y=
"4
20
"
fontFamily=
"FZY3JW"
size=
"36"
horizontalCenter=
"0"
textColor=
"0xc17343"
/>
<e:Label
id=
"tipLabel"
text=
"一共抢到18个红包"
y=
"398"
fontFamily=
"FZY3JW"
size=
"36"
horizontalCenter=
"0"
textColor=
"0xc17343"
/>
<e:Label
id=
"tipLabel"
text=
"一共抢到18个红包"
y=
"398"
fontFamily=
"FZY3JW"
size=
"36"
horizontalCenter=
"0"
textColor=
"0xc17343"
visible=
"false"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/HongbaoRain/HbGame.ts
View file @
faca4cb5
...
@@ -95,10 +95,10 @@ export default class HbGame extends Panel {
...
@@ -95,10 +95,10 @@ export default class HbGame extends Panel {
if
(
!
success
)
{
if
(
!
success
)
{
switch
(
true
)
{
switch
(
true
)
{
case
(
code
==
"600015"
):
// 网络错误 //命中风控参与规则
case
(
code
==
"600015"
):
// 网络错误 //命中风控参与规则
PanelCtrl
.
instance
.
show
(
"HbNoPrize"
,
{
type
:
2
});
PanelCtrl
.
instance
.
show
(
"HbNoPrize
2
"
,
{
type
:
2
});
break
;
break
;
case
(
code
==
"600016"
):
// 游戏分数提交失败~如有疑问,请联系客服 // 苏宁风控 命中
case
(
code
==
"600016"
):
// 游戏分数提交失败~如有疑问,请联系客服 // 苏宁风控 命中
PanelCtrl
.
instance
.
show
(
"HbNoPrize"
,
{
type
:
2
});
PanelCtrl
.
instance
.
show
(
"HbNoPrize
2
"
,
{
type
:
2
});
break
;
break
;
case
(
code
==
"600054"
):
// 红包雨活动暂未开启
case
(
code
==
"600054"
):
// 红包雨活动暂未开启
PanelCtrl
.
instance
.
show
(
"HbNoPrize"
,
{
type
:
1
});
PanelCtrl
.
instance
.
show
(
"HbNoPrize"
,
{
type
:
1
});
...
...
egret/src/panels/HongbaoRain/HbNoPrize.ts
View file @
faca4cb5
...
@@ -3,9 +3,6 @@ import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
...
@@ -3,9 +3,6 @@ import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import
getHomeData
from
"../../getHomeData"
;
import
getHomeData
from
"../../getHomeData"
;
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
addAdComp
}
from
"../BoxPanel"
;
import
Utils
from
"../../Utils"
;
import
CutTimer
from
"../../CutTimer"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../Main"
;
import
{
getlogItem
}
from
"../../Main"
;
...
@@ -30,19 +27,19 @@ export default class HbNoPrize extends Panel {
...
@@ -30,19 +27,19 @@ export default class HbNoPrize extends Panel {
initUI
()
{
initUI
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
60
));
NetManager
.
ins
.
showLog
(
getlogItem
(
60
));
let
type
=
this
.
data
.
type
;
//
let type = this.data.type;
switch
(
true
)
{
//
switch(true) {
case
(
type
==
1
):
//
case (type == 1):
this
.
tips
.
text
=
'您的速度太慢啦,奖励已经被抢走了~'
;
//
this.tips.text = '您的速度太慢啦,奖励已经被抢走了~';
break
;
//
break;
case
(
type
==
2
):
//
case (type == 2):
this
.
tips
.
text
=
'您的速度太慢啦,'
;
//
this.tips.text = '您的速度太慢啦,';
break
;
//
break;
//
default
:
//
default:
this
.
tips
.
text
=
'您的速度太慢啦,奖励已经被抢走了~'
;
//
this.tips.text = '您的速度太慢啦,奖励已经被抢走了~';
break
;
//
break;
}
//
}
}
}
protected
onSkinComplete
()
{
protected
onSkinComplete
()
{
...
...
egret/src/panels/HongbaoRain/HbNoPrize2.ts
0 → 100644
View file @
faca4cb5
import
Panel
from
"../../../libs/new_wx/components/Panel"
;
import
{
GDispatcher
}
from
"../../../libs/tc/util/GDispatcher"
;
import
getHomeData
from
"../../getHomeData"
;
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../Main"
;
/**
* 红包雨无奖励风控
*/
export
default
class
HbNoPrize
extends
Panel
{
public
closeBtn
:
eui
.
Button
;
public
ok_btn
:
eui
.
Button
;
constructor
(
data
)
{
super
();
this
.
data
=
data
;
}
async
start
()
{
super
.
start
();
this
.
initUI
();
GDispatcher
.
dispatchEvent
(
'updateHbRainIcon'
);
}
initUI
()
{
NetManager
.
ins
.
showLog
(
getlogItem
(
60
));
}
protected
onSkinComplete
()
{
}
initEvents
()
{
super
.
initEvents
();
this
.
closeBtn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap_closeBtn
,
this
);
this
.
ok_btn
.
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
}
removeEvents
()
{
super
.
removeEvents
();
this
.
closeBtn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchTap_closeBtn
,
this
);
this
.
ok_btn
.
removeEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,
this
.
onTouchOK
,
this
);
}
onTouchTap_closeBtn
()
{
super
.
onTouchTap_closeBtn
();
}
onTouchOK
()
{
NetManager
.
ins
.
clickLog
(
getlogItem
(
60
));
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
changeMapScene
();
super
.
hidePanel
();
return
;
}
PanelCtrl
.
instance
.
show
(
"StartPanel"
,
getHomeData
().
levels
.
length
+
1
);
}
protected
get
closeBtns
():
eui
.
Button
[]
{
return
[
this
[
'closeBtn'
]]
}
get
skinKey
()
{
return
'HbNoPrize2'
}
}
egret/src/panels/TaskCenter/TaskCenterNoPrize.ts
View file @
faca4cb5
import
Panel
from
"../../../libs/new_wx/components/Panel"
;
import
Panel
from
"../../../libs/new_wx/components/Panel"
;
import
{
addAdComp
}
from
"../BoxPanel"
;
import
{
addAdComp
}
from
"../BoxPanel"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../../libs/new_wx/ctrls/panelCtrl"
;
import
{
NetManager
}
from
"../../../libs/tw/manager/NetManager"
;
import
{
getlogItem
}
from
"../../Main"
;
import
getHomeData
from
"../../getHomeData"
;
import
getHomeData
from
"../../getHomeData"
;
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
import
{
changeMapScene
}
from
"../../startScene/StartScene"
;
...
...
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