Commit f803c898 authored by 邱旭's avatar 邱旭

1

parent 17cd2519
......@@ -31,6 +31,10 @@ export default class HbRainIcon extends IconBase {
}
private call(success, res) {
if(success == undefined && res == undefined){
this.updateIcon();
return;
}
if(!success) {
if(res.code == "600054" || res.code == "600055") {
this.visible = false;
......
......@@ -25,7 +25,7 @@ export default class HbNoPrize extends Panel {
async start() {
super.start();
this.initUI();
// GDispatcher.dispatchEvent('updateHbRainIcon');
GDispatcher.dispatchEvent('updateHbRainIcon');
}
initUI() {
......
......@@ -27,7 +27,7 @@ export default class HbPrize extends Panel {
let str = `一共抢到<b>${this.data.score}</b>个红包`;
this.tipLabel.textFlow = (new HtmlTextParser).parser(str);
// GDispatcher.dispatchEvent('updateHbRainIcon');
GDispatcher.dispatchEvent('updateHbRainIcon');
}
updateOption(option: any) {
......
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