Commit f1fb1b46 authored by 邱旭's avatar 邱旭

1

parent c6a384b2
......@@ -487,6 +487,7 @@ export default class MapScene extends Scene {
let flag = res.data.completeFlag;
switch(true) {
case (flag == 0): // 未完成 显示倒计时
this["inviteGroup"].visible = true;
this["inviteTipsBg"].visible = true;
this["inviteTips"].visible = true;
this.cutTime = res.data.endTime - res.data.sysTime + 1000;
......@@ -499,24 +500,31 @@ export default class MapScene extends Scene {
this.cutTimer();
break;
case (flag == 1): // 完成未开奖 待领奖 显示待领奖
this["inviteGroup"].visible = true;
this["inviteTipsBg"].visible = true;
this["inviteTips"].visible = true;
this["inviteTips"].text = "待领奖";
break;
case (flag == 2): // 领奖成功 无角标
case (flag == 3): // 领奖失败 无角标
this["inviteGroup"].visible = true;
this["inviteTipsBg"].visible = false;
this["inviteTips"].visible = false;
break;
case (flag == 4): // 可以开启下一次发任务 显示立即到账
this["inviteGroup"].visible = true;
this["inviteTipsBg"].visible = true;
this["inviteTips"].visible = true;
this["inviteTips"].text = "立即到账";
break;
case (flag == 5): // 可以开启下一次发任务 显示立即到账
this["inviteGroup"].visible = true;
this["inviteTipsBg"].visible = false;
this["inviteTips"].visible = false;
break;
case (flag == 6): // 可以开启下一次发任务 显示立即到账
this["inviteGroup"].visible = false;
break;
default:
break;
}
......
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