Commit e5ab954f authored by wildfirecode's avatar wildfirecode

1

parent 6721f7bd
......@@ -322,6 +322,8 @@ export default class MainBase extends eui.UILayer {
this.hcHome(),
]);
MapScene.adData = DataManager.ins.getData('hc_advert');
Buried.init();
SceneCtrl.instance.change(ModuleTypes.START_SCENE, this.svgaList);
......
import ComponentBase from "../../libs/new_wx/components/ComponentBase";
import { NetManager } from "../../libs/tw/manager/NetManager";
export default class AdSmallComp extends ComponentBase {
start(data?) {
this.touchEnabled=this.touchChildren=false;
super.start(data);
NetManager.ins.hc_advert(()=>{
this.data.img = ''
})
}
get skinKey(): string { return 'ADSmall' }
......
......@@ -22,6 +22,7 @@ import AvatarComp from "./AvatarComp";
export default class MapScene extends Scene {
static adData;
scrollGroup: eui.Group;
scroll: eui.Scroller;
topPart: MapTopPart;
......@@ -34,6 +35,7 @@ export default class MapScene extends Scene {
super.start();
this.updateAdData();
this['avatar'].mask = this['avatarMask'];
setTimeout(() => {
......@@ -183,6 +185,15 @@ export default class MapScene extends Scene {
}
}
updateAdData(){
// if(){
// this['adBtn'].visible=false;
// }
// this['adBtn'].source = '';
this['adBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP,()=>{
// window.location.href = '';
},this);
}
destroy() {
super.destroy();
......
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