Commit ded5ce56 authored by huangwenjie's avatar huangwenjie

二期

parent c2fffa08
...@@ -8,6 +8,6 @@ ...@@ -8,6 +8,6 @@
] ]
}, },
"global": { "global": {
"globalAutoLayerMarkEnable": false "globalAutoLayerMarkEnable": true
} }
} }
\ No newline at end of file
...@@ -4,7 +4,8 @@ ...@@ -4,7 +4,8 @@
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<title>Egret</title> <title>Egret</title>
<meta name="viewport" content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> <meta name="viewport"
content="width=device-width,initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="full-screen" content="true" /> <meta name="full-screen" content="true" />
<meta name="screen-orientation" content="portrait" /> <meta name="screen-orientation" content="portrait" />
...@@ -24,10 +25,11 @@ ...@@ -24,10 +25,11 @@
</head> </head>
<body> <body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" data-orientation="auto" <div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-scale-mode="showAll" data-frame-rate="60" data-content-width="750" data-content-height="1624" data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-multi-fingered="2" data-show-fps="false" data-show-log="false" data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9"> data-content-height="1624" data-multi-fingered="2" data-show-fps="false" data-show-log="false"
</div> data-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div>
<img id="shareImg" /> <img id="shareImg" />
<script src="libs/modules/egret/egret.js"></script> <script src="libs/modules/egret/egret.js"></script>
<script src="libs/modules/egret/egret.web.js"></script> <script src="libs/modules/egret/egret.web.js"></script>
...@@ -43,7 +45,7 @@ ...@@ -43,7 +45,7 @@
<script src="output.js"></script> <script src="output.js"></script>
<script> <script>
window['isdebug'] = true; window['isdebug'] = true;
var development = true; var development = true;
var isJudgeLogin = false; var isJudgeLogin = false;
var gameId = 1; var gameId = 1;
...@@ -126,6 +128,7 @@ ...@@ -126,6 +128,7 @@
"shareIOSDeeplink": "" "shareIOSDeeplink": ""
}; };
var recordUrl = 'record/'; var recordUrl = 'record/';
function resolve(a) { function resolve(a) {
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"alert","version":5,"files":["../assets/alert/Bitmap-4.png","../assets/alert/Bitmap-2.png","../assets/alert/Bitmap-1.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"alert","version":5,"files":["..\\assets\\alert\\Bitmap-4.png","..\\assets\\alert\\Bitmap-2.png","..\\assets\\alert\\Bitmap-1.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["../assets/common/closeBtn.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["..\\assets\\common\\closeBtn.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"game_scene","version":5,"files":["../assets/game_scene/goodAct.png","../assets/game_scene/gtitle0.png","../assets/game_scene/gtitle1.png","../assets/game_scene/gtitle2.png","../assets/game_scene/khAct0.png","../assets/game_scene/khAct1.png","../assets/game_scene/khAct2.png","../assets/game_scene/khAct3.png","../assets/game_scene/khAct4.png","../assets/game_scene/turnTableBg0.png","../assets/game_scene/turnTableBg1.png","../assets/game_scene/turnTableBg2.png","../assets/game_scene/bulletImg.png","../assets/game_scene/goodHand.png","../assets/game_scene/turnTableBg00.png","../assets/game_scene/turnTableBg01.png","../assets/game_scene/turnTableBg02.png","../assets/game_scene/turnTableBg10.png","../assets/game_scene/turnTableBg11.png","../assets/game_scene/turnTableBg12.png","../assets/game_scene/turnTableBg20.png","../assets/game_scene/turnTableBg21.png","../assets/game_scene/turnTableBg22.png","../assets/game_scene/khNumIcon.png","../assets/game_scene/topItemBg.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"game_scene","version":5,"files":["..\\assets\\game_scene\\goodAct.png","..\\assets\\game_scene\\gtitle0.png","..\\assets\\game_scene\\gtitle1.png","..\\assets\\game_scene\\gtitle2.png","..\\assets\\game_scene\\khAct0.png","..\\assets\\game_scene\\khAct1.png","..\\assets\\game_scene\\khAct2.png","..\\assets\\game_scene\\khAct3.png","..\\assets\\game_scene\\khAct4.png","..\\assets\\game_scene\\turnTableBg0.png","..\\assets\\game_scene\\turnTableBg1.png","..\\assets\\game_scene\\turnTableBg2.png","..\\assets\\game_scene\\bulletImg.png","..\\assets\\game_scene\\goodHand.png","..\\assets\\game_scene\\turnTableBg00.png","..\\assets\\game_scene\\turnTableBg01.png","..\\assets\\game_scene\\turnTableBg02.png","..\\assets\\game_scene\\turnTableBg10.png","..\\assets\\game_scene\\turnTableBg11.png","..\\assets\\game_scene\\turnTableBg12.png","..\\assets\\game_scene\\turnTableBg20.png","..\\assets\\game_scene\\turnTableBg21.png","..\\assets\\game_scene\\turnTableBg22.png","..\\assets\\game_scene\\khNumIcon.png","..\\assets\\game_scene\\topItemBg.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"guide_panel","version":5,"files":["../assets/guide_panel/turnTable.png","../assets/guide_panel/handAct.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"guide_panel","version":5,"files":["..\\assets\\guide_panel\\turnTable.png","..\\assets\\guide_panel\\handAct.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"loading","version":5,"files":["../assets/loading/bg.png","../assets/loading/progress.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"loading","version":5,"files":["..\\assets\\loading\\bg.png","..\\assets\\loading\\progress.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"msg_panel","version":5,"files":["../assets/msg_panel/msgBg.png","../assets/msg_panel/okBtn_msg.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"msg_panel","version":5,"files":["..\\assets\\msg_panel\\msgBg.png","..\\assets\\msg_panel\\okBtn_msg.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"prize_panel","version":5,"files":["../assets/prize_panel/prizeBg.png","../assets/prize_panel/getPrizeBtn.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"prize_panel","version":5,"files":["..\\assets\\prize_panel\\prizeBg.png","..\\assets\\prize_panel\\getPrizeBtn.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_panel","version":5,"files":["../assets/rule_panel/ruleBg.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_panel","version":5,"files":["..\\assets\\rule_panel\\ruleBg.png"]}
\ No newline at end of file \ No newline at end of file
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start_scene","version":5,"files":["../assets/start_scene/prizeBtn.png","../assets/start_scene/ruleBtn.png","../assets/start_scene/startBtn.png","../assets/start_scene/start_shareBtn.png","../assets/start_scene/shareIcon.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start_scene","version":5,"files":["..\\assets\\start_scene\\prizeBtn.png","..\\assets\\start_scene\\ruleBtn.png","..\\assets\\start_scene\\startBtn.png","..\\assets\\start_scene\\start_shareBtn.png","..\\assets\\start_scene\\shareIcon.png"]}
\ No newline at end of file \ No newline at end of file
...@@ -18,6 +18,6 @@ ...@@ -18,6 +18,6 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Label text="厉害了!\n闯关成功666~" y="354.52" textColor="0x424fff" textAlign="center" size="39" lineSpacing="22" horizontalCenter="0"/> <e:Label text="厉害了!\n闯关成功666~" y="354.52" textAlign="center" size="39" lineSpacing="22" horizontalCenter="0" textColor="0xf65d20" visible="false"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<e:Image id="mainbg" source="gameBg_jpg" verticalCenter="0" locked="true"/> <e:Image id="mainbg" source="gameBg_jpg" verticalCenter="0" locked="true"/>
<e:Group width="750" height="1206" verticalCenter="0"> <e:Group width="750" height="1206" verticalCenter="0">
<e:Image x="50" y="1042.22" source="khNumIcon_png" scaleX="1" scaleY="1"/> <e:Image x="50" y="1042.22" source="khNumIcon_png" scaleX="1" scaleY="1"/>
<e:Label id="bulletCountLb" text="X10" x="49.57" y="1091.01" size="30" scaleX="1" scaleY="1" textColor="0x1d41b8" width="96" textAlign="center"/> <e:Label id="bulletCountLb" text="X10" x="49.57" y="1091.01" size="30" scaleX="1" scaleY="1" width="96" textAlign="center" textColor="0xf65d20"/>
<e:Group id="passActGroup" width="403" height="401" x="173.5" y="240.50000000000003" scaleX="1" scaleY="1" locked="true"> <e:Group id="passActGroup" width="403" height="401" x="173.5" y="240.50000000000003" scaleX="1" scaleY="1" locked="true">
<e:Image id="turnTableBg02" y="201" source="turnTableBg02_png" x="201" anchorOffsetX="149" anchorOffsetY="0" locked="true"/> <e:Image id="turnTableBg02" y="201" source="turnTableBg02_png" x="201" anchorOffsetX="149" anchorOffsetY="0" locked="true"/>
<e:Image id="turnTableBg00" source="turnTableBg00_png" x="202" y="202" anchorOffsetX="202" anchorOffsetY="202" locked="true"/> <e:Image id="turnTableBg00" source="turnTableBg00_png" x="202" y="202" anchorOffsetX="202" anchorOffsetY="202" locked="true"/>
...@@ -58,8 +58,8 @@ ...@@ -58,8 +58,8 @@
<e:Group id="clickGroup" width="750" height="1624" x="0" y="0" scaleX="1" scaleY="1" locked="true"/> <e:Group id="clickGroup" width="750" height="1624" x="0" y="0" scaleX="1" scaleY="1" locked="true"/>
<e:Group id="topBg" width="750" height="275" x="0" y="0" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1"> <e:Group id="topBg" width="750" height="275" x="0" y="0" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1">
<e:Image y="19.52" scaleX="1" scaleY="1" source="topItemBg_png" locked="true"/> <e:Image y="19.52" scaleX="1" scaleY="1" source="topItemBg_png" locked="true"/>
<e:Label id="levelLb" text="第2关" y="35.52" size="27" anchorOffsetX="0" width="102" textAlign="center"/> <e:Label id="levelLb" text="第2关" y="38" size="27" anchorOffsetX="0" width="102" textAlign="center"/>
<e:Label id="countDownLb" text="128S" x="272" y="37" anchorOffsetX="0" width="294" textAlign="center" size="37"/> <e:Label id="countDownLb" text="128S" x="272" y="40" anchorOffsetX="0" width="294" textAlign="center" size="37"/>
</e:Group> </e:Group>
<e:Group id="goNextLevel" width="750" height="1624" x="0" scaleX="1" scaleY="1" y="-209" locked="true" visible="false"> <e:Group id="goNextLevel" width="750" height="1624" x="0" scaleX="1" scaleY="1" y="-209" locked="true" visible="false">
<e:Rect width="750" height="1624" fillAlpha="0.8" strokeAlpha="0.8"/> <e:Rect width="750" height="1624" fillAlpha="0.8" strokeAlpha="0.8"/>
......
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<e:Image scaleX="1" scaleY="1" source="guideBg_jpg"/> <e:Image scaleX="1" scaleY="1" source="guideBg_jpg"/>
<e:Image source="turnTable_png" x="104" y="551"/> <e:Image source="turnTable_png" x="104" y="551"/>
</e:Group> </e:Group>
<e:Label id="gTitle" text="点击屏幕将针筒插到病毒上\n射击时不可碰到针筒" y="1112" size="35" scaleX="1" scaleY="1" textAlign="center" lineSpacing="10" x="165"/> <e:Label id="gTitle" text="点击屏幕将口红插到鲜花盘上\n射击时不可碰到口红" y="1112" size="35" scaleX="1" scaleY="1" textAlign="center" lineSpacing="10" x="165"/>
<e:Image id="handImg" source="handAct_png" x="475" y="898" anchorOffsetX="15" anchorOffsetY="15" scaleX="1" scaleY="1"/> <e:Image id="handImg" source="handAct_png" x="475" y="898" anchorOffsetX="15" anchorOffsetY="15" scaleX="1" scaleY="1"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -6,8 +6,8 @@ ...@@ -6,8 +6,8 @@
<e:Group id="panelGroup" y="107.61" anchorOffsetY="0" x="113" height="643" width="520"> <e:Group id="panelGroup" y="107.61" anchorOffsetY="0" x="113" height="643" width="520">
<e:Image id="bg" scaleX="1" scaleY="1" source="msgBg_png" locked="true"/> <e:Image id="bg" scaleX="1" scaleY="1" source="msgBg_png" locked="true"/>
<e:Label id="msgTxt01" anchorOffsetX="0" width="455.09" anchorOffsetY="0" size="39" textAlign="center" text="闯关失败啦~" fontFamily="Arial" verticalAlign="middle" y="314.63" scaleX="1" scaleY="1" lineSpacing="30" textColor="0x424fff" horizontalCenter="0"/> <e:Label id="msgTxt01" anchorOffsetX="0" width="455.09" anchorOffsetY="0" size="39" textAlign="center" text="闯关失败啦~" fontFamily="Arial" verticalAlign="middle" y="314.63" scaleX="1" scaleY="1" lineSpacing="30" horizontalCenter="0" textColor="0xf65d20"/>
<e:Label id="msgTxt02" anchorOffsetX="0" width="469.21" anchorOffsetY="0" size="28" textAlign="center" text="换个姿势再来一次吧~" fontFamily="Arial" verticalAlign="middle" y="382.24" scaleX="1" scaleY="1" lineSpacing="30" textColor="0x424FFF" horizontalCenter="0"/> <e:Label id="msgTxt02" anchorOffsetX="0" width="469.21" anchorOffsetY="0" size="28" textAlign="center" text="换个姿势再来一次吧~" fontFamily="Arial" verticalAlign="middle" y="382.24" scaleX="1" scaleY="1" lineSpacing="30" horizontalCenter="0" textColor="0xf65d20"/>
<e:Button id="okBtn" label="" y="478.83" x="64"> <e:Button id="okBtn" label="" y="478.83" x="64">
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<e:Button id="againBtn" label="" y="303" horizontalCenter="0" locked="true" visible="false"> <e:Button id="againBtn" label="" y="303" horizontalCenter="0" locked="true" visible="false">
</e:Button> </e:Button>
<e:Button id="closeBtn" label="" y="146.93" scaleX="1" scaleY="1" x="482.34"> <e:Button id="closeBtn" label="" y="94.93" scaleX="1" scaleY="1" x="482.34">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image source="closeBtn_png" source.down="closeBtn_png" source.disabled="closeBtn_png" scaleX.down="0.9" scaleY.down="0.9" x.down="2.5" y.down="2.5"/> <e:Image source="closeBtn_png" source.down="closeBtn_png" source.disabled="closeBtn_png" scaleX.down="0.9" scaleY.down="0.9" x.down="2.5" y.down="2.5"/>
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="iknowBtn" label="" y="785.95" scaleX="1" scaleY="1" x="156"> <e:Button id="iknowBtn" label="" y="785.95" scaleX="1" scaleY="1" horizontalCenter="0">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image source="getPrizeBtn_png" source.down="getPrizeBtn_png" source.disabled="getPrizeBtn_png" scaleX.down="0.9" scaleY.down="0.9" x.down="21.95" y.down="6.3"/> <e:Image source="getPrizeBtn_png" source.down="getPrizeBtn_png" source.disabled="getPrizeBtn_png" scaleX.down="0.9" scaleY.down="0.9" x.down="21.95" y.down="6.3"/>
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Image id="prizeImg" y="518" anchorOffsetY="0" anchorOffsetX="0" width="522" height="245" source="" horizontalCenter="1"/> <e:Image id="prizeImg" y="518" anchorOffsetY="0" anchorOffsetX="0" width="522" height="245" source="" horizontalCenter="1"/>
<e:Label id="prizeNameLb" text="8字奖品文案" y="461.61" textAlign="center" size="27" horizontalCenter="0" lineSpacing="10" width="478" textColor="0x424fff"/> <e:Label id="prizeNameLb" text="8字奖品文案" y="461.61" textAlign="center" size="27" horizontalCenter="0" lineSpacing="10" width="478" textColor="0xf65d20"/>
<e:Label text="恭喜获得" y="404.24" textColor="0x424fff" size="39" x="297"/> <e:Label text="恭喜获得" y="404.24" size="39" x="297" textColor="0xf65d20"/>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<e:Skin class="RulePanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="RulePanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="panelGroup" x="115" verticalCenter="-44.5" width="520" height="827"> <e:Group id="panelGroup" x="115" verticalCenter="-44.5" width="520" height="827">
<e:Image source="ruleBg_png" scaleX="1" scaleY="1" x="0" locked="true"/> <e:Image source="ruleBg_png" scaleX="1" scaleY="1" x="0" locked="true"/>
<e:Button id="closeBtn" label="" y="139" scaleX="1" scaleY="1" horizontalCenter="236"> <e:Button id="closeBtn" label="" y="93" scaleX="1" scaleY="1" horizontalCenter="236">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image source="closeBtn_png" source.down="closeBtn_png" source.disabled="closeBtn_png" x.down="2.4" y.down="2.4" scaleX.down="0.9" scaleY.down="0.9"/> <e:Image source="closeBtn_png" source.down="closeBtn_png" source.disabled="closeBtn_png" x.down="2.4" y.down="2.4" scaleX.down="0.9" scaleY.down="0.9"/>
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Scroller width="463" height="434" y="320.08" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0"> <e:Scroller width="463" height="471" y="280" anchorOffsetX="0" anchorOffsetY="0" horizontalCenter="0.5">
<e:Group id="ruleGroup" x="3.03"> <e:Group id="ruleGroup" x="3.03">
<e:Label id="ruleLb" text="" width="453" size="30" y="8" x="5" textColor="0x424fff"/> <e:Label id="ruleLb" text="" width="453" size="30" y="8" x="5" textColor="0xf65d20"/>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
</e:Group> </e:Group>
......
...@@ -2,10 +2,10 @@ ...@@ -2,10 +2,10 @@
<e:Skin class="StartSceneSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="StartSceneSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group width="750" height="1624" verticalCenter="0"> <e:Group width="750" height="1624" verticalCenter="0">
<e:Image id="mainbg" source="startBg_jpg" y="0" x="0" scaleX="1" scaleY="1"/> <e:Image id="mainbg" source="startBg_jpg" y="0" x="0" scaleX="1" scaleY="1"/>
<e:Label id="timesLb" text="今日免费次数:3" width="750" textAlign="center" size="29" scaleX="1" scaleY="1" x="0" textColor="0x1930b8" y="496" locked="true"/> <e:Label id="timesLb" text="今日免费次数:3" width="750" textAlign="center" size="29" scaleX="1" scaleY="1" x="0" y="520" textColor="0xf65d20"/>
</e:Group> </e:Group>
<e:Group width="750" top="0" bottom="0"> <e:Group width="750" top="0" bottom="0">
<e:Label id="timesLb0" text="分享好友可每日增加1次机会" width="750" textAlign="center" size="29" scaleX="1" scaleY="1" textColor="0x1930B8" bottom="47"/> <e:Label id="timesLb0" text="分享好友可每日增加1次机会" width="750" textAlign="center" size="29" scaleX="1" scaleY="1" bottom="47" textColor="0xf65d20"/>
<e:Group scaleX="1" scaleY="1" x="177" bottom="218"> <e:Group scaleX="1" scaleY="1" x="177" bottom="218">
<e:Button id="startBtn" label="" scaleX="1" scaleY="1" x="199" anchorOffsetX="199" anchorOffsetY="54" y="54"> <e:Button id="startBtn" label="" scaleX="1" scaleY="1" x="199" anchorOffsetX="199" anchorOffsetY="54" y="54">
<e:skinName> <e:skinName>
......
...@@ -11,13 +11,13 @@ import { NetName } from '../../libs/tw/enum/NetName'; ...@@ -11,13 +11,13 @@ import { NetName } from '../../libs/tw/enum/NetName';
import TopLayerCtrl from '../ctrls/topLayerCtrl'; import TopLayerCtrl from '../ctrls/topLayerCtrl';
export default class PrizePanel extends Panel { export default class PrizePanel extends Panel {
private mdata: any; private mdata: any;
public tipsLb:eui.Label; public tipsLb: eui.Label;
public prizeImg: eui.Image; public prizeImg: eui.Image;
public iknowBtn: eui.Button; public iknowBtn: eui.Button;
public prizeNameLb: eui.Label; public prizeNameLb: eui.Label;
private isplug:boolean; private isplug: boolean;
private lottery:any; private lottery: any;
public get skinKey() { return 'PrizePanel' } public get skinKey() { return 'PrizePanel' }
public get groupName() { return 'prize_panel' } public get groupName() { return 'prize_panel' }
...@@ -33,8 +33,8 @@ export default class PrizePanel extends Panel { ...@@ -33,8 +33,8 @@ export default class PrizePanel extends Panel {
this.onLoad(); this.onLoad();
} }
this.showAct(function(){ this.showAct(function () {
}.bind(this)); }.bind(this));
} }
...@@ -46,15 +46,15 @@ export default class PrizePanel extends Panel { ...@@ -46,15 +46,15 @@ export default class PrizePanel extends Panel {
super.initEvents(); super.initEvents();
this.iknowBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this); this.iknowBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this);
this.prizeImg.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this); this.prizeImg.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this);
} }
removeEvents(): void { removeEvents(): void {
super.removeEvents(); super.removeEvents();
if(this.iknowBtn){ if (this.iknowBtn) {
this.iknowBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this); this.iknowBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this);
} }
if(this.prizeImg){ if (this.prizeImg) {
this.prizeImg.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this); this.prizeImg.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTap_ok, this);
} }
} }
...@@ -64,23 +64,23 @@ export default class PrizePanel extends Panel { ...@@ -64,23 +64,23 @@ export default class PrizePanel extends Panel {
let startDpmOut = Buried.connectDpm(110, 4, 1); // 点击埋点 let startDpmOut = Buried.connectDpm(110, 4, 1); // 点击埋点
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点 let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
let exposure = Buried.createExposure(startDpmOut, startDcmOut); let exposure = Buried.createExposure(startDpmOut, startDcmOut);
NetManager.ins.showLog(exposure); NetManager.ins.showLog(exposure);
this.prizeNameLb.text = ''; this.prizeNameLb.text = '';
this.lottery = DataManager.ins.getData(NetName.GET_PRIZE_DETAIL).data; this.lottery = DataManager.ins.getData(NetName.GET_PRIZE_DETAIL).data;
if(this.lottery && this.lottery.length > 0){ if (this.lottery && this.lottery.length > 0) {
this.lottery = this.lottery[0]; this.lottery = this.lottery[0];
}else{ } else {
this.lottery = null; this.lottery = null;
} }
if(this.lottery){ if (this.lottery) {
this.prizeNameLb.text = this.lottery.name;//511 239 this.prizeNameLb.text = this.lottery.name;//511 239
this.prizeImg.source = this.lottery.icon; this.prizeImg.source = this.lottery.icon;
switch(this.lottery.refType){ switch (this.lottery.refType) {
case LotteryType.VIRTUAL: case LotteryType.VIRTUAL:
case LotteryType.OBJECT: case LotteryType.OBJECT:
case LotteryType.ALIPAY: case LotteryType.ALIPAY:
...@@ -91,11 +91,11 @@ export default class PrizePanel extends Panel { ...@@ -91,11 +91,11 @@ export default class PrizePanel extends Panel {
this.prizeImg.width = 245; this.prizeImg.width = 245;
this.prizeImg.height = 245; this.prizeImg.height = 245;
break; break;
case LotteryType.THANKS: case LotteryType.THANKS:
break; break;
default: default:
...@@ -104,7 +104,7 @@ export default class PrizePanel extends Panel { ...@@ -104,7 +104,7 @@ export default class PrizePanel extends Panel {
this.prizeImg.width = 522; this.prizeImg.width = 522;
this.prizeImg.height = 245; this.prizeImg.height = 245;
break; break;
} }
} }
} }
...@@ -122,10 +122,10 @@ export default class PrizePanel extends Panel { ...@@ -122,10 +122,10 @@ export default class PrizePanel extends Panel {
} }
NetManager.ins.getHomeInfo((success1) => { NetManager.ins.getHomeInfo((success1) => {
if(success1) { if (success1) {
} else { } else {
TopLayerCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg: '网络异常,请稍后再试~'}); TopLayerCtrl.instance.show(ModuleTypes.TOAST_PANEL, { msg: '网络异常,请稍后再试~' });
} }
SceneCtrl.instance.change(ModuleTypes.START_SCENE); SceneCtrl.instance.change(ModuleTypes.START_SCENE);
...@@ -134,16 +134,16 @@ export default class PrizePanel extends Panel { ...@@ -134,16 +134,16 @@ export default class PrizePanel extends Panel {
} }
private onTap_ok(e:egret.TouchEvent):void{ private onTap_ok(e: egret.TouchEvent): void {
let startDpmOut = Buried.connectDpm(110, 4, 1); // 点击埋点 let startDpmOut = Buried.connectDpm(110, 4, 1); // 点击埋点
let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点 let startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
let exposure = Buried.createExposure(startDpmOut, startDcmOut); let exposure = Buried.createExposure(startDpmOut, startDcmOut);
NetManager.ins.clickLog(exposure); NetManager.ins.clickLog(exposure);
this.onUse(); this.onUse();
this.hidePanel(); // this.hidePanel();
// this.onTouchTap(); // this.onTouchTap();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment