Commit 34df3590 authored by 邱旭's avatar 邱旭

1

parent 86c6500f
...@@ -22,7 +22,8 @@ export default class HbGame extends Panel { ...@@ -22,7 +22,8 @@ export default class HbGame extends Panel {
private rainMgr: RainMgr = null; private rainMgr: RainMgr = null;
private cutTime: egret.Timer = null; private cutTime: egret.Timer = null;
private time: number = 0;
private time: number = 8;
private score = 0; private score = 0;
private scoreLabelStr = 0; private scoreLabelStr = 0;
...@@ -42,8 +43,6 @@ export default class HbGame extends Panel { ...@@ -42,8 +43,6 @@ export default class HbGame extends Panel {
this.rainGroup.height = this.width / window.innerWidth * window.innerHeight; this.rainGroup.height = this.width / window.innerWidth * window.innerHeight;
this.tipLabel.textFlow = (new HtmlTextParser).parser(`抢到<b>${15}</b>个红包才有奖励哦~`); this.tipLabel.textFlow = (new HtmlTextParser).parser(`抢到<b>${15}</b>个红包才有奖励哦~`);
this.time = 30;
this.cutTimeLabel.text = `${this.time}` this.cutTimeLabel.text = `${this.time}`
} }
......
...@@ -3,6 +3,8 @@ import getHomeData from "../../getHomeData"; ...@@ -3,6 +3,8 @@ import getHomeData from "../../getHomeData";
import { changeMapScene } from "../../startScene/StartScene"; import { changeMapScene } from "../../startScene/StartScene";
import { GDispatcher } from "../../../libs/tc/util/GDispatcher"; import { GDispatcher } from "../../../libs/tc/util/GDispatcher";
import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl"; import PanelCtrl from "../../../libs/new_wx/ctrls/panelCtrl";
import SceneCtrl from "../../../libs/new_wx/ctrls/sceneCtrl";
import { NetManager } from "../../../libs/tw/manager/NetManager";
/** /**
* 红包雨奖励 * 红包雨奖励
...@@ -44,6 +46,9 @@ export default class HbPrize extends Panel { ...@@ -44,6 +46,9 @@ 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