Commit bcda3675 authored by wildfirecode's avatar wildfirecode

1

parent e1922232
...@@ -175,6 +175,10 @@ ...@@ -175,6 +175,10 @@
{ {
"keys": "turnprize_icon1_png,turnprize_icon2_png,turnprize_icon3_png,turprizebg_png,turprize继续闯关按钮_png", "keys": "turnprize_icon1_png,turnprize_icon2_png,turnprize_icon3_png,turprizebg_png,turprize继续闯关按钮_png",
"name": "turntableprize" "name": "turntableprize"
},
{
"name": "preload",
"keys": "blood去分享_png,blood2去分享按钮_png"
} }
], ],
"resources": [ "resources": [
...@@ -2782,6 +2786,16 @@ ...@@ -2782,6 +2786,16 @@
"url": "assets/turntableprize/turprize继续闯关按钮.png", "url": "assets/turntableprize/turprize继续闯关按钮.png",
"type": "image", "type": "image",
"name": "turprize继续闯关按钮_png" "name": "turprize继续闯关按钮_png"
},
{
"name": "blood去分享_png",
"type": "image",
"url": "assets/blood/blood去分享.png"
},
{
"name": "blood2去分享按钮_png",
"type": "image",
"url": "assets/blood2/blood2去分享按钮.png"
} }
] ]
} }
\ No newline at end of file
...@@ -25,6 +25,14 @@ ...@@ -25,6 +25,14 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="inviteBtn2" label="" x="439.08" y="621.6">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="blood2去分享按钮_png" source.down="blood2去分享按钮_png" source.disabled="blood2去分享按钮_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Label id="bloodTxt" text="你的可用体力值为:5" y="299.92" horizontalCenter="0" textColor="0xf54500" size="33"/> <e:Label id="bloodTxt" text="你的可用体力值为:5" y="299.92" horizontalCenter="0" textColor="0xf54500" size="33"/>
<e:Label id="countdownTxt" text="距离下一次体力补给时间:" y="753.76" size="22" width="509" horizontalCenter="0.5" verticalAlign="middle" textAlign="center" textColor="0x86533a"/> <e:Label id="countdownTxt" text="距离下一次体力补给时间:" y="753.76" size="22" width="509" horizontalCenter="0.5" verticalAlign="middle" textAlign="center" textColor="0x86533a"/>
<e:Label text="元宝兑换得体力" y="492.08" size="26" x="218.88" textColor="0xc33700"/> <e:Label text="元宝兑换得体力" y="492.08" size="26" x="218.88" textColor="0xc33700"/>
......
...@@ -37,6 +37,14 @@ ...@@ -37,6 +37,14 @@
</e:Skin> </e:Skin>
</e:skinName> </e:skinName>
</e:Button> </e:Button>
<e:Button id="inviteBtn2" label="" x="433" y="635">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="blood去分享_png" source.down="blood按钮 副本1_png" source.disabled="blood按钮 副本1_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
<e:Label id="bloodTxt" text="你的可用体力值为:5" y="303.92" horizontalCenter="0" textColor="0xF54500" size="33"/> <e:Label id="bloodTxt" text="你的可用体力值为:5" y="303.92" horizontalCenter="0" textColor="0xF54500" size="33"/>
<e:Label id="countdownTxt" text="距离下一次体力补给时间:" y="753.76" size="22" width="509" horizontalCenter="0.5" verticalAlign="middle" textAlign="center" textColor="0x86533A"/> <e:Label id="countdownTxt" text="距离下一次体力补给时间:" y="753.76" size="22" width="509" horizontalCenter="0.5" verticalAlign="middle" textAlign="center" textColor="0x86533A"/>
</e:Skin> </e:Skin>
\ No newline at end of file
...@@ -118,8 +118,8 @@ export default class MapScene extends Scene { ...@@ -118,8 +118,8 @@ export default class MapScene extends Scene {
localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2); localStorage.setItem('nowTimer2Str' + window['CFG'].consumerId, nowTimerStr2);
} }
const backData = DataManager.ins.getData('hc_getBackReward').data; const backData = DataManager.ins.getData('hc_getBackReward');
if(backData) { if(backData.data) {
panels.push('back'); panels.push('back');
} }
...@@ -604,6 +604,7 @@ export default class MapScene extends Scene { ...@@ -604,6 +604,7 @@ export default class MapScene extends Scene {
break; break;
case (flag == 6): // 无入口 case (flag == 6): // 无入口
this["inviteGroup"].visible = false; this["inviteGroup"].visible = false;
this['adBtn'].y = 323.76;
break; break;
default: default:
break; break;
......
...@@ -8,14 +8,14 @@ export default class BackPanel extends Panel { ...@@ -8,14 +8,14 @@ export default class BackPanel extends Panel {
super.start(); super.start();
this.showlog(); this.showlog();
addAdComp(84, 806.52, this) addAdComp(84, 806.52, this)
const backData = DataManager.ins.getData('hc_getBackReward');
this.updateOption(backData.data);
backData.data =null;
} }
showlog(){ showlog(){
// NetManager.ins.showLog(getlogItem(3));
// NetManager.ins.showLog(getlogItem(4));
const {data}=DataManager.ins.getData('hc_getBackReward');
this.updateOption(data);
} }
initEvents() { initEvents() {
......
...@@ -38,9 +38,10 @@ export default class BloodPanel extends Panel { ...@@ -38,9 +38,10 @@ export default class BloodPanel extends Panel {
this['bloodTxt'].text = `你的可用体力值为:${homeData.remainEnargy}`; this['bloodTxt'].text = `你的可用体力值为:${homeData.remainEnargy}`;
const data = getHomeData(); const data = getHomeData();
this['invitTxt'].text = `(已领0/1)`; this['invitTxt'].text = `(已领0/1)`;
if (data.askForEnergy) if (data.askForEnergy){
this['invitTxt'].text = `(已领1/1)`; this['invitTxt'].text = `(已领1/1)`;
this['inviteBtn2'].visible=true;
}
if(data.remainEnargy >= BLOOD_NUMS_MAX) { //满了 if(data.remainEnargy >= BLOOD_NUMS_MAX) { //满了
this['bloodTxt'].text = `你的可用体力值为:${homeData.remainEnargy}`; this['bloodTxt'].text = `你的可用体力值为:${homeData.remainEnargy}`;
this._countDown.stop(); this._countDown.stop();
...@@ -59,6 +60,7 @@ export default class BloodPanel extends Panel { ...@@ -59,6 +60,7 @@ export default class BloodPanel extends Panel {
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
this['inviteBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this) this['inviteBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this)
this['inviteBtn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this)
this['buyBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapBuy, this) this['buyBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapBuy, this)
} }
......
...@@ -56,6 +56,7 @@ this['price1Txt'].text =`${ window['price1']}个元宝=1个体力值`; ...@@ -56,6 +56,7 @@ this['price1Txt'].text =`${ window['price1']}个元宝=1个体力值`;
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
this['inviteBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this) this['inviteBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this)
this['inviteBtn2'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapInvite, this)
this['buyBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapBuy, this) this['buyBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTapBuy, this)
} }
......
{ {
"success": true, "success": true,
"code": null, "code": "0000000000",
"desc": null, "desc": "OK",
"timestamp": 1566199822308, "timestamp": 1572249599076,
"data": { "data": {
"invitationId": "活动id", "invitationId": null,
"invitationCount": 5, "invitationCount": null,
"img": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg", "sysTime": null,
"sysTime": 1570673808000, "endTime": null,
"endTime": 1570673810000, "completeFlag": 6,
"invitationUser": [ "openPrizMsg": null,
{ "prizeType": null,
"nickname": "nickname", "prizeName": null,
"avatar": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg" "prizeImg": null,
}, "facePrice": null,
{ "invitationUser": null
"nickname": "nickname",
"avatar": null
}
],
"completeFlag": 0,
"openPrizeMsg": "图片",
"prizeType": "nickname",
"prizeName": "nickname",
"prizeImg": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg",
"facePrice": "avatar"
} }
} }
\ No newline at end of file
...@@ -372,7 +372,7 @@ ...@@ -372,7 +372,7 @@
"num": 3 "num": 3
} }
], ],
"remainEnargy": 9979, "remainEnargy": 10,
"askForEnergy": false, "askForEnergy": false,
"canReceiveTreasureBoxNum": 0, "canReceiveTreasureBoxNum": 0,
"nextRangeStarsNum": 150 "nextRangeStarsNum": 150
......
...@@ -623,7 +623,7 @@ ...@@ -623,7 +623,7 @@
} }
], ],
"remainEnargy": 1, "remainEnargy": 1,
"askForEnergy": true, "askForEnergy":false,
"canReceiveTreasureBoxNum": 0, "canReceiveTreasureBoxNum": 0,
"nextRangeStarsNum": 0, "nextRangeStarsNum": 0,
"isGetAllTreasureBox": true, "isGetAllTreasureBox": true,
......
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