Commit e6efb93b authored by 邱旭's avatar 邱旭

1

parent 8b323578
...@@ -42,8 +42,8 @@ export default class IconBase { ...@@ -42,8 +42,8 @@ export default class IconBase {
public set visible(visible: boolean) { public set visible(visible: boolean) {
this.iconGroup.visible = visible; this.iconGroup.visible = visible;
this.iconBtn.visible = visible; this.iconBtn.visible = visible;
this.iconTipsBg.visible = visible; // this.iconTipsBg.visible = visible;
this.iconTips.visible = visible; // this.iconTips.visible = visible;
} }
public get position(): { x, y } { public get position(): { x, y } {
......
...@@ -31,13 +31,13 @@ export default class TurntableIcon extends IconBase { ...@@ -31,13 +31,13 @@ export default class TurntableIcon extends IconBase {
return; return;
} }
let data = res.data; let data = res.data;
this.visible = res.data.luckyDrawInfo.enable;
if (data.remainTimes > 0 || (getHomeData().wealth > data.nextTimeNeedCoin)) { if (data.remainTimes > 0 || (getHomeData().wealth > data.nextTimeNeedCoin)) {
this.tipsVisible = true; this.tipsVisible = true;
this.iconTips.text = "有优惠" this.iconTips.text = "有优惠"
} else { } else {
this.tipsVisible = false; this.tipsVisible = false;
} }
this.visible = res.data.luckyDrawInfo.enable;
if(!res.data.luckyDrawInfo.enable) if(!res.data.luckyDrawInfo.enable)
GDispatcher.dispatchEvent('updateScratchPosition'); 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