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
596aab10
Commit
596aab10
authored
Oct 14, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
3085d624
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
5 deletions
+8
-5
InviteCutTimePanelSkin.exml
egret/resource/skins/InviteCutTimePanelSkin.exml
+0
-1
InvitePrizePanelSkin.exml
egret/resource/skins/InvitePrizePanelSkin.exml
+1
-1
InviteCutTimePanel.ts
egret/src/panels/InviteCutTimePanel.ts
+3
-1
InvitePrizePanel.ts
egret/src/panels/InvitePrizePanel.ts
+3
-1
getInviteInfo.json
mock/happyclear/getInviteInfo.json
+1
-1
No files found.
egret/resource/skins/InviteCutTimePanelSkin.exml
View file @
596aab10
...
@@ -20,5 +20,4 @@
...
@@ -20,5 +20,4 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Component
y=
"726.33"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/InvitePrizePanelSkin.exml
View file @
596aab10
...
@@ -28,5 +28,5 @@
...
@@ -28,5 +28,5 @@
</e:Skin>
</e:Skin>
</e:skinName>
</e:skinName>
</e:Button>
</e:Button>
<e:Component
y=
"845.33"
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
/>
<e:Component
skinName=
"ADSmallSkin"
horizontalCenter=
"0"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/src/panels/InviteCutTimePanel.ts
View file @
596aab10
...
@@ -4,6 +4,7 @@ import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
...
@@ -4,6 +4,7 @@ import PanelCtrl from "../../libs/new_wx/ctrls/panelCtrl";
import
getHomeData
from
"../getHomeData"
;
import
getHomeData
from
"../getHomeData"
;
import
{
ModuleTypes
}
from
"../../libs/new_wx/types/sceneTypes"
;
import
{
ModuleTypes
}
from
"../../libs/new_wx/types/sceneTypes"
;
import
Utils
from
"../Utils"
;
import
Utils
from
"../Utils"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
/**
/**
* 邀请规则面板
* 邀请规则面板
...
@@ -40,7 +41,7 @@ export default class InviteCutTimePanel extends Panel {
...
@@ -40,7 +41,7 @@ export default class InviteCutTimePanel extends Panel {
}
}
onTouchOK
()
{
onTouchOK
()
{
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
changeMapScene
();
changeMapScene
();
super
.
hidePanel
();
super
.
hidePanel
();
return
;
return
;
...
@@ -56,6 +57,7 @@ export default class InviteCutTimePanel extends Panel {
...
@@ -56,6 +57,7 @@ export default class InviteCutTimePanel extends Panel {
this
.
timer
.
addEventListener
(
egret
.
TimerEvent
.
TIMER
,
this
.
cutTimer
,
this
);
this
.
timer
.
addEventListener
(
egret
.
TimerEvent
.
TIMER
,
this
.
cutTimer
,
this
);
this
.
timer
.
start
();
this
.
timer
.
start
();
this
.
cutTimer
();
this
.
cutTimer
();
addAdComp
(
84
,
726.33
,
this
);
}
}
private
cutTimer
()
{
private
cutTimer
()
{
...
...
egret/src/panels/InvitePrizePanel.ts
View file @
596aab10
...
@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel";
...
@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel";
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
PanelCtrl
from
"../../libs/new_wx/ctrls/panelCtrl"
;
import
getHomeData
from
"../getHomeData"
;
import
getHomeData
from
"../getHomeData"
;
import
{
changeMapScene
}
from
"../startScene/StartScene"
;
import
{
changeMapScene
}
from
"../startScene/StartScene"
;
import
{
addAdComp
}
from
"./BoxPanel"
;
/**
/**
* 邀请规则面板
* 邀请规则面板
...
@@ -38,7 +39,7 @@ export default class InvitePrizePanel extends Panel {
...
@@ -38,7 +39,7 @@ export default class InvitePrizePanel extends Panel {
}
}
onTouchOK
()
{
onTouchOK
()
{
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
if
((
getHomeData
().
levels
.
length
+
1
)
>
window
[
'last_level'
])
{
changeMapScene
();
changeMapScene
();
super
.
hidePanel
();
super
.
hidePanel
();
return
;
return
;
...
@@ -52,6 +53,7 @@ export default class InvitePrizePanel extends Panel {
...
@@ -52,6 +53,7 @@ export default class InvitePrizePanel extends Panel {
initUI
()
{
initUI
()
{
this
.
prizeImg
.
source
=
this
.
data
.
prizeImg
;
this
.
prizeImg
.
source
=
this
.
data
.
prizeImg
;
addAdComp
(
84
,
845.33
,
this
);
}
}
protected
get
closeBtns
():
eui
.
Button
[]
{
protected
get
closeBtns
():
eui
.
Button
[]
{
...
...
mock/happyclear/getInviteInfo.json
View file @
596aab10
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
"avatar"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
"avatar"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
}
}
],
],
"completeFlag"
:
0
,
"completeFlag"
:
1
,
"openPrizeMsg"
:
"图片"
,
"openPrizeMsg"
:
"图片"
,
"prizeType"
:
"nickname"
,
"prizeType"
:
"nickname"
,
"prizeName"
:
"nickname"
,
"prizeName"
:
"nickname"
,
...
...
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