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
a85f2a68
Commit
a85f2a68
authored
Oct 14, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
552e2862
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
36 deletions
+39
-36
StartPanel.ts
egret/src/panels/StartPanel.ts
+8
-6
levelNumRank copy.json
mock/happyclear/levelNumRank copy.json
+30
-0
levelNumRank.json
mock/happyclear/levelNumRank.json
+1
-30
No files found.
egret/src/panels/StartPanel.ts
View file @
a85f2a68
...
@@ -32,13 +32,15 @@ export default class StartPanel extends Panel {
...
@@ -32,13 +32,15 @@ export default class StartPanel extends Panel {
this
[
'empty'
].
visible
=
false
;
this
[
'empty'
].
visible
=
false
;
NetManager
.
ins
.
hc_levelNumRank
(()
=>
{
NetManager
.
ins
.
hc_levelNumRank
(()
=>
{
let
{
data
:
friends
}
=
DataManager
.
ins
.
getData
(
'hc_levelNumRank'
);
let
friends
=
DataManager
.
ins
.
getData
(
'hc_levelNumRank'
).
data
;
if
(
friends
==
null
)
friends
=
{
rank
:
[]
};
friends
=
friends
.
rank
;
friends
=
friends
.
rank
;
if
(
friends
&&
friends
.
length
>
0
)
{
if
(
friends
&&
friends
.
length
>
0
)
{
this
.
friendlist
.
visible
=
true
;
this
.
friendlist
.
visible
=
true
;
if
(
friends
.
length
>
5
)
if
(
friends
.
length
>
5
)
friends
.
length
=
5
;
friends
.
length
=
5
;
friends
.
forEach
((
ele
,
index
)
=>
{
friends
.
forEach
((
ele
,
index
)
=>
{
ele
.
rank
=
index
+
1
;
ele
.
rank
=
index
+
1
;
});
});
const
ac
=
new
eui
.
ArrayCollection
(
friends
);
const
ac
=
new
eui
.
ArrayCollection
(
friends
);
...
...
mock/happyclear/levelNumRank copy.json
0 → 100644
View file @
a85f2a68
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571044339755
,
"data"
:
{
"levelNum"
:
1
,
"rank"
:
[
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
3
,
"maxScore"
:
31940
,
"rank"
:
null
,
"levelNum"
:
null
,
"consumerId"
:
null
}
,
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
3
,
"maxScore"
:
31940
,
"rank"
:
null
,
"levelNum"
:
null
,
"consumerId"
:
null
}
]
}
}
\ No newline at end of file
mock/happyclear/levelNumRank.json
View file @
a85f2a68
{
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571045294822
,
"data"
:
null
}
"success"
:
true
,
\ No newline at end of file
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571044339755
,
"data"
:
{
"levelNum"
:
1
,
"rank"
:
[
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
3
,
"maxScore"
:
31940
,
"rank"
:
null
,
"levelNum"
:
null
,
"consumerId"
:
null
}
,
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
3
,
"maxScore"
:
31940
,
"rank"
:
null
,
"levelNum"
:
null
,
"consumerId"
:
null
}
]
}
}
\ No newline at end of file
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