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
b63a1a3a
Commit
b63a1a3a
authored
Oct 29, 2019
by
邱旭
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1f6fcf65
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ScratchPanel.ts
egret/src/panels/ScratchPanel.ts
+5
-1
scratchGetTaskInfo.json
mock/happyclear/scratchGetTaskInfo.json
+1
-1
No files found.
egret/src/panels/ScratchPanel.ts
View file @
b63a1a3a
...
@@ -91,7 +91,11 @@ export default class ScratchPanel extends Panel {
...
@@ -91,7 +91,11 @@ export default class ScratchPanel extends Panel {
}
}
// 添加邀请图标
// 添加邀请图标
let
dNum
=
this
.
data
.
totalNeedCount
-
this
.
data
.
avatarList
.
length
;
let
noAvatarNum
=
this
.
data
.
helpedCount
-
this
.
data
.
avatarList
.
length
;
// 没有头像的人数
let
dNum
=
this
.
data
.
totalNeedCount
-
this
.
data
.
avatarList
.
length
-
noAvatarNum
;
// 没邀请的人数
for
(
let
i
=
0
;
i
<
noAvatarNum
;
i
++
){
this
.
data
.
avatarList
.
push
(
""
);
}
for
(
let
i
=
0
;
i
<
dNum
;
i
++
)
{
for
(
let
i
=
0
;
i
<
dNum
;
i
++
)
{
this
.
data
.
avatarList
.
push
(
"scratch_invite_png"
);
this
.
data
.
avatarList
.
push
(
"scratch_invite_png"
);
}
}
...
...
mock/happyclear/scratchGetTaskInfo.json
View file @
b63a1a3a
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
"completePercent"
:
"91.0"
,
"completePercent"
:
"91.0"
,
"remainPercent"
:
"9.0"
,
"remainPercent"
:
"9.0"
,
"totalNeedCount"
:
3
,
"totalNeedCount"
:
3
,
"helpedCount"
:
1
,
"helpedCount"
:
2
,
"avatarList"
:
[
"avatarList"
:
[
null
null
]
]
...
...
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