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
1e87ca3b
Commit
1e87ca3b
authored
Oct 17, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cb448830
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
21 additions
and
18 deletions
+21
-18
MapScene.ts
egret/src/mapScene/MapScene.ts
+2
-2
InviteCutTimePanel.ts
egret/src/panels/InviteCutTimePanel.ts
+1
-1
InvitePanel.ts
egret/src/panels/InvitePanel.ts
+1
-1
acceptInvitationPrize.json
mock/happyclear/acceptInvitationPrize.json
+14
-11
getInviteInfo.json
mock/happyclear/getInviteInfo.json
+3
-3
No files found.
egret/src/mapScene/MapScene.ts
View file @
1e87ca3b
...
...
@@ -448,7 +448,7 @@ export default class MapScene extends Scene {
if
(
!
success
)
{
return
;
}
console
.
log
(
res
.
data
);
//
console.log(res.data);
if
(
res
.
data
.
completeFlag
==
3
)
{
showToast
(
"哎呀,萌狮开小差啦!
\n
过会再来看吧!"
);
}
else
{
...
...
@@ -492,7 +492,7 @@ export default class MapScene extends Scene {
this
[
"inviteGroup"
].
visible
=
true
;
this
[
"inviteTipsBg"
].
visible
=
true
;
this
[
"inviteTips"
].
visible
=
true
;
this
.
cutTime
=
res
.
data
.
endTime
-
res
.
data
.
sysTime
+
1
000
;
this
.
cutTime
=
res
.
data
.
endTime
-
res
.
data
.
sysTime
+
5
000
;
if
(
this
.
timer
)
{
this
.
timer
.
stop
();
}
...
...
egret/src/panels/InviteCutTimePanel.ts
View file @
1e87ca3b
...
...
@@ -61,7 +61,7 @@ export default class InviteCutTimePanel extends Panel {
initUI
()
{
// 到第二天0点的倒计时
let
endTime
=
this
.
data
.
sysTime
+
86400000
-
((
this
.
data
.
sysTime
+
86400000
)
%
86400000
)
-
8
*
3600000
;
this
.
cutTime
=
endTime
-
this
.
data
.
sysTime
+
1
000
;
this
.
cutTime
=
endTime
-
this
.
data
.
sysTime
+
5
000
;
if
(
this
.
timer
){
this
.
timer
.
stop
();
}
...
...
egret/src/panels/InvitePanel.ts
View file @
1e87ca3b
...
...
@@ -102,7 +102,7 @@ export default class InvitePanel extends Panel {
this
.
list
.
itemRenderer
=
InviteItem
;
this
.
list
.
dataProvider
=
new
eui
.
ArrayCollection
(
this
.
data
.
invitationUser
);
this
.
cutTime
=
this
.
data
.
endTime
-
this
.
data
.
sysTime
+
1
000
;
this
.
cutTime
=
this
.
data
.
endTime
-
this
.
data
.
sysTime
+
5
000
;
if
(
this
.
timer
){
this
.
timer
.
stop
();
}
...
...
mock/happyclear/acceptInvitationPrize.json
View file @
1e87ca3b
{
"success"
:
true
,
"code"
:
null
,
"desc"
:
null
,
"timestamp"
:
15
66199822308
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
15
71227735841
,
"data"
:
{
"invitationId"
:
"活动id"
,
"img"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
,
"completeFlag"
:
1
,
"openPrizMsg"
:
"图片"
,
"prizeType"
:
"nickname"
,
"prizeName"
:
"nickname"
,
"prizeImg"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
,
"facePrice"
:
"avatar"
"invitationId"
:
null
,
"invitationCount"
:
null
,
"sysTime"
:
null
,
"endTime"
:
null
,
"completeFlag"
:
2
,
"openPrizMsg"
:
null
,
"prizeType"
:
"7"
,
"prizeName"
:
null
,
"prizeImg"
:
"//yun.dui88.com/images/201910/bvyb9owmne.gif"
,
"facePrice"
:
"duibaduiba"
,
"invitationUser"
:
null
}
}
\ No newline at end of file
mock/happyclear/getInviteInfo.json
View file @
1e87ca3b
...
...
@@ -7,8 +7,8 @@
"invitationId"
:
"活动id"
,
"invitationCount"
:
5
,
"img"
:
"http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg"
,
"sysTime"
:
15706
30215
000
,
"endTime"
:
15706728
0
0000
,
"sysTime"
:
15706
72800
000
,
"endTime"
:
15706728
1
0000
,
"invitationUser"
:
[
{
"nickname"
:
"nickname"
,
...
...
@@ -19,7 +19,7 @@
"avatar"
:
null
}
],
"completeFlag"
:
0
,
"completeFlag"
:
6
,
"openPrizeMsg"
:
"图片"
,
"prizeType"
:
"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