Commit e6efb93b authored by 邱旭's avatar 邱旭

1

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