Commit d492d1f2 authored by wildfirecode's avatar wildfirecode

口令化

parent e266d867
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<e:Image id="light1" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296"/> <e:Image id="light1" source="invitebg2_png" x="376" y="317" anchorOffsetX="356" anchorOffsetY="296"/>
<e:Image y="241.33" horizontalCenter="0" source="invite_bg_png"/> <e:Image y="241.33" horizontalCenter="0" source="invite_bg_png"/>
<e:Group id="con" y="-67"/> <e:Group id="con" y="-67"/>
<e:Label text="邀请好友闯关可得现金券!" y="381.33" textColor="0xF54500" size="28" horizontalCenter="0" fontFamily="FZY3JW"/> <e:Label text="邀请新玩家闯关可得现金券!" y="381.33" textColor="0xF54500" size="28" horizontalCenter="0" fontFamily="FZY3JW"/>
<e:Image id="prizeImg" y="439.33" horizontalCenter="0.5" source="" width="510" height="228"/> <e:Image id="prizeImg" y="439.33" horizontalCenter="0.5" source="" width="510" height="228"/>
<e:Button id="closeBtn" label="" x="605" y="227.33"> <e:Button id="closeBtn" label="" x="605" y="227.33">
<e:skinName> <e:skinName>
......
...@@ -140,7 +140,7 @@ export default class ScratchPanel extends Panel { ...@@ -140,7 +140,7 @@ export default class ScratchPanel extends Panel {
this.data.avatarList.push("scratch_invite_png"); this.data.avatarList.push("scratch_invite_png");
} }
// 添加假用户 // 添加假用户
this.data.avatarList.unshift("scratch_user1_png", "scratch_user2_png"); // this.data.avatarList.unshift("scratch_user1_png", "scratch_user2_png");
// 创建渲染列表 // 创建渲染列表
let rendererList = []; let rendererList = [];
...@@ -182,7 +182,9 @@ export default class ScratchPanel extends Panel { ...@@ -182,7 +182,9 @@ export default class ScratchPanel extends Panel {
progress = 0; progress = 0;
} }
this['numLabel'].textFlow = (new HtmlTextParser).parser(`共<b>${2 + this.data.helpedCount}</b>位好友帮你刮了<b>${progress.toFixed(2)}</b>%`); this['numLabel'].textFlow = (new HtmlTextParser).parser(
`再邀请${this.data.totalNeedCount-this.data.helpedCount }位好友助力可得现金券`
);
this["progressLabel"].textFlow = (new HtmlTextParser).parser(`仅剩<b>${(100 - progress).toFixed(2)}</b>%`); // 进度条文字 this["progressLabel"].textFlow = (new HtmlTextParser).parser(`仅剩<b>${(100 - progress).toFixed(2)}</b>%`); // 进度条文字
let _width = this["progressBg"].width * progress / 100; // 宽度 let _width = this["progressBg"].width * progress / 100; // 宽度
let dProgress = Math.abs(progress - this["progress"].width / this["progressBg"].width); // 比当前进度的差值的绝对值 let dProgress = Math.abs(progress - this["progress"].width / this["progressBg"].width); // 比当前进度的差值的绝对值
......
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
"prizeImage": "//yun.dui88.com/images/201910/gxqaecxymq.jpg", "prizeImage": "//yun.dui88.com/images/201910/gxqaecxymq.jpg",
"currentTime": 1572427313215, "currentTime": 1572427313215,
"endTime": 1572513706000, "endTime": 1572513706000,
"completePercent": "99", "completePercent": "90",
"remainPercent": "9.0", "remainPercent": "9.0",
"totalNeedCount": 1, "totalNeedCount": 3,
"helpedCount": 0, "helpedCount": 1,
"avatarList": [] "avatarList": []
} }
} }
\ No newline at end of file
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