Commit 28ad3527 authored by wjf's avatar wjf

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

parents e329eee0 c63f272d
...@@ -86,8 +86,10 @@ export default class ScratchIcon extends IconBase { ...@@ -86,8 +86,10 @@ export default class ScratchIcon extends IconBase {
case (status == 2): // 当前任务完成待领奖 请求领奖接口 case (status == 2): // 当前任务完成待领奖 请求领奖接口
NetManager.ins.scratchTakePrize((success, res) => { NetManager.ins.scratchTakePrize((success, res) => {
if(!success) { if(!success) {
if(res.code == 600016){ if(res.code == 600016) {
showToast("哎呀,萌狮开小差啦!\n过会再来看看吧!"); showToast("哎呀,萌狮开小差啦!\n过会再来看看吧!");
} else if(res.code == 600028) {
showToast("哎呀萌狮开小差啦!");
} }
return; return;
} }
......
...@@ -36,7 +36,7 @@ export default class ScratchPanel extends Panel { ...@@ -36,7 +36,7 @@ export default class ScratchPanel extends Panel {
} }
x += 5; x += 5;
this.myShape.graphics.lineTo(x, y); this.myShape.graphics.lineTo(x, y);
if(x > (+this.data.completePercent) / 100 * this["prizeImg"].width){ if(x > (+this.data.completePercent) / 100 * this["prizeImg"].width + 10){
return; return;
} }
this.setGtaphics(x, y); this.setGtaphics(x, y);
......
...@@ -5,11 +5,11 @@ ...@@ -5,11 +5,11 @@
"timestamp": 1572420059060, "timestamp": 1572420059060,
"data": { "data": {
"scratchCardTaskId": 3, "scratchCardTaskId": 3,
"taskStatus": 2, "taskStatus": 1,
"prizeImage": "//yun.dui88.com/images/201910/9u6nk8sjt8.jpg", "prizeImage": "//yun.dui88.com/images/201910/9u6nk8sjt8.jpg",
"currentTime": 1572420059060, "currentTime": 1572420059060,
"endTime": 1572493282000, "endTime": 1572493282000,
"completePercent": "100", "completePercent": "98",
"remainPercent": "0", "remainPercent": "0",
"totalNeedCount": 1, "totalNeedCount": 1,
"helpedCount": 1, "helpedCount": 1,
......
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