Commit f803c898 authored by 邱旭's avatar 邱旭

1

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