Commit 3085d624 authored by wildfirecode's avatar wildfirecode

1

parent 455e2c75
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<e:Skin class="BoxSkin" width="750" height="1205" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing"> <e:Skin class="BoxSkin" width="750" height="1205" xmlns:e="http://ns.egret.com/eui" xmlns:w="http://ns.egret.com/wing">
<w:Config id="16cc233ca3b"/> <w:Config id="16cc233ca3b"/>
<e:Component y="739.52" skinName="ADSmallSkin" horizontalCenter="0"/> <e:Component y="739.52" skinName="ADSmallSkin" x="84" visible="false"/>
<e:Image source="boxbg_png" y="33.76" horizontalCenter="0"/> <e:Image source="boxbg_png" y="33.76" horizontalCenter="0"/>
<e:Image id="img" y="355" touchEnabled="true" source="{data.img}" width="512" height="240" scaleX="0.9" scaleY="0.9" horizontalCenter="0"/> <e:Image id="img" y="355" touchEnabled="true" source="{data.img}" width="512" height="240" scaleX="0.9" scaleY="0.9" horizontalCenter="0"/>
<e:Button id="closeBtn" label="" x="604.96" y="190.84"> <e:Button id="closeBtn" label="" x="604.96" y="190.84">
......
...@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel"; ...@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel";
import { NetManager } from "../../libs/tw/manager/NetManager"; import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "../Main"; import { getlogItem } from "../Main";
import { DataManager } from "../../libs/tw/manager/DataManager"; import { DataManager } from "../../libs/tw/manager/DataManager";
import AdSmallComp from "../mapScene/AdSmallComp";
export default class BoxPanel extends Panel { export default class BoxPanel extends Panel {
start(data) { start(data) {
...@@ -14,11 +15,22 @@ export default class BoxPanel extends Panel { ...@@ -14,11 +15,22 @@ export default class BoxPanel extends Panel {
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl; // this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
const itemid = DataManager.ins.getData('getPlugOrderStatus').lottery.itemId; const itemid = DataManager.ins.getData('getPlugOrderStatus').lottery.itemId;
this.data.img = `http://yun.duiba.com.cn/db_games/1014/${itemid}.png`; this.data.img = `http://yun.duiba.com.cn/db_games/09302/${itemid}.png`;
addAdComp(84,739,this)
} }
showlog() { showlog() {
NetManager.ins.showLog(getlogItem(17)); NetManager.ins.showLog(getlogItem(17));
} }
protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['close2Btn']] } protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['close2Btn']] }
get skinKey() { return 'Box' } get skinKey() { return 'Box' }
} }
\ No newline at end of file
export const addAdComp = (x,y,parent:egret.DisplayObjectContainer)=>{
const comp = new AdSmallComp();
comp.loadSkin();
comp.start();
parent.addChildAt(comp,0);
comp.x=x;
comp.y=y;
}
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