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
717ed2b5
Commit
717ed2b5
authored
Oct 12, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b9636b57
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
93 additions
and
15 deletions
+93
-15
index.html
egret/index.html
+2
-1
MainBase.ts
egret/libs/new_wx/MainBase.ts
+9
-4
RulePanel2.ts
egret/libs/new_wx/components/RulePanel2.ts
+21
-0
h5_gobtn.png
egret/resource/assets/h5/h5_gobtn.png
+0
-0
h5btn.png
egret/resource/assets/h5/h5btn.png
+0
-0
invitebg.jpg
egret/resource/assets/invitebg.jpg
+0
-0
default.res.json
egret/resource/default.res.json
+26
-6
default.thm.json
egret/resource/default.thm.json
+1
-0
H5Skin.exml
egret/resource/skins/H5Skin.exml
+4
-2
InviteRuleSkin.exml
egret/resource/skins/InviteRuleSkin.exml
+20
-0
H5Scene.ts
egret/src/H5Scene.ts
+9
-1
MapScene.ts
egret/src/mapScene/MapScene.ts
+1
-1
No files found.
egret/index.html
View file @
717ed2b5
...
@@ -48,7 +48,8 @@
...
@@ -48,7 +48,8 @@
<script
src=
"libs/pad-zeropadding.js"
></script>
<script
src=
"libs/pad-zeropadding.js"
></script>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<img
id=
"pic"
style=
"width:100%;position: absolute;z-index: 999;display: none;"
/>
<script>
<script>
window
[
'isInvitePage'
]
=
0
;
window
[
'isInvitePage'
]
=
1
;
var
targetUrl
=
'https://gameact.suning.com/sngame-web/api/duiba/private/v1/getLoginUrl.do?appCode=duiba&activityCode=3651404'
;
/*
/*
* 邀请有礼分享
* 邀请有礼分享
*/
*/
...
...
egret/libs/new_wx/MainBase.ts
View file @
717ed2b5
...
@@ -51,6 +51,7 @@ import InvitePrizePanel from "../../src/panels/InvitePrizePanel";
...
@@ -51,6 +51,7 @@ import InvitePrizePanel from "../../src/panels/InvitePrizePanel";
import
BagPanel
from
"../../src/panels/BagPanel"
;
import
BagPanel
from
"../../src/panels/BagPanel"
;
import
H5Scene
from
"../../src/H5Scene"
;
import
H5Scene
from
"../../src/H5Scene"
;
import
InviteCutTimePanel
from
"../../src/panels/InviteCutTimePanel"
;
import
InviteCutTimePanel
from
"../../src/panels/InviteCutTimePanel"
;
import
RulePanel2
from
"./components/RulePanel2"
;
export
default
class
MainBase
extends
eui
.
UILayer
{
export
default
class
MainBase
extends
eui
.
UILayer
{
constructor
()
{
constructor
()
{
...
@@ -66,6 +67,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -66,6 +67,7 @@ export default class MainBase extends eui.UILayer {
[
ModuleTypes
.
ALERT_PANEL
,
{
cls
:
Alert
}],
[
ModuleTypes
.
ALERT_PANEL
,
{
cls
:
Alert
}],
[
ModuleTypes
.
RULE_PANEL
,
{
cls
:
RulePanel
}],
[
ModuleTypes
.
RULE_PANEL
,
{
cls
:
RulePanel
}],
[
'inviterule'
,
{
cls
:
RulePanel2
}],
[
ModuleTypes
.
PRIZE_PANEL
,
{
cls
:
PrizePanel
}],
[
ModuleTypes
.
PRIZE_PANEL
,
{
cls
:
PrizePanel
}],
[
ModuleTypes
.
NO_PRIZE_PANEL
,
{
cls
:
NoPrizePanel
}],
[
ModuleTypes
.
NO_PRIZE_PANEL
,
{
cls
:
NoPrizePanel
}],
[
'bag'
,
{
cls
:
BagPanel
}],
[
'bag'
,
{
cls
:
BagPanel
}],
...
@@ -90,7 +92,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -90,7 +92,7 @@ export default class MainBase extends eui.UILayer {
[
'back'
,
{
cls
:
BackPanel
}],
[
'back'
,
{
cls
:
BackPanel
}],
[
'invite'
,
{
cls
:
InvitePanel
}],
[
'invite'
,
{
cls
:
InvitePanel
}],
[
'invitePrize'
,
{
cls
:
InvitePrizePanel
}],
[
'invitePrize'
,
{
cls
:
InvitePrizePanel
}],
[
'inviteCutTime'
,
{
cls
:
InviteCutTimePanel
}],
[
'inviteCutTime'
,
{
cls
:
InviteCutTimePanel
}],
[
'inviteRule'
,
{
cls
:
InviteRulePanel
}],
[
'inviteRule'
,
{
cls
:
InviteRulePanel
}],
[
'friend'
,
{
cls
:
FriendPanel
}],
[
'friend'
,
{
cls
:
FriendPanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
[
'ad'
,
{
cls
:
ADPanel
}],
...
@@ -275,8 +277,11 @@ export default class MainBase extends eui.UILayer {
...
@@ -275,8 +277,11 @@ export default class MainBase extends eui.UILayer {
}
}
}
}
if
(
window
[
'isInvitePage'
]
==
1
)
if
(
window
[
'isInvitePage'
]
==
1
)
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INVITE_SCENE
);
this
.
ajaxElement
().
then
(()
=>
{
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
INVITE_SCENE
);
})
}
else
else
this
.
createGameScene
();
this
.
createGameScene
();
}
}
...
@@ -343,7 +348,7 @@ export default class MainBase extends eui.UILayer {
...
@@ -343,7 +348,7 @@ export default class MainBase extends eui.UILayer {
MapScene
.
adData
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
MapScene
.
adData
=
DataManager
.
ins
.
getData
(
'hc_advert'
);
Buried
.
init
();
Buried
.
init
();
///////////
///////////
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
this
.
svgaList
);
SceneCtrl
.
instance
.
change
(
ModuleTypes
.
START_SCENE
,
this
.
svgaList
);
NetManager
.
ins
.
getShareInfo
(()
=>
{
NetManager
.
ins
.
getShareInfo
(()
=>
{
...
...
egret/libs/new_wx/components/RulePanel2.ts
0 → 100644
View file @
717ed2b5
import
{
DataManager
}
from
"../../tw/manager/DataManager"
;
import
{
HtmlTextParser
}
from
"../HtmlTextParser"
;
import
Panel
from
"./Panel"
;
export
default
class
RulePanel2
extends
Panel
{
public
labContent
:
eui
.
Label
;
public
scroller
:
eui
.
Scroller
;
start
()
{
super
.
start
();
this
.
addRule
();
}
group
:
eui
.
Group
;
private
addRule
()
{
const
text
=
'<br>'
+
DataManager
.
ins
.
ajaxElementData
.
rule
;
this
.
labContent
.
textFlow
=
(
new
HtmlTextParser
).
parser
(
text
);
}
get
skinKey
()
{
return
'InviteRule'
}
}
\ No newline at end of file
egret/resource/assets/h5/h5_gobtn.png
0 → 100644
View file @
717ed2b5
38.8 KB
egret/resource/assets/h5/h5btn.png
0 → 100644
View file @
717ed2b5
1.31 KB
egret/resource/assets/invitebg.jpg
0 → 100644
View file @
717ed2b5
215 KB
egret/resource/default.res.json
View file @
717ed2b5
...
@@ -61,7 +61,7 @@
...
@@ -61,7 +61,7 @@
"name"
:
"prize2"
"name"
:
"prize2"
},
},
{
{
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_
ele9_png,startpanel_ele8_png,startpanel_ele7_png,startpanel_ele6_png,startpanel_ele5_png,startpanel_ele4_png,startpanel_ele3_png,startpanel_ele2_png,startpanel_ele1_png,startpanel_ele0_png,startpanel_block2
_png"
,
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_
icon3_png,startpanel_icon2_png,startpanel_icon1_png,startpanel_icon_png,startpanel_ele9_png,startpanel_ele8_png,startpanel_ele7_png,startpanel_ele6_png,startpanel_ele5_png,startpanel_ele4_png,startpanel_ele3_png,startpanel_ele2_png,startpanel_ele1_png,startpanel_ele0_png,startpanel_block2_png,startpanel_bg2_png,startpanel_avatar
_png"
,
"name"
:
"startpanel"
"name"
:
"startpanel"
},
},
{
{
...
@@ -84,10 +84,6 @@
...
@@ -84,10 +84,6 @@
"keys"
:
"toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png"
,
"keys"
:
"toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png"
,
"name"
:
"common"
"name"
:
"common"
},
},
{
"keys"
:
"startpanel通关条件_png,startpanel数量_png,startpanel数量 副本 3_png,startpanel目标33_png,startpanel目标3_png,startpanel按钮_png,startpanel_icon3_png,startpanel_icon2_png,startpanel_icon1_png,startpanel_icon_png,startpanel_ice1_png,startpanel_ele6_png,startpanel_block2_png,startpanel_bg2_png,startpanel_avatar_png,startpanel_xxxx_png"
,
"name"
:
"startpanel"
},
{
{
"keys"
:
"friendbg_png,friend按钮-炫耀_png,friend_itembg_png,friend_icon3_png,friend_icon2_png,friend_icon1_png"
,
"keys"
:
"friendbg_png,friend按钮-炫耀_png,friend_itembg_png,friend_icon3_png,friend_icon2_png,friend_icon1_png"
,
"name"
:
"friend"
"name"
:
"friend"
...
@@ -97,12 +93,16 @@
...
@@ -97,12 +93,16 @@
"name"
:
"invite"
"name"
:
"invite"
},
},
{
{
"keys"
:
"
按钮 副本
_png"
,
"keys"
:
"
h5btn_png,h5_gobtn
_png"
,
"name"
:
"h5"
"name"
:
"h5"
},
},
{
{
"keys"
:
"bonusFra1_png,bonusFra10_png,bonusFra11_png,bonusFra12_png,bonusFra13_png,bonusFra14_png,bonusFra15_png,bonusFra16_png,bonusFra17_png,bonusFra18_png,bonusFra19_png,bonusFra2_png,bonusFra20_png,bonusFra21_png,bonusFra22_png,bonusFra23_png,bonusFra24_png,bonusFra25_png,bonusFra26_png,bonusFra27_png,bonusFra3_png,bonusFra4_png,bonusFra5_png,bonusFra6_png,bonusFra7_png,bonusFra8_png,bonusFra9_png,bonusShoot_png,bonusTime_png,boom1_png,boom10_png,boom11_png,boom12_png,boom13_png,boom14_png,boom15_png,boom16_png,boom17_png,boom18_png,boom2_png,boom3_png,boom4_png,boom5_png,boom6_png,boom7_png,boom8_png,boom9_png,boomBtn_png,chooseRect_png,dangqianfenshu_png,eggPiece1_png,eggPiece2_png,eggPiece3_png,eggPiece4_png,eggPiece5_png,eggStatus0_png,eggStatus1_png,eggStatus2_png,ele0_png,ele0Exp_png,ele0Line_png,ele1_png,ele1Exp_png,ele1Line_png,ele2_png,ele2Exp_png,ele2Line_png,ele3_png,ele3Exp_png,ele3Line_png,ele4_png,ele4Exp_png,ele4Line_png,ele5_png,ele6_png,ele7_png,ele8_png,ele9_png,eleDis1_png,eleDis10_png,eleDis11_png,eleDis12_png,eleDis13_png,eleDis14_png,eleDis15_png,eleDis16_png,eleDis17_png,eleDis18_png,eleDis19_png,eleDis2_png,eleDis3_png,eleDis4_png,eleDis5_png,eleDis6_png,eleDis7_png,eleDis8_png,eleDis9_png,exLighting1_png,exLighting11_png,exLighting14_png,exLighting16_png,exLighting18_png,exLighting19_png,exLighting21_png,exLighting23_png,exLighting25_png,exLighting27_png,exLighting29_png,exLighting3_png,exLighting32_png,exLighting34_png,exLighting5_png,exLighting7_png,exLighting9_png,greenCircleDown_png,greenCircleUp_png,guidePropBoom_png,guidePropCow_png,guidePropHammer_png,guidePropHand_png,guidePropMsgPanel_png,guidePropShoe_png,hammerBtn_png,ice2_png,ice3_png,ice4_png,ice5_png,ice6_png,jellyArrow_png,leftArrow_png,lightedStar_png,lineLight_png,lockDown_png,lockUp_png,lockVine_png,magicLion_png,magicLionBg_png,mainMusicBtnOff_png,mainMusicBtnOn_png,mainQuestionBtn_png,mainQuitBtn_png,mainSettingBg_png,mainSoundBtnOff_png,mainSoundBtnOn_png,main_mapbottom_png,playSceneBg_jpg,progressDown_png,propNum0_png,propNum1_png,propNum2_png,propNum3_png,propNum4_png,propNum5_png,propNum6_png,propNum7_png,propNum8_png,propNum9_png,propNumBg_png,rectLat_png,rightArrow_png,rightMark_png,rock2_png,rock3_png,rock4_png,rock5_png,rock6_png,scoreNumber0_png,scoreNumber1_png,scoreNumber2_png,scoreNumber3_png,scoreNumber4_png,scoreNumber5_png,scoreNumber6_png,scoreNumber7_png,scoreNumber8_png,scoreNumber9_png,setting_png,starProgress_png,stepAni1_png,stepAni10_png,stepAni11_png,stepAni2_png,stepAni3_png,stepAni4_png,stepAni5_png,stepAni6_png,stepAni7_png,stepAni8_png,stepAni9_png,stepBtn_png,stepNumber0_png,stepNumber1_png,stepNumber2_png,stepNumber3_png,stepNumber4_png,stepNumber5_png,stepNumber6_png,stepNumber7_png,stepNumber8_png,stepNumber9_png,stepsBoard_png,targetBoard_png,targetNumber0_png,targetNumber1_png,targetNumber2_png,targetNumber3_png,targetNumber4_png,targetNumber5_png,targetNumber6_png,targetNumber7_png,targetNumber8_png,targetNumber9_png,unlightedStar_png,yellowCircleDown_png,yellowCircleUp_png,yezi1_png"
,
"keys"
:
"bonusFra1_png,bonusFra10_png,bonusFra11_png,bonusFra12_png,bonusFra13_png,bonusFra14_png,bonusFra15_png,bonusFra16_png,bonusFra17_png,bonusFra18_png,bonusFra19_png,bonusFra2_png,bonusFra20_png,bonusFra21_png,bonusFra22_png,bonusFra23_png,bonusFra24_png,bonusFra25_png,bonusFra26_png,bonusFra27_png,bonusFra3_png,bonusFra4_png,bonusFra5_png,bonusFra6_png,bonusFra7_png,bonusFra8_png,bonusFra9_png,bonusShoot_png,bonusTime_png,boom1_png,boom10_png,boom11_png,boom12_png,boom13_png,boom14_png,boom15_png,boom16_png,boom17_png,boom18_png,boom2_png,boom3_png,boom4_png,boom5_png,boom6_png,boom7_png,boom8_png,boom9_png,boomBtn_png,chooseRect_png,dangqianfenshu_png,eggPiece1_png,eggPiece2_png,eggPiece3_png,eggPiece4_png,eggPiece5_png,eggStatus0_png,eggStatus1_png,eggStatus2_png,ele0_png,ele0Exp_png,ele0Line_png,ele1_png,ele1Exp_png,ele1Line_png,ele2_png,ele2Exp_png,ele2Line_png,ele3_png,ele3Exp_png,ele3Line_png,ele4_png,ele4Exp_png,ele4Line_png,ele5_png,ele6_png,ele7_png,ele8_png,ele9_png,eleDis1_png,eleDis10_png,eleDis11_png,eleDis12_png,eleDis13_png,eleDis14_png,eleDis15_png,eleDis16_png,eleDis17_png,eleDis18_png,eleDis19_png,eleDis2_png,eleDis3_png,eleDis4_png,eleDis5_png,eleDis6_png,eleDis7_png,eleDis8_png,eleDis9_png,exLighting1_png,exLighting11_png,exLighting14_png,exLighting16_png,exLighting18_png,exLighting19_png,exLighting21_png,exLighting23_png,exLighting25_png,exLighting27_png,exLighting29_png,exLighting3_png,exLighting32_png,exLighting34_png,exLighting5_png,exLighting7_png,exLighting9_png,greenCircleDown_png,greenCircleUp_png,guidePropBoom_png,guidePropCow_png,guidePropHammer_png,guidePropHand_png,guidePropMsgPanel_png,guidePropShoe_png,hammerBtn_png,ice2_png,ice3_png,ice4_png,ice5_png,ice6_png,jellyArrow_png,leftArrow_png,lightedStar_png,lineLight_png,lockDown_png,lockUp_png,lockVine_png,magicLion_png,magicLionBg_png,mainMusicBtnOff_png,mainMusicBtnOn_png,mainQuestionBtn_png,mainQuitBtn_png,mainSettingBg_png,mainSoundBtnOff_png,mainSoundBtnOn_png,main_mapbottom_png,playSceneBg_jpg,progressDown_png,propNum0_png,propNum1_png,propNum2_png,propNum3_png,propNum4_png,propNum5_png,propNum6_png,propNum7_png,propNum8_png,propNum9_png,propNumBg_png,rectLat_png,rightArrow_png,rightMark_png,rock2_png,rock3_png,rock4_png,rock5_png,rock6_png,scoreNumber0_png,scoreNumber1_png,scoreNumber2_png,scoreNumber3_png,scoreNumber4_png,scoreNumber5_png,scoreNumber6_png,scoreNumber7_png,scoreNumber8_png,scoreNumber9_png,setting_png,starProgress_png,stepAni1_png,stepAni10_png,stepAni11_png,stepAni2_png,stepAni3_png,stepAni4_png,stepAni5_png,stepAni6_png,stepAni7_png,stepAni8_png,stepAni9_png,stepBtn_png,stepNumber0_png,stepNumber1_png,stepNumber2_png,stepNumber3_png,stepNumber4_png,stepNumber5_png,stepNumber6_png,stepNumber7_png,stepNumber8_png,stepNumber9_png,stepsBoard_png,targetBoard_png,targetNumber0_png,targetNumber1_png,targetNumber2_png,targetNumber3_png,targetNumber4_png,targetNumber5_png,targetNumber6_png,targetNumber7_png,targetNumber8_png,targetNumber9_png,unlightedStar_png,yellowCircleDown_png,yellowCircleUp_png,yezi1_png"
,
"name"
:
"main2"
"name"
:
"main2"
},
{
"keys"
:
"inviterulebg_png"
,
"name"
:
"inviterule"
}
}
],
],
"resources"
:
[
"resources"
:
[
...
@@ -2195,6 +2195,26 @@
...
@@ -2195,6 +2195,26 @@
"url"
:
"assets/startpanel2/startpanel_ele0.png"
,
"url"
:
"assets/startpanel2/startpanel_ele0.png"
,
"type"
:
"image"
,
"type"
:
"image"
,
"name"
:
"startpanel_ele0_png"
"name"
:
"startpanel_ele0_png"
},
{
"url"
:
"assets/h5/h5btn.png"
,
"type"
:
"image"
,
"name"
:
"h5btn_png"
},
{
"url"
:
"assets/h5/h5_gobtn.png"
,
"type"
:
"image"
,
"name"
:
"h5_gobtn_png"
},
{
"url"
:
"assets/invitebg.jpg"
,
"type"
:
"image"
,
"name"
:
"invitebg_jpg"
},
{
"url"
:
"assets/inviterule/inviterulebg.png"
,
"type"
:
"image"
,
"name"
:
"inviterulebg_png"
}
}
]
]
}
}
\ No newline at end of file
egret/resource/default.thm.json
View file @
717ed2b5
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
"autoGenerateExmlsList"
:
true
,
"autoGenerateExmlsList"
:
true
,
"exmls"
:
[
"exmls"
:
[
"resource/skins/ADSkin.exml"
,
"resource/skins/ADSkin.exml"
,
"resource/skins/InviteRuleSkin.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"
,
...
...
egret/resource/skins/H5Skin.exml
View file @
717ed2b5
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"H5Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
>
<e:Skin
class=
"H5Skin"
width=
"750"
height=
"1206"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Label
text=
"这里是h5页面"
horizontalCenter=
"0"
verticalCenter=
"0"
textColor=
"0xa02c2c"
size=
"65"
/>
<e:Image
source=
"invitebg_jpg"
/>
<e:Image
id=
"gobtn"
source=
"h5_gobtn_png"
y=
"995"
horizontalCenter=
"0"
/>
<e:Image
id=
"rulebtn"
source=
"h5btn_png"
y=
"954"
horizontalCenter=
"0"
/>
</e:Skin>
</e:Skin>
\ No newline at end of file
egret/resource/skins/InviteRuleSkin.exml
0 → 100644
View file @
717ed2b5
<?xml version="1.0" encoding="utf-8"?>
<e:Skin
class=
"InviteRuleSkin"
width=
"750"
height=
"1624"
xmlns:e=
"http://ns.egret.com/eui"
xmlns:w=
"http://ns.egret.com/wing"
>
<e:Image
id=
"ruleBg"
horizontalCenter=
"0.5"
source=
"inviterulebg_png"
y=
"152"
/>
<e:Scroller
id=
"scroller"
width=
"545"
x=
"104.76"
height=
"507"
y=
"377.2"
>
<e:Group
id=
"group"
width=
"100%"
>
<e:Label
id=
"labContent"
width=
"100%"
text=
""
lineSpacing=
"10"
size=
"30"
multiline=
"true"
textColor=
"0xa54615"
/>
<e:layout>
<e:VerticalLayout/>
</e:layout>
</e:Group>
</e:Scroller>
<e:Button
id=
"closeBtn"
label=
""
x=
"614"
y=
"301"
>
<e:skinName>
<e:Skin
states=
"up,down,disabled"
>
<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:Skin>
\ No newline at end of file
egret/src/H5Scene.ts
View file @
717ed2b5
import
Scene
from
"../libs/new_wx/components/Scene"
;
import
Scene
from
"../libs/new_wx/components/Scene"
;
import
Utils
from
"./Utils"
;
import
PanelCtrl
from
"../libs/new_wx/ctrls/panelCtrl"
;
export
default
class
H5Scene
extends
Scene
{
export
default
class
H5Scene
extends
Scene
{
async
start
(
data
?)
{
async
start
(
data
?)
{
super
.
start
();
super
.
start
();
console
.
log
(
666
)
this
[
'rulebtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
PanelCtrl
.
instance
.
show
(
'inviterule'
)
},
this
);
this
[
'gobtn'
].
addEventListener
(
egret
.
TouchEvent
.
TOUCH_TAP
,()
=>
{
const
code
=
Utils
.
getRequestByKey
(
'shareCode'
);
window
.
location
.
href
=
`
${
window
[
'targetUrl'
]}
&shareCode=code`
},
this
);
}
}
...
...
egret/src/mapScene/MapScene.ts
View file @
717ed2b5
...
@@ -34,7 +34,7 @@ export default class MapScene extends Scene {
...
@@ -34,7 +34,7 @@ export default class MapScene extends Scene {
sendInvite
(){
sendInvite
(){
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
const
dojoin
=
DataManager
.
ins
.
getData
(
'hc_doJoin'
);
if
(
!
dojoin
)
return
;
if
(
!
dojoin
)
return
;
NetManager
.
ins
.
doHelp
(()
=>
{},,
dojoin
.
data
);
NetManager
.
ins
.
doHelp
(()
=>
{},
1
,
dojoin
.
data
);
}
}
// 邀请有礼角标倒计时
// 邀请有礼角标倒计时
...
...
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