Commit bd31a6b1 authored by 邱旭's avatar 邱旭

1

parent c244fd08
...@@ -6,6 +6,7 @@ import { NetManager } from "../../../libs/tw/manager/NetManager"; ...@@ -6,6 +6,7 @@ import { NetManager } from "../../../libs/tw/manager/NetManager";
import { DataManager } from "../../../libs/tw/manager/DataManager"; import { DataManager } from "../../../libs/tw/manager/DataManager";
import { NetName } from "../../../libs/tw/enum/NetName"; import { NetName } from "../../../libs/tw/enum/NetName";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import SceneCtrl from "../../../libs/new_wx/ctrls/sceneCtrl";
/** /**
* 红包雨主游戏 * 红包雨主游戏
...@@ -66,6 +67,9 @@ export default class HbGame extends Panel { ...@@ -66,6 +67,9 @@ export default class HbGame extends Panel {
private hbDoJoin() { private hbDoJoin() {
let session = DataManager.ins.getData(NetName.HBRAIN_BASEINFO).data.currentSession.sessionIndex; let session = DataManager.ins.getData(NetName.HBRAIN_BASEINFO).data.currentSession.sessionIndex;
NetManager.ins.hbRainDoJoin((success, res) => { NetManager.ins.hbRainDoJoin((success, res) => {
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
const data = res.data; const data = res.data;
const code = res.code; const code = res.code;
if(!success) { if(!success) {
......
...@@ -46,9 +46,6 @@ export default class HbPrize extends Panel { ...@@ -46,9 +46,6 @@ export default class HbPrize extends Panel {
this['numsgroup'].visible = true; this['numsgroup'].visible = true;
this['money'].visible = true; this['money'].visible = true;
this['propnums'].text = 'x' + realValue; this['propnums'].text = 'x' + realValue;
NetManager.ins.hc_home(() => {
SceneCtrl.instance.updateScene();
}, window['collectRuleId']);
break; break;
default: default:
this['img'].visible = true; this['img'].visible = true;
......
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