Commit fbaaf484 authored by 邱旭's avatar 邱旭

1

parent 58c5a2ac
import IconBase from "./IconBase"; import IconBase from "./IconBase";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher"; import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import { NetManager } from "../../../libs/tw/manager/NetManager";
export default class HbRainIcon extends IconBase { export default class HbRainIcon extends IconBase {
...@@ -11,7 +12,16 @@ export default class HbRainIcon extends IconBase { ...@@ -11,7 +12,16 @@ export default class HbRainIcon extends IconBase {
protected start() { protected start() {
super.start(); super.start();
this.updateIcon();
}
private updateIcon() {
NetManager.ins.hbRainBaseInfo((success, res) => {
if(!success) {
this.visible = false;
return;
}
})
} }
/** /**
......
...@@ -15,6 +15,6 @@ ...@@ -15,6 +15,6 @@
} }
}, },
"desc": "OK", "desc": "OK",
"success": true, "success": false,
"timestamp": 157292100000 "timestamp": 157292100000
} }
\ No newline at end of file
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