Commit 91f7676e authored by 邱旭's avatar 邱旭

1

parent 771f27cc
This diff is collapsed.
......@@ -81,7 +81,7 @@
"name": "signprize"
},
{
"keys": "toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png,exchangebtn_png,turnnoprize再来一次2_png",
"keys": "toast_png,share_btn2_png,share_btn1_png,prizePanelbg_png,nums2_png,nums2_fnt,nums_png,nums_fnt,lightani_png,common_yuanbao_png,common_prizelight_png,common_adbg_png,commmon_okbtn1_png,closeCommonBtn_png,btn_png,alertbg_png,朋友圈中间分享蒙层1_jpg,按钮 副本 4_png,按钮 副本 3_png,exchangebtn_png,turnnoprize再来一次2_png,FZY3JW_1_TTF,FZY4JW_TTF",
"name": "common"
},
{
......@@ -2849,9 +2849,14 @@
"name": "eyeDownRight_png"
},
{
"url": "assets/common/HuaKang_YuanTi_W5.TTF",
"url": "assets/common/FZY3JW_1.TTF",
"type": "bin",
"name": "HuaKang_YuanTi_W5_TTF"
"name": "FZY3JW_1_TTF"
},
{
"url": "assets/common/FZY4JW.TTF",
"type": "bin",
"name": "FZY4JW_TTF"
}
]
}
\ No newline at end of file
......@@ -17,4 +17,6 @@
<e:Image source="头顶树丛_png" x="0" y="0"/>
<e:Label id="tips" text="正在加载中,请稍后" y="993" textColor="0x244b00" horizontalCenter="0" size="24"/>
<e:Label id="percentTxt" text="63%" y="1110" textColor="0x244B00" horizontalCenter="0.5"/>
<e:Label text=" " y="1186" textColor="0x244B00" horizontalCenter="0.5" fontFamily="FZYTW3"/>
<e:Label text=" " y="1186" textColor="0x244B00" horizontalCenter="0.5" fontFamily="FZYTW4"/>
</e:Skin>
\ No newline at end of file
......@@ -93,7 +93,7 @@ export default class ScratchPanel extends Panel {
// 添加邀请图标
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++){
for(let i = 0; i < noAvatarNum; i++) {
this.data.avatarList.push("");
}
for(let i = 0; i < dNum; i++) {
......@@ -141,7 +141,7 @@ export default class ScratchPanel extends Panel {
} else if(progress < 0) {
progress = 0;
}
this['numLabel'].text = `共${this.data.avatarList.length}位好友帮你刮了${progress.toFixed(2)}%`;
this['numLabel'].text = `共${2 + this.data.helpedCount}位好友帮你刮了${progress.toFixed(2)}%`;
this["progressLabel"].text = `仅剩${(100 - progress).toFixed(2)}%`; // 进度条文字
let _width = this["progressBg"].width * progress / 100; // 宽度
let dProgress = Math.abs(progress - this["progress"].width / this["progressBg"].width); // 比当前进度的差值的绝对值
......
......@@ -2,19 +2,17 @@
"success": true,
"code": "0000000000",
"desc": "OK",
"timestamp": 1572318933388,
"timestamp": 1572405066301,
"data": {
"scratchCardTaskId": 1,
"taskStatus": 1,
"prizeImage": "//yun.dui88.com/images/201910/e6pmpk2pne.png",
"currentTime": 1572318933366,
"endTime": 1572358710000,
"prizeImage": "//yun.dui88.com/images/201910/9u6nk8sjt8.jpg",
"currentTime": 1572405066290,
"endTime": 1572491337000,
"completePercent": "91.0",
"remainPercent": "9.0",
"totalNeedCount": 3,
"helpedCount": 2,
"avatarList": [
null
]
"totalNeedCount": 1,
"helpedCount": 0,
"avatarList": []
}
}
\ No newline at end of file
......@@ -4,7 +4,7 @@
"desc": "OK",
"timestamp": 1572263074076,
"data": {
"remainTimes": null,
"remainTimes": 7,
"costCoinJoinTimes": 0,
"nextTimeNeedCoin": 20,
"luckyDrawInfo": {
......
......@@ -4,12 +4,22 @@
"desc": "OK",
"timestamp": 1572327888728,
"data": {
"isScratchCard": true,
"isScratchCard": false,
"option": {
"scratchCardTaskId": 7,
"prizeImage": "//yun.dui88.com/images/201910/e6pmpk2pne.png",
"completePercent": "8",
"remainPercent": null
"id": "",
"day": null,
"categoryType": 2,
"title": "11",
"rate": "11",
"minValue": null,
"maxValue": null,
"coinType": null,
"propType": null,
"num": 3,
"img": "",
"appItemId": null,
"name": "",
"value": ""
},
"orderNum": 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