Commit 85e8f385 authored by wildfirecode's avatar wildfirecode

Merge branch 'dev' of gitlab2.dui88.com:wanghongyuan/xiaoxiaole into dev

parents 12585d44 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");
} }
......
...@@ -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
] ]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment