Commit 3085d624 authored by wildfirecode's avatar wildfirecode

1

parent 455e2c75
<?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">
<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 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">
......
......@@ -2,6 +2,7 @@ import Panel from "../../libs/new_wx/components/Panel";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "../Main";
import { DataManager } from "../../libs/tw/manager/DataManager";
import AdSmallComp from "../mapScene/AdSmallComp";
export default class BoxPanel extends Panel {
start(data) {
......@@ -14,11 +15,22 @@ export default class BoxPanel extends Panel {
// this.data.img = DataManager.ins.getData('getPlugOrderStatus').lottery.imgurl;
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() {
NetManager.ins.showLog(getlogItem(17));
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['close2Btn']] }
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