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
354ae77c
Commit
354ae77c
authored
Oct 14, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6c421aec
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
101 additions
and
73 deletions
+101
-73
FriendPanel.ts
egret/src/panels/FriendPanel.ts
+8
-8
totalNumRank copy.json
mock/happyclear/totalNumRank copy.json
+74
-0
totalNumRank.json
mock/happyclear/totalNumRank.json
+19
-65
No files found.
egret/src/panels/FriendPanel.ts
View file @
354ae77c
...
...
@@ -23,20 +23,20 @@ export default class FriendPanel extends Panel {
this
[
'empty'
].
visible
=
false
;
NetManager
.
ins
.
hc_totalNumRank
(()
=>
{
const
{
data
:
hc_totalNumRank
}
=
DataManager
.
ins
.
getData
(
'hc_totalNumRank'
);
const
{
list
,
user
}
=
hc_totalNumRank
;
if
(
user
)
{
const
{
rank
,
userRank
}
=
hc_totalNumRank
;
if
(
user
Rank
)
{
this
.
progress
.
textFlow
=
(
new
egret
.
HtmlTextParser
).
parser
(
`第<font color=0xfff000><b>
${
user
.
levelNum
}
</b></font>关`
);
`第<font color=0xfff000><b>
${
user
Rank
.
levelNum
}
</b></font>关`
);
this
.
score
.
textFlow
=
(
new
egret
.
HtmlTextParser
).
parser
(
`<font color=0xfff000><b>
${
user
.
maxScore
}
</b></font>分`
);
this
[
'rankTxt'
].
text
=
user
.
rank
this
[
'star'
].
text
=
`X
${
user
.
stars
}
`
`<font color=0xfff000><b>
${
user
Rank
.
maxScore
}
</b></font>分`
);
this
[
'rankTxt'
].
text
=
user
Rank
.
rank
this
[
'star'
].
text
=
`X
${
user
Rank
.
stars
}
`
}
if
(
list
&&
list
.
length
>
0
)
{
if
(
rank
&&
rank
.
length
>
0
)
{
this
.
list
.
visible
=
true
;
this
[
'empty'
].
visible
=
false
;
const
ac
=
new
eui
.
ArrayCollection
(
list
);
const
ac
=
new
eui
.
ArrayCollection
(
rank
);
this
.
list
.
dataProvider
=
ac
;
}
else
{
this
.
list
.
visible
=
false
;
...
...
mock/happyclear/totalNumRank copy.json
0 → 100644
View file @
354ae77c
{
"success"
:
true
,
"code"
:
null
,
"desc"
:
null
,
"timestamp"
:
1566199822308
,
"data"
:
{
"user"
:
{
"levelNum"
:
555
,
"nickName"
:
"奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
666
,
"maxScore"
:
1234567
,
"rank"
:
123
},
"list"
:[
{
"levelNum"
:
11
,
"nickName"
:
"1奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
11
,
"maxScore"
:
111111
,
"rank"
:
1
},
{
"levelNum"
:
22
,
"nickName"
:
"2奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
22
,
"maxScore"
:
222222
,
"rank"
:
2
},
{
"levelNum"
:
33
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
33
,
"maxScore"
:
33333
,
"rank"
:
3
},
{
"levelNum"
:
44
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
44
,
"maxScore"
:
4444444
,
"rank"
:
4
},
{
"levelNum"
:
55
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
55
,
"maxScore"
:
1234567
,
"rank"
:
5
},
{
"levelNum"
:
55
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
55
,
"maxScore"
:
1234567
,
"rank"
:
5
},
{
"levelNum"
:
9999
,
"nickName"
:
"99奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
55
,
"maxScore"
:
1234567
,
"rank"
:
999
}
]
}
}
\ No newline at end of file
mock/happyclear/totalNumRank.json
View file @
354ae77c
{
"success"
:
true
,
"code"
:
null
,
"desc"
:
null
,
"timestamp"
:
15
66199822308
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
15
71043800755
,
"data"
:
{
"user"
:
{
"levelNum"
:
555
,
"nickName"
:
"奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
666
,
"maxScore"
:
1234567
,
"rank"
:
123
"userRank"
:
{
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
83
,
"maxScore"
:
7220
,
"rank"
:
1
,
"levelNum"
:
32
,
"consumerId"
:
1539361
},
"
list"
:
[
"
rank"
:
[
{
"levelNum"
:
11
,
"nickName"
:
"1奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
11
,
"maxScore"
:
111111
,
"rank"
:
1
},
{
"levelNum"
:
22
,
"nickName"
:
"2奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
22
,
"maxScore"
:
222222
,
"rank"
:
2
},
{
"levelNum"
:
33
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
33
,
"maxScore"
:
33333
,
"rank"
:
3
},
{
"levelNum"
:
44
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
44
,
"maxScore"
:
4444444
,
"rank"
:
4
},
{
"levelNum"
:
55
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
55
,
"maxScore"
:
1234567
,
"rank"
:
5
},
{
"levelNum"
:
55
,
"nickName"
:
"3奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
55
,
"maxScore"
:
1234567
,
"rank"
:
5
},
{
"levelNum"
:
9999
,
"nickName"
:
"99奈何本人没文化,一句卧槽行天下"
,
"avatar"
:
"http://yun.dui88.com/images/201604/c6s5l4dgea.jpg"
,
"stars"
:
55
,
"maxScore"
:
1234567
,
"rank"
:
999
"nickName"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"avatar"
:
"https://wx.qlogo.cn/mmopen/vi_32/5icsJibet91SjpqD2GygMAA5twUoqVTiaOqS3NQNia0Jbuia2fZxlh03AIyiaaVTRRKOxo1Ym17icjBBkiaMhicv3zhXgRQ/132"
,
"stars"
:
83
,
"maxScore"
:
7220
,
"rank"
:
1
,
"levelNum"
:
32
,
"consumerId"
:
1539361
}
]
}
...
...
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