Commit f5413af0 authored by wildfirecode's avatar wildfirecode

1

parent 821ba259
......@@ -16,6 +16,11 @@ export default class ScratchIcon extends IconBase {
constructor(name: string, group: eui.Group, btn: eui.Button, tipsBg?: eui.Image, tipsLabel?: eui.Label) {
super(name, group, btn, tipsBg, tipsLabel);
NetManager.ins.showLog(getlogItem(49));
GDispatcher.addEvent('updateScratchPosition',this.updateScratchPosition,this)
}
updateScratchPosition(){
this['iconGroup'].y = 318;
}
protected start() {
......
......@@ -27,6 +27,7 @@ export default class TurntableIcon extends IconBase {
NetManager.ins.clickLog(getlogItem(43));
if(!success){
this.visible = false;
GDispatcher.dispatchEvent('updateScratchPosition');
return;
}
let data = res.data;
......@@ -37,6 +38,8 @@ export default class TurntableIcon extends IconBase {
this.tipsVisible = false;
}
this.visible = res.data.luckyDrawInfo.enable;
if(!res.data.luckyDrawInfo.enable)
GDispatcher.dispatchEvent('updateScratchPosition');
})
}
......
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