Commit 3451694b authored by wildfirecode's avatar wildfirecode

1

parent 73e03b4e
...@@ -106,13 +106,13 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie ...@@ -106,13 +106,13 @@ export default class SceneStart extends ScillaComponent implements INavigatorVie
onGotDojoinError(error) { onGotDojoinError(error) {
this.startbtn.getComponent(Button).enabled = true; this.startbtn.getComponent(Button).enabled = true;
if (error === '0') { if (error === '400001') {
this.bubbling('showToast', '活动还未开始\n敬请期待~'); this.bubbling('showToast', '活动还未开始\n敬请期待~');
} }
else if (error === '1') { else if (error === '400005') {
this.bubbling('showToast', '活动已结束\n下次早点来哦~'); this.bubbling('showToast', '活动已结束\n下次早点来哦~');
} }
else if (error === '2') { else if (error === '400002') {
this.bubbling('showDialog', 'Alert', '您已经没有抽奖机会了'); this.bubbling('showDialog', 'Alert', '您已经没有抽奖机会了');
} }
else { else {
......
{ {
"success": true, "success": false,
"code": "", "code": "400001",
"desc": null, "desc": null,
"timestamp": 1561445946866, "timestamp": 1561445946866,
"data": { "data": {
......
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