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
01136922
Commit
01136922
authored
Oct 14, 2019
by
wildfirecode
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
6c7f4446
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
31 deletions
+7
-31
FriendSkin.exml
egret/resource/skins/FriendSkin.exml
+2
-2
FriendPanel.ts
egret/src/panels/FriendPanel.ts
+4
-1
totalNumRank.json
mock/happyclear/totalNumRank.json
+1
-28
No files found.
egret/resource/skins/FriendSkin.exml
View file @
01136922
...
...
@@ -50,9 +50,9 @@
<e:Rect
id=
"avatarMask0"
width=
"60"
height=
"60"
y=
"0"
ellipseWidth=
"60"
ellipseHeight=
"60"
/>
</e:Group>
<e:Label
id=
"nameTxt0"
text=
"nickname"
y=
"245"
textColor=
"0x784325"
horizontalCenter=
"6.5"
/>
<e:Label
id=
"rankTxt"
text=
"
0
"
x=
"112"
y=
"311"
width=
"86"
textAlign=
"center"
verticalAlign=
"middle"
height=
"52"
size=
"48"
/>
<e:Label
id=
"rankTxt"
text=
"
-
"
x=
"112"
y=
"311"
width=
"86"
textAlign=
"center"
verticalAlign=
"middle"
height=
"52"
size=
"48"
/>
<e:Label
id=
"nameTxt"
text=
"-"
x=
"306"
y=
"307"
size=
"24"
/>
<e:Label
id=
"progress"
text=
"第
0
关"
x=
"306"
y=
"340.79"
size=
"24"
/>
<e:Label
id=
"progress"
text=
"第
1
关"
x=
"306"
y=
"340.79"
size=
"24"
/>
<e:Label
id=
"score"
text=
"分数:0分"
x=
"414"
y=
"340.79"
size=
"24"
anchorOffsetX=
"0"
anchorOffsetY=
"0"
/>
<e:Label
id=
"empty"
text=
"您还没有好友"
y=
"636"
textColor=
"0x784325"
horizontalCenter=
"6.5"
/>
</e:Skin>
\ No newline at end of file
egret/src/panels/FriendPanel.ts
View file @
01136922
...
...
@@ -22,7 +22,10 @@ export default class FriendPanel extends Panel {
this
.
list
.
visible
=
false
;
this
[
'empty'
].
visible
=
false
;
NetManager
.
ins
.
hc_totalNumRank
(()
=>
{
const
{
data
:
hc_totalNumRank
}
=
DataManager
.
ins
.
getData
(
'hc_totalNumRank'
);
let
{
data
:
hc_totalNumRank
}
=
DataManager
.
ins
.
getData
(
'hc_totalNumRank'
);
if
(
hc_totalNumRank
==
null
)
{
hc_totalNumRank
=
{}
}
const
{
rank
,
userRank
}
=
hc_totalNumRank
;
if
(
userRank
)
{
this
.
progress
.
textFlow
=
(
new
egret
.
HtmlTextParser
).
parser
(
...
...
mock/happyclear/totalNumRank.json
View file @
01136922
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571043800755
,
"data"
:
{
"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
},
"rank"
:
[
{
"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
}
]
}
}
\ No newline at end of file
{
"success"
:
true
,
"code"
:
"0000000000"
,
"desc"
:
"OK"
,
"timestamp"
:
1571055816178
,
"data"
:
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