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
9503f907
Commit
9503f907
authored
Oct 18, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
56926ef4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
9 deletions
+6
-9
MapScene.ts
egret/src/mapScene/MapScene.ts
+4
-7
acceptInvitationPrize.json
mock/happyclear/acceptInvitationPrize.json
+1
-1
getInviteInfo.json
mock/happyclear/getInviteInfo.json
+1
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
9503f907
...
@@ -523,24 +523,21 @@ export default class MapScene extends Scene {
...
@@ -523,24 +523,21 @@ export default class MapScene extends Scene {
return
;
return
;
}
}
let
flag
=
res
.
data
.
completeFlag
;
let
flag
=
res
.
data
.
completeFlag
;
if
(
this
.
timer
)
{
this
.
timer
.
stop
();
}
switch
(
true
)
{
switch
(
true
)
{
case
(
flag
==
0
):
// 未完成 显示倒计时
case
(
flag
==
0
):
// 未完成 显示倒计时
this
[
"inviteGroup"
].
visible
=
true
;
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
+
5000
;
this
.
cutTime
=
res
.
data
.
endTime
-
res
.
data
.
sysTime
+
5000
;
if
(
this
.
timer
)
{
this
.
timer
.
stop
();
}
this
.
timer
=
new
egret
.
Timer
(
1000
,
0
);
this
.
timer
=
new
egret
.
Timer
(
1000
,
0
);
this
.
timer
.
addEventListener
(
egret
.
TimerEvent
.
TIMER
,
this
.
cutTimer
,
this
);
this
.
timer
.
addEventListener
(
egret
.
TimerEvent
.
TIMER
,
this
.
cutTimer
,
this
);
this
.
timer
.
start
();
this
.
timer
.
start
();
this
.
cutTimer
();
this
.
cutTimer
();
break
;
break
;
case
(
flag
==
1
):
// 完成未开奖 待领奖 显示待领奖
case
(
flag
==
1
):
// 完成未开奖 待领奖 显示待领奖
if
(
this
.
timer
)
{
this
.
timer
.
stop
();
}
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteTipsBg"
].
visible
=
true
;
this
[
"inviteTipsBg"
].
visible
=
true
;
this
[
"inviteTips"
].
visible
=
true
;
this
[
"inviteTips"
].
visible
=
true
;
...
@@ -558,7 +555,7 @@ export default class MapScene extends Scene {
...
@@ -558,7 +555,7 @@ export default class MapScene extends Scene {
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
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteTipsBg"
].
visible
=
false
;
this
[
"inviteTipsBg"
].
visible
=
false
;
this
[
"inviteTips"
].
visible
=
false
;
this
[
"inviteTips"
].
visible
=
false
;
...
...
mock/happyclear/acceptInvitationPrize.json
View file @
9503f907
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
"invitationCount"
:
null
,
"invitationCount"
:
null
,
"sysTime"
:
null
,
"sysTime"
:
null
,
"endTime"
:
null
,
"endTime"
:
null
,
"completeFlag"
:
3
,
"completeFlag"
:
2
,
"openPrizMsg"
:
null
,
"openPrizMsg"
:
null
,
"prizeType"
:
"7"
,
"prizeType"
:
"7"
,
"prizeName"
:
null
,
"prizeName"
:
null
,
...
...
mock/happyclear/getInviteInfo.json
View file @
9503f907
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
"avatar"
:
null
"avatar"
:
null
}
}
],
],
"completeFlag"
:
1
,
"completeFlag"
:
6
,
"openPrizeMsg"
:
"图片"
,
"openPrizeMsg"
:
"图片"
,
"prizeType"
:
"nickname"
,
"prizeType"
:
"nickname"
,
"prizeName"
:
"nickname"
,
"prizeName"
:
"nickname"
,
...
...
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