Commit 1e87ca3b authored by 邱旭's avatar 邱旭

1

parent cb448830
...@@ -448,7 +448,7 @@ export default class MapScene extends Scene { ...@@ -448,7 +448,7 @@ export default class MapScene extends Scene {
if (!success) { if (!success) {
return; return;
} }
console.log(res.data); // console.log(res.data);
if (res.data.completeFlag == 3) { if (res.data.completeFlag == 3) {
showToast("哎呀,萌狮开小差啦!\n过会再来看吧!"); showToast("哎呀,萌狮开小差啦!\n过会再来看吧!");
} else { } else {
...@@ -492,7 +492,7 @@ export default class MapScene extends Scene { ...@@ -492,7 +492,7 @@ export default class MapScene extends Scene {
this["inviteGroup"].visible = true; this["inviteGroup"].visible = true;
this["inviteTipsBg"].visible = true; this["inviteTipsBg"].visible = true;
this["inviteTips"].visible = true; this["inviteTips"].visible = true;
this.cutTime = res.data.endTime - res.data.sysTime + 1000; this.cutTime = res.data.endTime - res.data.sysTime + 5000;
if (this.timer) { if (this.timer) {
this.timer.stop(); this.timer.stop();
} }
......
...@@ -61,7 +61,7 @@ export default class InviteCutTimePanel extends Panel { ...@@ -61,7 +61,7 @@ export default class InviteCutTimePanel extends Panel {
initUI() { initUI() {
// 到第二天0点的倒计时 // 到第二天0点的倒计时
let endTime = this.data.sysTime + 86400000 - ((this.data.sysTime + 86400000) % 86400000) - 8 * 3600000; let endTime = this.data.sysTime + 86400000 - ((this.data.sysTime + 86400000) % 86400000) - 8 * 3600000;
this.cutTime = endTime - this.data.sysTime + 1000; this.cutTime = endTime - this.data.sysTime + 5000;
if(this.timer){ if(this.timer){
this.timer.stop(); this.timer.stop();
} }
......
...@@ -102,7 +102,7 @@ export default class InvitePanel extends Panel { ...@@ -102,7 +102,7 @@ export default class InvitePanel extends Panel {
this.list.itemRenderer = InviteItem; this.list.itemRenderer = InviteItem;
this.list.dataProvider = new eui.ArrayCollection(this.data.invitationUser); this.list.dataProvider = new eui.ArrayCollection(this.data.invitationUser);
this.cutTime = this.data.endTime - this.data.sysTime + 1000; this.cutTime = this.data.endTime - this.data.sysTime + 5000;
if(this.timer){ if(this.timer){
this.timer.stop(); this.timer.stop();
} }
......
{ {
"success": true, "success": true,
"code": null, "code": "0000000000",
"desc": null, "desc": "OK",
"timestamp": 1566199822308, "timestamp": 1571227735841,
"data": { "data": {
"invitationId": "活动id", "invitationId": null,
"img": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg", "invitationCount": null,
"completeFlag": 1, "sysTime": null,
"openPrizMsg": "图片", "endTime": null,
"prizeType": "nickname", "completeFlag": 2,
"prizeName": "nickname", "openPrizMsg": null,
"prizeImg": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg", "prizeType": "7",
"facePrice": "avatar" "prizeName": null,
"prizeImg": "//yun.dui88.com/images/201910/bvyb9owmne.gif",
"facePrice": "duibaduiba",
"invitationUser": null
} }
} }
\ No newline at end of file
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
"invitationId": "活动id", "invitationId": "活动id",
"invitationCount": 5, "invitationCount": 5,
"img": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg", "img": "http://yun.duiba.com.cn/db_games/xiaoxiaole.jpg",
"sysTime": 1570630215000, "sysTime": 1570672800000,
"endTime": 1570672800000, "endTime": 1570672810000,
"invitationUser": [ "invitationUser": [
{ {
"nickname": "nickname", "nickname": "nickname",
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
"avatar": null "avatar": null
} }
], ],
"completeFlag": 0, "completeFlag": 6,
"openPrizeMsg": "图片", "openPrizeMsg": "图片",
"prizeType": "nickname", "prizeType": "nickname",
"prizeName": "nickname", "prizeName": "nickname",
......
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