Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaole
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wildfirecode13
xiaoxiaole
Commits
f1fb1b46
Commit
f1fb1b46
authored
Oct 16, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c6a384b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
MapScene.ts
egret/src/mapScene/MapScene.ts
+8
-0
No files found.
egret/src/mapScene/MapScene.ts
View file @
f1fb1b46
...
@@ -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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment