Commit 1bb1db20 authored by lujinlei's avatar lujinlei

a

parent 97294d9a
...@@ -14,4 +14,5 @@ if (cmd === 'build' && process.argv[3] === 'prod') { ...@@ -14,4 +14,5 @@ if (cmd === 'build' && process.argv[3] === 'prod') {
if (process.argv[4] === 'exml') if (process.argv[4] === 'exml')
cmd = 'buildProdEXML'; cmd = 'buildProdEXML';
} }
build[cmd]('egret'); build[cmd]('egret');
\ No newline at end of file //build["notinypng"]('egret');
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
] ]
}, },
"global": { "global": {
"globalAutoLayerMarkEnable": false "globalAutoLayerMarkEnable": true
}, },
"16b26c36b0c": { "16b26c36b0c": {
"guideLines": [ "guideLines": [
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<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="auto" />
<meta name="x5-fullscreen" content="true" /> <meta name="x5-fullscreen" content="true" />
<meta name="360-fullscreen" content="true" /> <meta name="360-fullscreen" content="true" />
<style> <style>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<body> <body>
<div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main" <div style="margin: auto;width: 100%;height: 100%;" class="egret-player" data-entry-class="Main"
data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750" data-orientation="auto" data-scale-mode="showAll" data-frame-rate="60" data-content-width="750"
data-content-height="1624" data-multi-fingered="2" data-show-fps="true" data-show-log="false" data-content-height="1624" 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-show-fps-style="x:0,y:0,size:12,textColor:0xffffff,bgAlpha:0.9">
</div> </div>
<img id="shareImg" /> <img id="shareImg" />
...@@ -59,6 +59,14 @@ ...@@ -59,6 +59,14 @@
var interval = 1; //红包掉落的时间间隔 每个interval秒生成一波 var interval = 1; //红包掉落的时间间隔 每个interval秒生成一波
var colCount = 3;//一排的个数 var colCount = 3;//一排的个数
var rowCount = 10;//排数 var rowCount = 10;//排数
var shareData = ['领限时红包,买Jack&Jones折后再减更划算',
'领限时红包,买Adidas折后再减更划算',
'领限时红包,买Nike折后再减更划算',
'领限时红包,买Supreme折后再减更划算',
'领限时红包,买Only折后再减更划算',
'领限时红包,买VeroModa折后再减更划算'];
window['shareTitle'] = window['shareData'][random] ? window['shareData'][random] : '领限时红包,买VeroModa折后再减更划算';
var rule = "我是规则我是规则我是规则我是规则我是规则我是规则我是规则我是规则我是规则"; var rule = "我是规则我是规则我是规则我是规则我是规则我是规则我是规则我是规则我是规则";
var CFG = { var CFG = {
"actId": "3335069", "actId": "3335069",
...@@ -134,11 +142,10 @@ ...@@ -134,11 +142,10 @@
window['wx'].ready(function() { window['wx'].ready(function() {
invokeWX(); invokeWX();
}); });
//
function invokeWX() { function invokeWX() {
window['wx'].onMenuShareTimeline({ window['wx'].onMenuShareTimeline({
title:"百万红包雨,限时疯抢中", title:window['shareTitle'],
link: 'http://api.gongchangtemai.com/api/v1/duiba/login?redirect_url=activity.m.duiba.com.cn/projectx/pa9f8a92f/index.html&share', link:'http://api.gongchangtemai.com/api/v1/duiba/login?redirect_url=https%3A%2F%2Factivity.m.duiba.com.cn%2Fprojectx%2Fpa9f8a92f%2Findex.html%3FshareCode%3D123',
imgUrl: 'https://yun.duiba.com.cn/db_games/activity/ypc_hongbaoyu/shareImg/shareImg.jpg', imgUrl: 'https://yun.duiba.com.cn/db_games/activity/ypc_hongbaoyu/shareImg/shareImg.jpg',
success: function() { success: function() {
setTimeout(function(){ setTimeout(function(){
...@@ -148,9 +155,9 @@ ...@@ -148,9 +155,9 @@
cancel: function() {} cancel: function() {}
}); });
window['wx'].onMenuShareAppMessage({ window['wx'].onMenuShareAppMessage({
title:"百万红包雨,限时疯抢中", title:window['shareTitle'],
desc:"壹品仓福利大派送,等你来捞!", desc:' 一线大牌清仓底价,叠加红包优惠更多,快快来参与吧!',
link:'http://api.gongchangtemai.com/api/v1/duiba/login?redirect_url=activity.m.duiba.com.cn/projectx/pa9f8a92f/index.html&share', link:'http://api.gongchangtemai.com/api/v1/duiba/login?redirect_url=https%3A%2F%2Factivity.m.duiba.com.cn%2Fprojectx%2Fpa9f8a92f%2Findex.html%3FshareCode%3D123',
imgUrl: 'https://yun.duiba.com.cn/db_games/activity/ypc_hongbaoyu/shareImg/shareImg.jpg', imgUrl: 'https://yun.duiba.com.cn/db_games/activity/ypc_hongbaoyu/shareImg/shareImg.jpg',
success: function(res) { success: function(res) {
setTimeout(function(){ setTimeout(function(){
...@@ -161,7 +168,7 @@ ...@@ -161,7 +168,7 @@
fail: function(res) {} fail: function(res) {}
}); });
} }
</script> </script>
<script> <script>
/*这段代码是固定的,必须要放到js中*/ /*这段代码是固定的,必须要放到js中*/
function setupWebViewJavascriptBridge(callback) { function setupWebViewJavascriptBridge(callback) {
...@@ -191,22 +198,20 @@ ...@@ -191,22 +198,20 @@
} }
} }
/* Initialize your app here */ /* Initialize your app here */
console.log(bridge);
bridge.init(function(message, responseCallback) { bridge.init(function(message, responseCallback) {
console.log('JS got a message', message); console.log('测试成功回调的message', message);
var data = { var data = {
'Javascript Responds': '测试中文!' 'Javascript Responds': '测试中文!'
}; };
if (responseCallback) { if (responseCallback) {
console.log('JS responding with', data); console.log('测试成功回调的data', data);
responseCallback(data); responseCallback(data);
} }
}); });
}) })
</script> </script>
<!-- <button onclick="goApp()">跳转进入活动页面</button> -->
<script> <script>
// window['resPath'] = 'https://yun.duiba.com.cn/db_games/activity/fishaqy/1535713239/' // window['resPath'] = 'https://yun.duiba.com.cn/db_games/activity/fishaqy/1535713239/'
/** /**
......
{"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["..\\assets\\common\\closeBtn_rule.png","..\\assets\\common\\commonBg.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"common","version":5,"files":["..\\assets\\common\\closeBtn_rule.png","..\\assets\\common\\commonBg.png","..\\assets\\common\\jiantou.png","..\\assets\\common\\clintBg.png","..\\assets\\common\\sharehint.png","..\\assets\\common\\shareFriend.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":"preload","version":5,"files":["..\\assets\\rule_panel\\rulePopup.png","..\\assets\\common\\commonBg.png","..\\assets\\common\\closeBtn_rule.png","..\\assets\\msg_panel\\closeBtn_msg.png","..\\assets\\rule_panel\\rule.png","..\\assets\\msg_panel\\msgPopup.png","..\\assets\\msg_panel\\knowBtn.png","..\\assets\\msg_panel\\shareAgain.png","..\\assets\\msg_panel\\prizeShareBtn.png","..\\assets\\prize_panel\\getBtn.png","..\\assets\\prize_panel\\shareBtn.png","..\\assets\\prize_panel\\prize.png","..\\assets\\prize_panel\\unShareGetBtn.png","..\\assets\\start_scene\\myPrizeBtn.png","..\\assets\\start_scene\\shiyitu.png","..\\assets\\start_scene\\startSceneBg.png","..\\assets\\start_scene\\backBtn.png","..\\assets\\start_scene\\goShareBtn.png","..\\assets\\start_scene\\LOGO.png","..\\assets\\start_scene\\moneyBagBg.png","..\\assets\\start_scene\\open.png","..\\assets\\start_scene\\startBtn.png","..\\assets\\start_scene\\startShareBtn.png","..\\assets\\start_scene\\unCilckBtn.png","..\\assets\\start_scene\\unOpen.png","..\\assets\\start_scene\\hint.png","..\\assets\\game_scene\\gameSceneBg.png","..\\assets\\game_scene\\game.png","..\\assets\\game_scene\\timeBg.png","..\\assets\\game_scene\\gameGroupBg.png","..\\assets\\game_scene\\bar2.png","..\\assets\\game_scene\\bar1.png","..\\assets\\game_scene\\bagIcon.png","..\\assets\\share_panel\\share.png","..\\assets\\share_panel\\weChat.png","..\\assets\\share_panel\\friendsCircle.png","..\\assets\\share_panel\\sharePanelBg.png","..\\assets\\share_panel\\shareHint.png","..\\assets\\share_panel\\shareJoin.png","..\\assets\\start_scene\\shipei.png","..\\assets\\start_scene\\joinBtn.png","..\\assets\\common\\clint.png","..\\assets\\prize_panel\\prizePopup.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"preload","version":5,"files":["..\\assets\\rule_panel\\rulePopup.png","..\\assets\\common\\commonBg.png","..\\assets\\common\\closeBtn_rule.png","..\\assets\\msg_panel\\closeBtn_msg.png","..\\assets\\msg_panel\\msgPopup.png","..\\assets\\msg_panel\\knowBtn.png","..\\assets\\msg_panel\\shareAgain.png","..\\assets\\msg_panel\\prizeShareBtn.png","..\\assets\\prize_panel\\getBtn.png","..\\assets\\prize_panel\\shareBtn.png","..\\assets\\prize_panel\\unShareGetBtn.png","..\\assets\\start_scene\\myPrizeBtn.png","..\\assets\\start_scene\\backBtn.png","..\\assets\\start_scene\\goShareBtn.png","..\\assets\\start_scene\\LOGO.png","..\\assets\\start_scene\\moneyBagBg.png","..\\assets\\start_scene\\open.png","..\\assets\\start_scene\\startBtn.png","..\\assets\\start_scene\\startShareBtn.png","..\\assets\\start_scene\\unCilckBtn.png","..\\assets\\start_scene\\unOpen.png","..\\assets\\game_scene\\gameSceneBg.png","..\\assets\\game_scene\\game.png","..\\assets\\game_scene\\timeBg.png","..\\assets\\game_scene\\gameGroupBg.png","..\\assets\\game_scene\\bar2.png","..\\assets\\game_scene\\bar1.png","..\\assets\\game_scene\\bagIcon.png","..\\assets\\share_panel\\share.png","..\\assets\\share_panel\\weChat.png","..\\assets\\share_panel\\friendsCircle.png","..\\assets\\share_panel\\sharePanelBg.png","..\\assets\\share_panel\\shareHint.png","..\\assets\\start_scene\\joinBtn.png","..\\assets\\prize_panel\\prizePopup.png","..\\assets\\prize_panel\\iconBg.png","..\\assets\\common\\clintBg.png","..\\assets\\common\\jiantou.png","..\\assets\\common\\sharehint.png","..\\assets\\common\\shareFriend.png","..\\assets\\start_scene\\startSceneBg.png","..\\assets\\share_panel\\shareJoin.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\\closeBtn.png","..\\assets\\prize_panel\\getBtn.png","..\\assets\\prize_panel\\prize.png","..\\assets\\prize_panel\\shareBtn.png","..\\assets\\prize_panel\\unShareGetBtn.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"prize_panel","version":5,"files":["..\\assets\\prize_panel\\closeBtn.png","..\\assets\\prize_panel\\getBtn.png","..\\assets\\prize_panel\\shareBtn.png","..\\assets\\prize_panel\\unShareGetBtn.png","..\\assets\\prize_panel\\iconBg.png","..\\assets\\prize_panel\\prizePopup.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\\rule.png","..\\assets\\rule_panel\\rulePopup.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"rule_panel","version":5,"files":["..\\assets\\rule_panel\\rulePopup.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":"share_panel","version":5,"files":["..\\assets\\share_panel\\weChat.png","..\\assets\\share_panel\\sharePanelBg.png","..\\assets\\share_panel\\shareHint.png","..\\assets\\share_panel\\share.png","..\\assets\\share_panel\\friendsCircle.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"share_panel","version":5,"files":["..\\assets\\share_panel\\weChat.png","..\\assets\\share_panel\\sharePanelBg.png","..\\assets\\share_panel\\shareHint.png","..\\assets\\share_panel\\share.png","..\\assets\\share_panel\\friendsCircle.png","..\\assets\\share_panel\\shareJoin.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\\ruleBtn.png","..\\assets\\start_scene\\unOpen.png","..\\assets\\start_scene\\startShareBtn.png","..\\assets\\start_scene\\startBtn.png","..\\assets\\start_scene\\open.png","..\\assets\\start_scene\\moneyBagBg.png","..\\assets\\start_scene\\hint.png","..\\assets\\start_scene\\backBtn.png","..\\assets\\start_scene\\goShareBtn.png","..\\assets\\start_scene\\LOGO.png","..\\assets\\start_scene\\myPrizeBtn.png","..\\assets\\start_scene\\shiyitu.png","..\\assets\\start_scene\\startSceneBg.png","..\\assets\\start_scene\\unCilckBtn.png"]} {"options":{"layoutMath":"2","sizeMode":"2n","useExtension":1,"layoutGap":1,"extend":0},"projectName":"start_scene","version":5,"files":["..\\assets\\start_scene\\ruleBtn.png","..\\assets\\start_scene\\unOpen.png","..\\assets\\start_scene\\startShareBtn.png","..\\assets\\start_scene\\startBtn.png","..\\assets\\start_scene\\open.png","..\\assets\\start_scene\\moneyBagBg.png","..\\assets\\start_scene\\backBtn.png","..\\assets\\start_scene\\goShareBtn.png","..\\assets\\start_scene\\LOGO.png","..\\assets\\start_scene\\myPrizeBtn.png","..\\assets\\start_scene\\unCilckBtn.png","..\\assets\\start_scene\\joinBtn.png","..\\assets\\start_scene\\backYPC.png","..\\assets\\start_scene\\startSceneBg.png"]}
\ No newline at end of file \ No newline at end of file
...@@ -9,15 +9,15 @@ ...@@ -9,15 +9,15 @@
"name": "alert" "name": "alert"
}, },
{ {
"keys": "rulePopup_png,commonBg_png,closeBtn_rule_png,closeBtn_msg_png,rule_png,msgPopup_png,knowBtn_png,shareAgain_png,prizeShareBtn_png,getBtn_png,shareBtn_png,prize_png,unShareGetBtn_png,myPrizeBtn_png,shiyitu_png,startSceneBg_png,backBtn_png,goShareBtn_png,LOGO_png,moneyBagBg_png,open_png,startBtn_png,startShareBtn_png,unCilckBtn_png,unOpen_png,hint_png,gameSceneBg_png,game_png,timeBg_png,gameGroupBg_png,bar2_png,bar1_png,bagIcon_png,share_png,weChat_png,friendsCircle_png,sharePanelBg_png,shareHint_png,shareJoin_png,shipei_png,joinBtn_png,clint_png,prizePopup_png", "keys": "rulePopup_png,commonBg_png,closeBtn_rule_png,closeBtn_msg_png,msgPopup_png,knowBtn_png,shareAgain_png,prizeShareBtn_png,getBtn_png,shareBtn_png,unShareGetBtn_png,myPrizeBtn_png,backBtn_png,goShareBtn_png,LOGO_png,moneyBagBg_png,open_png,startBtn_png,startShareBtn_png,unCilckBtn_png,unOpen_png,gameSceneBg_png,game_png,timeBg_png,gameGroupBg_png,bar2_png,bar1_png,bagIcon_png,share_png,weChat_png,friendsCircle_png,sharePanelBg_png,shareHint_png,joinBtn_png,prizePopup_png,iconBg_png,clintBg_png,jiantou_png,sharehint_png,shareFriend_png,startSceneBg_png,shareJoin_png",
"name": "preload" "name": "preload"
}, },
{ {
"keys": "closeBtn_png,getBtn_png,prize_png,shareBtn_png,unShareGetBtn_png", "keys": "closeBtn_png,getBtn_png,shareBtn_png,unShareGetBtn_png,iconBg_png,prizePopup_png",
"name": "prize_panel" "name": "prize_panel"
}, },
{ {
"keys": "ruleBtn_png,unOpen_png,startShareBtn_png,startBtn_png,open_png,moneyBagBg_png,hint_png,backBtn_png,goShareBtn_png,LOGO_png,myPrizeBtn_png,shiyitu_png,startSceneBg_png,unCilckBtn_png", "keys": "ruleBtn_png,unOpen_png,startShareBtn_png,startBtn_png,open_png,moneyBagBg_png,backBtn_png,goShareBtn_png,LOGO_png,myPrizeBtn_png,unCilckBtn_png,joinBtn_png,backYPC_png,startSceneBg_png",
"name": "start_scene" "name": "start_scene"
}, },
{ {
...@@ -29,15 +29,15 @@ ...@@ -29,15 +29,15 @@
"name": "game_scene" "name": "game_scene"
}, },
{ {
"keys": "closeBtn_rule_png,commonBg_png", "keys": "closeBtn_rule_png,commonBg_png,jiantou_png,clintBg_png,sharehint_png,shareFriend_png",
"name": "common" "name": "common"
}, },
{ {
"keys": "rule_png,rulePopup_png", "keys": "rulePopup_png",
"name": "rule_panel" "name": "rule_panel"
}, },
{ {
"keys": "weChat_png,sharePanelBg_png,shareHint_png,share_png,friendsCircle_png", "keys": "weChat_png,sharePanelBg_png,shareHint_png,share_png,friendsCircle_png,shareJoin_png",
"name": "share_panel" "name": "share_panel"
}, },
{ {
...@@ -191,11 +191,6 @@ ...@@ -191,11 +191,6 @@
"type": "image", "type": "image",
"name": "closeBtn_msg_png" "name": "closeBtn_msg_png"
}, },
{
"url": "assets/rule_panel/rule.png",
"type": "image",
"name": "rule_png"
},
{ {
"url": "assets/msg_panel/msgPopup.png", "url": "assets/msg_panel/msgPopup.png",
"type": "image", "type": "image",
...@@ -226,11 +221,6 @@ ...@@ -226,11 +221,6 @@
"type": "image", "type": "image",
"name": "shareBtn_png" "name": "shareBtn_png"
}, },
{
"url": "assets/prize_panel/prize.png",
"type": "image",
"name": "prize_png"
},
{ {
"url": "assets/prize_panel/unShareGetBtn.png", "url": "assets/prize_panel/unShareGetBtn.png",
"type": "image", "type": "image",
...@@ -241,16 +231,6 @@ ...@@ -241,16 +231,6 @@
"type": "image", "type": "image",
"name": "myPrizeBtn_png" "name": "myPrizeBtn_png"
}, },
{
"url": "assets/start_scene/shiyitu.png",
"type": "image",
"name": "shiyitu_png"
},
{
"url": "assets/start_scene/startSceneBg.png",
"type": "image",
"name": "startSceneBg_png"
},
{ {
"url": "assets/start_scene/backBtn.png", "url": "assets/start_scene/backBtn.png",
"type": "image", "type": "image",
...@@ -296,11 +276,6 @@ ...@@ -296,11 +276,6 @@
"type": "image", "type": "image",
"name": "unOpen_png" "name": "unOpen_png"
}, },
{
"url": "assets/start_scene/hint.png",
"type": "image",
"name": "hint_png"
},
{ {
"url": "assets/game_scene/gameSceneBg.png", "url": "assets/game_scene/gameSceneBg.png",
"type": "image", "type": "image",
...@@ -362,29 +337,54 @@ ...@@ -362,29 +337,54 @@
"name": "shareHint_png" "name": "shareHint_png"
}, },
{ {
"name": "shareJoin_png", "url": "assets/start_scene/joinBtn.png",
"type": "image", "type": "image",
"url": "assets/share_panel/shareJoin.png" "name": "joinBtn_png"
}, },
{ {
"name": "shipei_png", "url": "assets/prize_panel/prizePopup.png",
"type": "image", "type": "image",
"url": "assets/start_scene/shipei.png" "name": "prizePopup_png"
}, },
{ {
"name": "joinBtn_png", "url": "assets/prize_panel/iconBg.png",
"type": "image", "type": "image",
"url": "assets/start_scene/joinBtn.png" "name": "iconBg_png"
}, },
{ {
"name": "clint_png", "url": "assets/common/clintBg.png",
"type": "image", "type": "image",
"url": "assets/common/clint.png" "name": "clintBg_png"
},
{
"url": "assets/common/jiantou.png",
"type": "image",
"name": "jiantou_png"
},
{
"url": "assets/common/sharehint.png",
"type": "image",
"name": "sharehint_png"
},
{
"url": "assets/common/shareFriend.png",
"type": "image",
"name": "shareFriend_png"
},
{
"url": "assets/start_scene/backYPC.png",
"type": "image",
"name": "backYPC_png"
},
{
"url": "assets/start_scene/startSceneBg.png",
"type": "image",
"name": "startSceneBg_png"
}, },
{ {
"name": "prizePopup_png", "url": "assets/share_panel/shareJoin.png",
"type": "image", "type": "image",
"url": "assets/prize_panel/prizePopup.png" "name": "shareJoin_png"
} }
] ]
} }
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="GameOverPanelSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="GameOverPanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="panelGroup" width="750" x="0" height="1206" y="0"> <e:Rect width="750" height="1624" x="0" y="0" alpha="0.8" fillAlpha="0.7"/>
<e:Rect width="750" height="1624" x="0" y="0" alpha="0.8" fillAlpha="0.7"/> <e:Group id="panelGroup" width="750" x="0" height="750" anchorOffsetY="0" verticalCenter="-88">
<e:Image id="popup" width="601" height="586" x="70" y="95.99999999999997" source="msgPopup_png" scaleX="1" scaleY="1"/>
<e:Image id="popup" width="601" height="586" x="70" y="324" source="msgPopup_png"/> <e:Button id="closeBtn" label="" x="650" y="8" scaleX="1" scaleY="1">
<e:Button id="closeBtn" label="" x="650" y="236"> <e:skinName>
<e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="closeBtn_msg_png" source.down="closeBtn_msg_png" source.disabled="closeBtn_msg_png"/> <e:Image width="100%" height="100%" source="closeBtn_msg_png" source.down="closeBtn_msg_png" source.disabled="closeBtn_msg_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/> <e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Group id="unshare" width="570" height="370" x="90" y="540" anchorOffsetX="0" anchorOffsetY="0"> <e:Group id="unshare" width="570" height="370" x="90.00000000000001" y="312" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1">
<e:Button id="iknowBtn" label="" x="128" y="254"> <e:Button id="iknowBtn" label="" x="128" y="254">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="knowBtn_png" source.down="knowBtn_png" source.disabled="knowBtn_png"/> <e:Image width="100%" height="100%" source="knowBtn_png" source.down="knowBtn_png" source.disabled="knowBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/> <e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Label id="unsharehint0" text="时间到!很遗憾!" x="80" y="66" size="34" textColor="0xFFCD9F" bold="true" anchorOffsetX="0" width="420" textAlign="center" name="hint_1"/> <e:Label id="unsharehint0" text="时间到!很遗憾!" x="80" y="66" size="34" textColor="0xFFCD9F" bold="true" anchorOffsetX="0" width="420" textAlign="center" name="hint_1"/>
<e:Label id="unsharehint1" text="您与红包擦肩而过" x="77" y="114" size="44" textColor="0xFFCD9F" bold="true" width="420" textAlign="center" name="hint_2"/> <e:Label id="unsharehint1" text="您与红包擦肩而过" x="77" y="114" size="44" textColor="0xFFCD9F" bold="true" width="420" textAlign="center" name="hint_2"/>
</e:Group> </e:Group>
<e:Group id="share" width="570" height="370" x="90" y="540" anchorOffsetX="0" anchorOffsetY="0"> <e:Group id="share" width="570" height="370" x="90.00000000000001" y="312" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1">
<e:Button id="shareBtn" label="" x="125" y="251" width="316" height="95"> <e:Button id="shareBtn" label="" x="125" y="251" width="316" height="95">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="prizeShareBtn_png" source.down="prizeShareBtn_png" source.disabled="prizeShareBtn_png"/> <e:Image width="100%" height="100%" source="prizeShareBtn_png" source.down="prizeShareBtn_png" source.disabled="prizeShareBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/> <e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Label id="sharehint2" text="时间到!很遗憾!" x="80" y="66" size="34" textColor="0xFFCD9F" bold="true" anchorOffsetX="0" width="420" textAlign="center" name="hint_1"/> <e:Label id="sharehint2" text="时间到!很遗憾!" x="80" y="66" size="34" textColor="0xFFCD9F" bold="true" anchorOffsetX="0" width="420" textAlign="center" name="hint_1"/>
<e:Label id="sharehint0" text="您与红包擦肩而过" x="77" y="114" size="44" textColor="0xFFCD9F" bold="true" width="420" textAlign="center" name="hint_2"/> <e:Label id="sharehint0" text="您与红包擦肩而过" x="77" y="114" size="44" textColor="0xFFCD9F" bold="true" width="420" textAlign="center" name="hint_2"/>
<e:Label text="分享好友,本轮即可再抢一次" x="120" y="209" size="26"/> <e:Label text="分享好友,本轮即可再抢一次" x="120" y="209" size="26"/>
</e:Group> </e:Group>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="MsgSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="MsgSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Rect width="750" height="1624" x="0" y="0" fillAlpha="0.7"/>
<e:Group width="750" x="0" alpha="1" height="1206" y="0"> <e:Group width="750" x="0" alpha="1" height="750" anchorOffsetY="0" verticalCenter="-88">
<e:Rect width="750" height="1624" x="0" y="0" fillAlpha="0.7"/> <e:Image id="popup" width="601" height="586" x="70" y="100" source="msgPopup_png" scaleX="1" scaleY="1"/>
<e:Image id="popup" width="601" height="586" x="70" y="324" source="msgPopup_png" scaleX="1" scaleY="1"/> <e:Button id="closeBtn" label="" x="650" y="12.000000000000028" scaleX="1" scaleY="1">
<e:Button id="closeBtn" label="" x="650" y="236.00000000000003" scaleX="1" scaleY="1">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="closeBtn_msg_png" source.down="closeBtn_msg_png" source.disabled="closeBtn_msg_png"/> <e:Image width="100%" height="100%" source="closeBtn_msg_png" source.down="closeBtn_msg_png" source.disabled="closeBtn_msg_png"/>
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Group id="endTimeGroup" width="570" height="370" x="90.00000000000001" y="540" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1"> <e:Group id="endTimeGroup" width="570" height="370" x="90.00000000000001" y="316" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1">
<e:Button id="endTimeBtn" label="" x="128" y="254"> <e:Button id="endTimeBtn" label="" x="128" y="254">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
<e:Label id="hint0" text="你来晚了" x="77" y="62" size="44" textColor="0xFFCD9F" bold="true" anchorOffsetX="0" width="420" textAlign="center" name="hint_1"/> <e:Label id="hint0" text="你来晚了" x="77" y="62" size="44" textColor="0xFFCD9F" bold="true" anchorOffsetX="0" width="420" textAlign="center" name="hint_1"/>
<e:Label id="hint1" text="本时段红包雨已结束" x="77" y="123" size="34" textColor="0xFFCD9F" bold="true" width="420" textAlign="center" name="hint_2"/> <e:Label id="hint1" text="本时段红包雨已结束" x="77" y="123" size="34" textColor="0xFFCD9F" bold="true" width="420" textAlign="center" name="hint_2"/>
</e:Group> </e:Group>
<e:Group id="shareGroup" width="570" height="370" x="90.00000000000001" y="540" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1"> <e:Group id="shareGroup" width="570" height="370" x="90.00000000000001" y="316" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1">
<e:Button id="shareBtn" label="" x="128" y="254"> <e:Button id="shareBtn" label="" x="128" y="254">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
...@@ -45,5 +45,10 @@ ...@@ -45,5 +45,10 @@
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="PrizePanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="PrizePanelSkin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="panelGroup" width="750" height="1206" x="0" top="0"> <e:Rect width="750" height="1624" x="0" y="0" fillAlpha="0.7"/>
<e:Rect width="750" height="1624" x="0" y="0" fillAlpha="0.7"/> <e:Group id="panelGroup" width="750" height="1002" x="0" anchorOffsetY="0" verticalCenter="-72">
<e:Image id="popup" anchorOffsetX="0" y="-18" width="606" height="1008" source="prizePopup_png" x="63" scaleX="1" scaleY="1"/>
<e:Image id="popup" anchorOffsetX="0" y="98" width="606" height="1008" source="prizePopup_png" x="63"/> <e:Button id="closeBtn" label="" x="653" y="119" scaleX="1" scaleY="1">
<e:Button id="closeBtn" label="" x="653" y="235">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="closeBtn_png" source.down="closeBtn_png" source.disabled="closeBtn_png"/> <e:Image width="100%" height="100%" source="closeBtn_png" source.down="closeBtn_png" source.disabled="closeBtn_png"/>
...@@ -12,20 +11,20 @@ ...@@ -12,20 +11,20 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Image id="prizeImg" width="250" height="250" y="687" anchorOffsetX="0" anchorOffsetY="0" x="250"/> <e:Image id="prizeImgbg" width="250" height="250" y="563" anchorOffsetX="0" anchorOffsetY="0" x="250" source="iconBg_png" scaleX="1" scaleY="1"/>
<e:Label id="prizeNameLb" text="获得xxx元无门槛抵用金" x="89" y="640" size="26" width="580" textAlign="center"/> <e:Image id="prizeImg" width="250" height="250" y="563" anchorOffsetX="0" anchorOffsetY="0" x="250" scaleX="1" scaleY="1"/>
<e:Group id="unShare" width="540" height="176" x="108" y="924" anchorOffsetY="0" anchorOffsetX="0"> <e:Label id="prizeNameLb" text="获得xxx元无门槛抵用金" x="89" y="524" size="26" width="580" textAlign="center" scaleX="1" scaleY="1"/>
<e:Group id="unShare" width="540" height="176" x="108" y="808" anchorOffsetY="0" anchorOffsetX="0" scaleX="1" scaleY="1" visible="false">
<e:Button id="getBtnUnShare" label="" x="110" y="43"> <e:Button id="getBtnUnShare" label="" x="110" y="43">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="unShareGetBtn_png" source.down="unShareGetBtn_png" source.disabled="unShareGetBtn_png"/> <e:Image width="100%" height="100%" source="unShareGetBtn_png" source.down="unShareGetBtn_png" source.disabled="unShareGetBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/> <e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
</e:Group> </e:Group>
<e:Group id="share" width="540" height="176" x="108" y="924" anchorOffsetY="0" anchorOffsetX="0"> <e:Group id="share" width="540" height="176" x="108" y="808" anchorOffsetY="0" anchorOffsetX="0" scaleX="1" scaleY="1">
<e:Button id="getBtn" label="" x="14" y="61" anchorOffsetX="0" width="249"> <e:Button id="getBtn" label="" x="14" y="61" anchorOffsetX="0" width="249">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
...@@ -35,13 +34,12 @@ ...@@ -35,13 +34,12 @@
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="shareBtn" label="" x="273" y="62" anchorOffsetX="0" width="249"> <e:Button id="shareBtn" label="" x="273" y="62" anchorOffsetX="0" width="249">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="shareBtn_png" source.down="shareBtn_png" source.disabled="shareBtn_png"/> <e:Image width="100%" height="100%" source="shareBtn_png" source.down="shareBtn_png" source.disabled="shareBtn_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/> <e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Label text="分享好友,本轮即可再抢一次" x="98" y="18" size="26" scaleX="1" scaleY="1"/> <e:Label text="分享好友,本轮即可再抢一次" x="98" y="18" size="26" scaleX="1" scaleY="1"/>
</e:Group> </e:Group>
...@@ -54,5 +52,14 @@ ...@@ -54,5 +52,14 @@
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<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 width="750" height="1206" top="0"> <e:Rect width="750" height="1624" x="0" y="0" alpha="0.8" strokeColor="0x000000" fillColor="0x000000" fillAlpha="0.7"/>
<e:Rect width="750" height="1624" x="0" y="0" alpha="0.8" strokeColor="0x000000" fillColor="0x000000" fillAlpha="0.7"/> <e:Group width="750" height="900" anchorOffsetY="0" x="0" verticalCenter="-25">
<e:Button id="closeBtn" label="" scaleX="1" scaleY="1" x="653" y="13">
<e:Image id="bg" scaleX="1" scaleY="1" x="0" y="0" source="commonBg_png" width="750" height="1600" alpha="0.8" visible="false"/>
<e:Button id="closeBtn" label="" scaleX="1" scaleY="1" x="653" y="235">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image source="closeBtn_rule_png" source.down="closeBtn_rule_png" source.disabled="closeBtn_rule_png" scaleX.down="0.9" scaleY.down="0.9" x.down="2.5" y.down="2.5"/> <e:Image source="closeBtn_rule_png" source.down="closeBtn_rule_png" source.disabled="closeBtn_rule_png" scaleX.down="0.9" scaleY.down="0.9" x.down="2.5" y.down="2.5"/>
...@@ -12,12 +10,18 @@ ...@@ -12,12 +10,18 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Image id="rule" width="601" height="782" x="70" y="323" source="rulePopup_png"/> <e:Image id="rule" width="601" height="782" x="70" y="101" source="rulePopup_png" scaleX="1" scaleY="1"/>
<e:Scroller width="472" height="364" x="138" y="692" anchorOffsetX="0" anchorOffsetY="0"> <e:Scroller width="492" height="364" x="128" y="470" anchorOffsetX="0" anchorOffsetY="0" scaleX="1" scaleY="1">
<e:Group id="ruleGroup"> <e:Group id="ruleGroup">
<e:Label id="ruleLb" text="" x="10" y="10" width="452" lineSpacing="10" size="24" textColor="0x511205"/> <e:Label id="ruleLb" text="" x="10" y="10" width="469" lineSpacing="10" size="24" textColor="0x511205"/>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
</e:Group> </e:Group>
</e:Skin> </e:Skin>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="StartScene" width="750" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing" xmlns:tween="egret.tween.*" height="1300"> <e:Skin class="StartScene" width="750" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing" xmlns:tween="egret.tween.*" height="1206">
<w:Declarations> <w:Declarations>
<tween:TweenGroup id="act0"> <tween:TweenGroup id="act0">
<tween:TweenItem target="{actImg0}"> <tween:TweenItem target="{actImg0}">
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="myPrizeBtn" label="" x="607" y="101"> <e:Button id="myPrizeBtn" label="" x="607" y="101" width="120" height="40">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="myPrizeBtn_png" source.down="myPrizeBtn_png" source.disabled="myPrizeBtn_png"/> <e:Image width="100%" height="100%" source="myPrizeBtn_png" source.down="myPrizeBtn_png" source.disabled="myPrizeBtn_png"/>
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Label id="tineHintLab" text="11月1日 00:00 - 11月12日 23:59" x="181" y="282" size="22" width="390" textAlign="center"/> <e:Label id="tineHintLab" text="" x="181" y="282" size="22" width="390" textAlign="center" visible="false"/>
<e:Label id="stateHint" text="活动已结束" x="202" y="643" size="28" width="341" textAlign="center"/> <e:Label id="stateHint" text="活动已结束" x="202" y="643" size="28" width="341" textAlign="center"/>
<e:Group id="hoursGroup" width="121.21" height="75.75" x="187" y="694" anchorOffsetX="0" anchorOffsetY="0"> <e:Group id="hoursGroup" width="121.21" height="75.75" x="187" y="694" anchorOffsetX="0" anchorOffsetY="0">
<e:Label id="hoursLab_1" text="0" x="18" y="18" size="44"/> <e:Label id="hoursLab_1" text="0" x="18" y="18" size="44"/>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<e:Label id="secondsLab_2" text="0" x="77" y="18" size="44"/> <e:Label id="secondsLab_2" text="0" x="77" y="18" size="44"/>
</e:Group> </e:Group>
<e:Label id="shareHint" text="分享成功,本轮即可再抢一次" x="256" y="796" size="18" visible="false"/> <e:Label id="shareHint" text="分享成功,本轮即可再抢一次" x="256" y="796" size="18" visible="false"/>
<e:Button id="backBtn" label="" x="180" y="824" visible="false"> <e:Button id="backBtn1" label="" x="180" y="824" visible="false">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="backBtn_png" source.down="backBtn_png" source.disabled="backBtn_png"/> <e:Image width="100%" height="100%" source="backBtn_png" source.down="backBtn_png" source.disabled="backBtn_png"/>
...@@ -115,7 +115,15 @@ ...@@ -115,7 +115,15 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="goShareBtn" label="" x="180" y="824"> <e:Button id="backBtn2" label="" x="180" y="824">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="backYPC_png" source.down="backYPC_png" source.disabled="backYPC_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Button id="goShareBtn" label="" x="180" y="824" visible="false">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="goShareBtn_png" source.down="goShareBtn_png" source.disabled="goShareBtn_png"/> <e:Image width="100%" height="100%" source="goShareBtn_png" source.down="goShareBtn_png" source.disabled="goShareBtn_png"/>
...@@ -131,7 +139,7 @@ ...@@ -131,7 +139,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="startShareBtn" label="" x="180" y="824"> <e:Button id="startShareBtn" label="" x="180" y="824" visible="false">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="startShareBtn_png" source.down="startShareBtn_png" source.disabled="startShareBtn_png"/> <e:Image width="100%" height="100%" source="startShareBtn_png" source.down="startShareBtn_png" source.disabled="startShareBtn_png"/>
...@@ -184,7 +192,7 @@ ...@@ -184,7 +192,7 @@
<e:Image id="hint" width="399" height="22" x="176" y="1593" source="hint_png" visible="false"/> <e:Image id="hint" width="399" height="22" x="176" y="1593" source="hint_png" visible="false"/>
</e:Group> </e:Group>
</e:Scroller> </e:Scroller>
<e:Scroller id="shareJoin" width="100%" x="0" height="100%" y="0" visible="false"> <e:Scroller id="shareJoin" width="100%" x="0" top="0" bottom="0" visible="false">
<e:Group> <e:Group>
<e:Image id="bg0" width="750" height="1624" x="0" y="0" source="shareJoin_png"/> <e:Image id="bg0" width="750" height="1624" x="0" y="0" source="shareJoin_png"/>
<e:Image width="750" height="500" x="0" y="1204" source="shipei_png"/> <e:Image width="750" height="500" x="0" y="1204" source="shipei_png"/>
...@@ -196,7 +204,7 @@ ...@@ -196,7 +204,7 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="joinShareBtn" label="" y="1102" scaleX="1" scaleY="1" x="180"> <e:Button id="joinShareBtn" label="" y="1163" scaleX="1" scaleY="1" anchorOffsetX="195" anchorOffsetY="47.5" x="375">
<e:skinName> <e:skinName>
<e:Skin states="up,down,disabled"> <e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="joinBtn_png" source.down="joinBtn_png" source.disabled="joinBtn_png"/> <e:Image width="100%" height="100%" source="joinBtn_png" source.down="joinBtn_png" source.disabled="joinBtn_png"/>
......
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="TimeTipsPanelSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="TimeTipsPanelSkin" width="750" height="1624" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<e:Group id="panelGroup" width="750" x="0" top="0" bottom="418"> <e:Group id="panelGroup" width="750" x="0" height="1206" y="0">
<e:Image scaleX="1" scaleY="1" height="1206" width="750" source="clint_png" alpha="0.8"/> <e:Image scaleX="1" scaleY="1" height="1624" width="750" alpha="0.2" anchorOffsetY="0" source="clintBg_png"/>
<e:Image width="79" height="92" source="jiantou_png" top="45" right="71"/>
<e:Image id="share1" width="264" height="72" source="sharehint_png" right="111" top="137" visible="false"/>
<e:Image id="share2" width="325" height="32" x="375" y="136" source="shareFriend_png"/>
......
...@@ -76,19 +76,55 @@ class Main extends eui.UILayer { ...@@ -76,19 +76,55 @@ class Main extends eui.UILayer {
} else { } else {
window['CFG'].projectId = '/projectx' + '/' + window.location.pathname.split('/')[2]; window['CFG'].projectId = '/projectx' + '/' + window.location.pathname.split('/')[2];
} }
if(navigator.userAgent.indexOf("YPCAPPUserAgent") > -1){ if(navigator.userAgent.indexOf("YPCAPPUserAgent") > -1){
window['inApp'] = true; window['inApp'] = true;
} }
if(this.getQueryString('type') == "share"){ let state = false;
let timer = null;
if(!this.getIsWxClient() && !window['inApp'])
{
state = true;
console.log("开始唤端");
if(navigator.userAgent.indexOf('Android') > -1 || navigator.userAgent.indexOf('Linux') > -1)
{
window.location.href = 'http://activity-2.m.duiba.com.cn/customShare/share?id=3606';
}
{
window.location.href = 'wakeuptheypc://com.ypcang.buyer/GoToGoods?info=%7B%22type%22%3A%22GOTODBWeb%22%2C%22param%22%3A%7B%22redirect_url%22%3A%22https%3A%2F%2Factivity.m.duiba.com.cn%2Fprojectx%2Fpa9f8a92f%2Findex.html%22%2C%22is_redirect%22%3A1%7D%2C%22isNeedLogin%22%3Atrue%2C%22isClose%22%3Atrue%7D';
}
//唤端
timer = setTimeout(function () {
state = false;
let u = navigator.userAgent;
let iphone = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if(iphone){
//跳转下载
var re = confirm("是否需要下载?");
if(re == true){
window.location.href = 'https://apps.apple.com/cn/app/%E5%A3%B9%E5%93%81%E4%BB%93-%E4%B8%80%E4%B8%AA%E4%B8%93%E9%97%A8%E5%81%9A%E5%93%81%E7%89%8C%E7%89%B9%E5%8D%96%E7%9A%84%E4%BB%93%E5%BA%93/id1187823503';
return;
}
}
}.bind(this), 3000);
}
document.addEventListener('visibilitychange', function () {
if (document.visibilityState === 'hidden') {
if (state) {
if (timer) {
clearTimeout(timer)
timer = null;
}
state = false;
}
}
});
if(this.getQueryString('shareCode') == '123' && this.getIsWxClient()){
window['inShareJion'] = true; window['inShareJion'] = true;
console.log("是否分享链接进入",window['inShareJion']); console.log("是否分享链接进入",window['inShareJion']);
} }
console.log("是否在APP内",navigator.userAgent.indexOf("YPCAPPUserAgent"));
Buried.init(); Buried.init();
Buried.appId = window['appid'] ? window['appid'] : 67317; Buried.appId = window['appid'] ? window['appid'] : 67317;
Buried.oaId = window.location.pathname.split('/')[2]; Buried.oaId = window.location.pathname.split('/')[2];
console.log("测试");
this.stage.scaleMode = egret.StageScaleMode.FIXED_WIDTH; this.stage.scaleMode = egret.StageScaleMode.FIXED_WIDTH;
SceneCtrl.instance.registerSceneClass(ModuleTypes.GAME_SCENE, GameScene); SceneCtrl.instance.registerSceneClass(ModuleTypes.GAME_SCENE, GameScene);
SceneCtrl.instance.registerSceneClass(ModuleTypes.START_SCENE, StartScene); SceneCtrl.instance.registerSceneClass(ModuleTypes.START_SCENE, StartScene);
...@@ -105,6 +141,16 @@ class Main extends eui.UILayer { ...@@ -105,6 +141,16 @@ class Main extends eui.UILayer {
console.log(e); console.log(e);
}) })
} }
private getIsWxClient () {
let ua = navigator.userAgent;
let isWX = /micromessenger/gi.test(ua);
if(isWX){
return true;
}
else{
return false;
}
};
/** /**
* 获取url后面的参数值 * 获取url后面的参数值
* name :参数键值 * name :参数键值
...@@ -223,18 +269,21 @@ class Main extends eui.UILayer { ...@@ -223,18 +269,21 @@ class Main extends eui.UILayer {
*/ */
private async getGameRes(){ private async getGameRes(){
//获取游戏信息 //获取游戏信息
await RES.loadGroup('start_scene',1);
Loading.instace.show(); Loading.instace.show();
NetManager.ins.getDomain((success,data) => { NetManager.ins.getDomain((success,data) => {
if (!success) { // if (!success) {
console.log("getDomain出错",success,data); // console.log("getDomain出错",success,data);
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'登陆后即可参与红包雨活动~'}); // PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'登陆后即可参与红包雨活动呦~'});
Loading.instace.hide(); // Loading.instace.hide();
return; // return;
} // }
console.log("CFG",window['CFG'].projectId); console.log("CFG",window['CFG'].projectId);
NetManager.ins.getWechatInfo((success) => { NetManager.ins.getWechatInfo((success) => {
let data = DataManager.ins.getData(NetNameNew.GET_WECHAT_INFO); let data = DataManager.ins.getData(NetNameNew.GET_WECHAT_INFO);
console.log('getWechatInfo', data); console.log('getWechatInfo', data);
let random = Math.floor(Math.random()*5) ;
window['shareTitle'] = window['shareData'][random] ? window['shareData'][random] : '领限时红包,买Jack&Jones折后再减更划算';
if (data.success) { if (data.success) {
window['wx'] && window['wx'] &&
window['wx'].config({ window['wx'].config({
...@@ -255,35 +304,7 @@ class Main extends eui.UILayer { ...@@ -255,35 +304,7 @@ class Main extends eui.UILayer {
await RES.loadGroup('rule_panel'); await RES.loadGroup('rule_panel');
await RES.loadGroup('game_scene'); await RES.loadGroup('game_scene');
await RES.loadGroup('prize_panel'); await RES.loadGroup('prize_panel');
} await RES.loadGroup('share_panel');
private doshare()
{
function invokeWX() {
window['wx'].onMenuShareTimeline({
title:"百万红包雨,限时疯抢中",
link: 'https://.baidu.com',
imgUrl: 'https://yun.duiba.com.cn/db_games/activity/ypc_hongbaoyu/shareImg/shareImg.jpg',
success: function() {
setTimeout(function(){
},500)
},
cancel: function() {}
});
window['wx'].onMenuShareAppMessage({
title:"百万红包雨,限时疯抢中",
desc:"壹品仓福利大派送,等你来捞!",
link:'https://.baidu.com',
imgUrl: 'https://yun.duiba.com.cn/db_games/activity/ypc_hongbaoyu/shareImg/shareImg.jpg',
success: function(res) {
setTimeout(function(){
},500)
},
cancel: function(res) {},
fail: function(res) {}
});
}
} }
} }
......
...@@ -48,7 +48,7 @@ export default class GameScene extends Scene { ...@@ -48,7 +48,7 @@ export default class GameScene extends Scene {
public bar:eui.ProgressBar; public bar:eui.ProgressBar;
public get skinKey() { return 'GameScene' } public get skinKey() { return 'GameScene' }
public get groupName() { return 'game_scene' } public get groupName() { return 'game_scene' }
constructor(data?) { constructor(data?) {
super(data); super(data);
} }
...@@ -238,7 +238,7 @@ export default class GameScene extends Scene { ...@@ -238,7 +238,7 @@ export default class GameScene extends Scene {
this.moveSpeed *= this.isStop; this.moveSpeed *= this.isStop;
this.tick += times; this.tick += times;
if(!this.flowerArr || this.flowerArr.length < 10){ if(!this.flowerArr || this.flowerArr.length < 15){
this.createFlower(); this.createFlower();
} }
this.falling(); this.falling();
...@@ -418,19 +418,21 @@ export default class GameScene extends Scene { ...@@ -418,19 +418,21 @@ export default class GameScene extends Scene {
{ {
PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, {data : result.data}); PanelCtrl.instance.show(ModuleTypes.PRIZE_PANEL, {data : result.data});
} }
else if(success && result && result.data && result.data.prizeId == 'thanks') else if(result.data && result.data.prizeId == 'thanks')
{ {
this.unPrizePopup(); this.unPrizePopup();
} }
else else
{ {
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'活动太过火爆,请稍后重试'}); PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'活动太过火爆,请稍后重试'});
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
} }
},resultInformation.data.timestamp,this.scoreCount,resultInformation.data.cid) },resultInformation.data.timestamp,this.scoreCount,resultInformation.data.cid)
} }
else else
{ {
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'活动太过火爆,请稍后重试'}); PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'活动太过火爆,请稍后重试'});
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
} }
}); });
} }
......
...@@ -147,7 +147,6 @@ export default class MsgPanel extends Panel { ...@@ -147,7 +147,6 @@ export default class MsgPanel extends Panel {
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'您已在其他设备登陆~'}); PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'您已在其他设备登陆~'});
break; break;
case '20001': case '20001':
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'请在规定时间内参与~'});
break; break;
default: default:
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'内容太过火爆,请稍后重试~'}); PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'内容太过火爆,请稍后重试~'});
......
...@@ -75,8 +75,8 @@ export default class PrizePanel extends Panel { ...@@ -75,8 +75,8 @@ export default class PrizePanel extends Panel {
private onLoad() { private onLoad() {
if(this.mdata){ if(this.mdata){
console.log("奖品数据",this.mdata);
let idata = DataManager.ins.getData('getInformation').data; let idata = DataManager.ins.getData('getInformation').data;
console.log("奖品数据",this.mdata,idata);
if(idata.canShare){ if(idata.canShare){
this.unShare.visible = false; this.unShare.visible = false;
this.share.visible = true; this.share.visible = true;
...@@ -85,6 +85,8 @@ export default class PrizePanel extends Panel { ...@@ -85,6 +85,8 @@ export default class PrizePanel extends Panel {
const exposure2 = Buried.createExposure(startDpmOut2, startDcmOut2); const exposure2 = Buried.createExposure(startDpmOut2, startDcmOut2);
NetManager.ins.showLog(exposure2); NetManager.ins.showLog(exposure2);
console.log("打开界面分享界面");
}else{ }else{
this.unShare.visible = true; this.unShare.visible = true;
this.share.visible = false; this.share.visible = false;
...@@ -106,6 +108,7 @@ export default class PrizePanel extends Panel { ...@@ -106,6 +108,7 @@ export default class PrizePanel extends Panel {
} }
},this.mdata.data.prizeId) },this.mdata.data.prizeId)
} }
} }
private showPrize(lottery){ private showPrize(lottery){
if(!lottery) if(!lottery)
...@@ -121,81 +124,44 @@ export default class PrizePanel extends Panel { ...@@ -121,81 +124,44 @@ export default class PrizePanel extends Panel {
this.prizeImg.source = url; this.prizeImg.source = url;
this.prizeImg.width = 250; this.prizeImg.width = 250;
this.prizeImg.height = 250; this.prizeImg.height = 250;
console.log('奖品图',lottery.icon);
} }
onUse() { onUse() {
} }
onTouchTap(): any {
super.onTouchTap();
if (this['closeBtn']) {
PanelCtrl.instance.btnDelay(this['closeBtn']);
}
}
private onTap_ok(e:egret.TouchEvent):void{//立即领取 private onTap_ok(e:egret.TouchEvent):void{//立即领取
PanelCtrl.instance.btnDelay(e.target);
PanelCtrl.instance.btnDelay(this.getBtnUnShare); console.log("立即领取");
if(!window['inApp']) if(!window['inApp'])
{ {
console.log("端外立即领取");
PanelCtrl.instance.show(ModuleTypes.TIME_TIPS_PANEL); PanelCtrl.instance.show(ModuleTypes.TIME_TIPS_PANEL);
} }
else else
{ {
console.log("端内立即领取");
window.location.href = this.mdata.data.url ? this.mdata.data.url : 'http://activity.m.duibadev.com.cn/projectx/p8503e3aa/f5c695a60.html'; window.location.href = this.mdata.data.url ? this.mdata.data.url : 'http://activity.m.duibadev.com.cn/projectx/p8503e3aa/f5c695a60.html';
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
} }
} }
private onTap_closeBtn():void{ private onTap_closeBtn():void{
SceneCtrl.instance.change(ModuleTypes.START_SCENE); SceneCtrl.instance.change(ModuleTypes.START_SCENE);
} }
private onTap_copyBtn():void{
PanelCtrl.instance.btnDelay(this.copyBtn);
}
private onTap_shareBtn():void{ private onTap_shareBtn():void{
console.log("立即分享");
PanelCtrl.instance.btnDelay(this.shareBtn); PanelCtrl.instance.btnDelay(this.shareBtn);
const startDpmOut = Buried.connectDpm(110, 6, 1); // 点击埋点 const startDpmOut = Buried.connectDpm(110, 6, 1); // 点击埋点
const startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点 const startDcmOut = Buried.connectDcm(202, 0, 0); // 曝光埋点
const exposure = Buried.createExposure(startDpmOut, startDcmOut); const exposure = Buried.createExposure(startDpmOut, startDcmOut);
NetManager.ins.clickLog(exposure); NetManager.ins.clickLog(exposure);
if(window['isdebug'])
{
NetManager.ins.getInformation((success,result) => {
if(success && result.data)
{
let sessionSettings = result.data.sessionSettings.split(',');
let endTimeDay = result.data.sessionEndTime.split('-');
let date = new Date(endTimeDay[0],endTimeDay[1],endTimeDay[2]).getTime();
let endTime = date + sessionSettings[sessionSettings.length - 1]*3600000 + result.data.sessionDuration;
if(result.data.timestamp < endTime)
{
NetManager.ins.addTimeShare((success,result) => {
if(success && result)
{
PanelCtrl.instance.show(ModuleTypes.MSG_PANEL,{type:2});
}
else
{
PanelCtrl.instance.show(ModuleTypes.TOAST_PANEL, {msg:'活动太过火爆,请稍后重试'});
}
});
}
}
})
return ;
}
if(window['inApp']) if(window['inApp'])
{ {
PanelCtrl.instance.show(ModuleTypes.SHARE_PANEL); PanelCtrl.instance.show(ModuleTypes.SHARE_PANEL);
} }
else else
{ {
PanelCtrl.instance.show(ModuleTypes.TIME_TIPS_PANEL); PanelCtrl.instance.show(ModuleTypes.TIME_TIPS_PANEL,{type:1});
} }
} }
} }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
...@@ -5,11 +5,14 @@ import SceneCtrl from "../ctrls/sceneCtrl"; ...@@ -5,11 +5,14 @@ import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes"; import { ModuleTypes } from "../types/sceneTypes";
export default class TimesTipsPanel extends Panel { export default class TimesTipsPanel extends Panel {
public share1:eui.Group;
public share2:eui.Group;
public get skinKey() { return 'TimeTipsPanel' } public get skinKey() { return 'TimeTipsPanel' }
public get groupName() { return 'timetips_panel'} //public get groupName() { return 'timetips_panel'}
private mada;
constructor(data?:any){ constructor(data?:any){
super(data); super(data);
this.mada = data;
} }
onSkinComplete():void{ onSkinComplete():void{
...@@ -36,9 +39,27 @@ export default class TimesTipsPanel extends Panel { ...@@ -36,9 +39,27 @@ export default class TimesTipsPanel extends Panel {
} }
private onLoad():void{ private onLoad():void{
if(this.mada && this.mada.type == 1)
{
this.share1.visible = false;
this.share2.visible = true;
}
else
{
this.share1.visible = true;
this.share2.visible = false;
}
let random = Math.floor(Math.random()*5) ;
if(random < (window['shareData'].length))
{
window['shareTitle'] = window['shareData'][random];
}
} }
private onTap1():void{ private onTap1():void{
this.hidePanel(); this.hidePanel();
SceneCtrl.instance.change(ModuleTypes.START_SCENE);
} }
} }
\ No newline at end of file
...@@ -132,7 +132,7 @@ export default class Panel extends ComponentBase { ...@@ -132,7 +132,7 @@ export default class Panel extends ComponentBase {
hidePanel() { hidePanel() {
if(this.panelGroup){ if(this.panelGroup){
egret.Tween.get(this.panelGroup).to({ scaleX: 0, scaleY: 0 }, 200, egret.Ease.sineOut).call(function () { egret.Tween.get(this.panelGroup).to({ scaleX: 0, scaleY: 0 }, 500, egret.Ease.sineOut).call(function () {
this.destroy(); this.destroy();
this.dispatchEvent(new egret.Event('onDestroy')); this.dispatchEvent(new egret.Event('onDestroy'));
}.bind(this)); }.bind(this));
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"canShare":true, "canShare":true,
"sessionDoing":true, "sessionDoing":true,
"sessionJoinTimes":1, "sessionJoinTimes":1,
"cid":11111 "cid":11111,
"sessionEndTime":"2019-11-11"
} }
} }
\ No newline at end of file
This diff is collapsed.
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