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
717641f4
Commit
717641f4
authored
Oct 14, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
c28b5656
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-1
InviteCutTimePanel.ts
egret/src/panels/InviteCutTimePanel.ts
+3
-0
InvitePanel.ts
egret/src/panels/InvitePanel.ts
+3
-1
No files found.
egret/src/mapScene/MapScene.ts
View file @
717641f4
...
...
@@ -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
();
...
...
egret/src/panels/InviteCutTimePanel.ts
View file @
717641f4
...
...
@@ -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
();
...
...
egret/src/panels/InvitePanel.ts
View file @
717641f4
...
...
@@ -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
();
...
...
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