Commit e5ab954f authored by wildfirecode's avatar wildfirecode

1

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