Commit caea034d authored by wildfirecode's avatar wildfirecode

1

parent 550c49df
......@@ -168,5 +168,10 @@
"value": "http://yun.duiba.com.cn/babi/img/bm2ryg8wht.gif"
}
]
},
"16ccc954c14": {
"backgroundType": "user",
"useBgImage": false,
"useBgColor": true
}
}
\ No newline at end of file
......@@ -33,6 +33,7 @@ import QuitPanel from "../../src/panels/QuitPanel";
import BoxPanel from "../../src/panels/BoxPanel";
import MainScene from "../../src/mainScene/MainScene";
import { Loading2 } from "../../src/something/uis/Loading2";
import Box2Panel from "../../src/panels/Box2Panel";
export default class MainBase extends eui.UILayer {
constructor() {
......@@ -60,6 +61,7 @@ export default class MainBase extends eui.UILayer {
['failed', { cls: FailedPanel }],
['quit', { cls: QuitPanel }],
['box', { cls: BoxPanel }],
['box2', { cls: Box2Panel }],
];
const scenes = [
......
......@@ -67,6 +67,10 @@
{
"keys": "boxbtn_png,boxbg_png",
"name": "box"
},
{
"name": "preload",
"keys": "box2_bg_png,commmon_okbtn1_png"
}
],
"resources": [
......@@ -1454,6 +1458,16 @@
"url": "assets/common/share_btn2.png",
"type": "image",
"name": "share_btn2_png"
},
{
"name": "box2_bg_png",
"type": "image",
"url": "assets/box2/box2_bg.png"
},
{
"name": "commmon_okbtn1_png",
"type": "image",
"url": "assets/common/commmon_okbtn1.png"
}
]
}
\ No newline at end of file
......@@ -4,6 +4,7 @@
"exmls": [
"resource/skins/AlertSkin.exml",
"resource/skins/BloodSkin.exml",
"resource/skins/Box2Skin.exml",
"resource/skins/BoxSkin.exml",
"resource/skins/Buy1Skin.exml",
"resource/skins/Buy2Skin.exml",
......
<?xml version="1.0" encoding="utf-8"?>
<e:Skin class="Box2Skin" width="750" height="1206" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16ccc954c14"/>
<e:Image y="33.76" horizontalCenter="0" source="box2_bg_png"/>
<e:Button id="closeBtn" label="" x="601.94" y="195.3">
<e:skinName>
<e:Skin states="up,down,disabled" xmlns:w="http://ns.egret.com/wing">
<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:Button id="close2Btn" label="" y="602" horizontalCenter="0">
<e:skinName>
<e:Skin states="up,down,disabled">
<e:Image width="100%" height="100%" source="commmon_okbtn1_png" source.down="commmon_okbtn1_png" source.disabled="commmon_okbtn1_png"/>
<e:Label id="labelDisplay" horizontalCenter="0" verticalCenter="0"/>
</e:Skin>
</e:skinName>
</e:Button>
</e:Skin>
\ No newline at end of file
......@@ -67,9 +67,12 @@ export default class MapScene extends Scene {
PanelCtrl.instance.show('StartPanel', data.level)
}
this.stage.once(egret.TouchEvent.TOUCH_TAP,()=>{
playBg();
},this);
this.stage.once(egret.TouchEvent.TOUCH_TAP, () => {
if (!MapScene['firstPlayBgTag']) {
playBg();
MapScene['firstPlayBgTag'] = true;
}
}, this);
}
disableIcon(level) {
......@@ -205,6 +208,8 @@ export default class MapScene extends Scene {
() => { return DataManager.ins.getData('getPlugOrderStatus').result == 0 });
}else {
PanelCtrl.instance.show('box2');
}
})
// }
......
import Panel from "../../libs/new_wx/components/Panel";
export default class Box2Panel extends Panel {
start(data) {
super.start();
// this['close2Btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
// NetManager.ins.clickLog(getlogItem(17));
// }, this);
// this.showlog();
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
}
// showlog() {
// NetManager.ins.showLog(getlogItem(17));
// }
protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['close2Btn']] }
get skinKey() { return 'Box2' }
}
\ No newline at end of file
......@@ -51,7 +51,12 @@ export default class StartPanel extends Panel {
onTap_startBtn() {
this.hidePanel();
this['startBtn'].enabled = false;
if (window['getRST']) window['getRST']();
try {
if (window['getRST']) window['getRST']();
} catch (error) {
console.warn(error)
}
hdGameDoDojoin((success) => {
this['startBtn'].enabled = true;
if (success) {
......
{"success":true,"code":"0000000000","desc":"OK","timestamp":1566558623308,"data":{"canReceiveTreasureBoxNum":0,"nextRangeStarsNum":25,"orderNum":"1078836456709300393","totalStars":12}}
\ No newline at end of file
{
"success": false,
"code": "0000000000",
"desc": "OK",
"timestamp": 1566558623308,
"data": {
"canReceiveTreasureBoxNum": 0,
"nextRangeStarsNum": 25,
"orderNum": "1078836456709300393",
"totalStars": 12
}
}
\ No newline at end of file
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