Commit f1fb1b46 authored by 邱旭's avatar 邱旭

1

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