Commit 717641f4 authored by 邱旭's avatar 邱旭

1

parent c28b5656
......@@ -462,7 +462,9 @@ export default class MapScene extends Scene {
this["inviteTipsBg"].visible = true;
this["inviteTips"].visible = true;
this.cutTime = res.data.endTime - res.data.sysTime + 1000;
console.log(this.cutTime);
if(this.timer){
this.timer.stop();
}
this.timer = new egret.Timer(1000, 0);
this.timer.addEventListener(egret.TimerEvent.TIMER, this.cutTimer, this);
this.timer.start();
......
......@@ -62,6 +62,9 @@ export default class InviteCutTimePanel extends Panel {
// 到第二天0点的倒计时
let endTime = this.data.sysTime + 86400000 - ((this.data.sysTime + 86400000) % 86400000) - 8 * 3600000;
this.cutTime = endTime - this.data.sysTime + 1000;
if(this.timer){
this.timer.stop();
}
this.timer = new egret.Timer(1000, 0);
this.timer.addEventListener(egret.TimerEvent.TIMER, this.cutTimer, this);
this.timer.start();
......
......@@ -100,7 +100,9 @@ export default class InvitePanel extends Panel {
this.list.dataProvider = new eui.ArrayCollection(this.data.invitationUser);
this.cutTime = this.data.endTime - this.data.sysTime + 1000;
if(this.timer){
this.timer.stop();
}
this.timer = new egret.Timer(1000, 0);
this.timer.addEventListener(egret.TimerEvent.TIMER, this.cutTimer, this);
this.timer.start();
......
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