Commit 1a096253 authored by wjf's avatar wjf

l

parents e662614e 4d0d43fc
import Panel from "./Panel"; import Panel from "./Panel";
import SceneCtrl from "../ctrls/sceneCtrl"; import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes"; import { ModuleTypes } from "../types/sceneTypes";
import StartScene from "../../../src/startScene/StartScene"; import StartScene, { createData } from "../../../src/startScene/StartScene";
export default class Alert extends Panel { export default class Alert extends Panel {
start(data) { start(data) {
super.start(data); super.start(data);
......
...@@ -2,6 +2,9 @@ import { getlogItem } from "../../../src/Main"; ...@@ -2,6 +2,9 @@ import { getlogItem } from "../../../src/Main";
import setGray from "../../../src/setGray"; import setGray from "../../../src/setGray";
import { NetManager } from "../../tw/manager/NetManager"; import { NetManager } from "../../tw/manager/NetManager";
import Panel from "./Panel"; import Panel from "./Panel";
import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes";
import { createData } from "../../../src/startScene/StartScene";
export default class NoPrizePanel extends Panel { export default class NoPrizePanel extends Panel {
start(data) { start(data) {
super.start(); super.start();
...@@ -12,11 +15,19 @@ export default class NoPrizePanel extends Panel { ...@@ -12,11 +15,19 @@ export default class NoPrizePanel extends Panel {
}, this); }, this);
this.showlog(); this.showlog();
NetManager.ins.hc_home(() => { }, window['collectRuleId']);
} }
showlog() { showlog() {
NetManager.ins.showLog(getlogItem(16)); NetManager.ins.showLog(getlogItem(16));
} }
onTouchTap_closeBtn() {
super.onTouchTap_closeBtn();
SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, createData());
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn'], this['goBtn']] }
setStar(nums: number) { setStar(nums: number) {
if (nums == 0) { if (nums == 0) {
setGray(this['pic1']); setGray(this['pic1']);
......
...@@ -2,6 +2,9 @@ import setGray from "../../../src/setGray"; ...@@ -2,6 +2,9 @@ import setGray from "../../../src/setGray";
import Panel from "./Panel"; import Panel from "./Panel";
import { NetManager } from "../../tw/manager/NetManager"; import { NetManager } from "../../tw/manager/NetManager";
import { getlogItem } from "../../../src/Main"; import { getlogItem } from "../../../src/Main";
import { createData } from "../../../src/startScene/StartScene";
import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes";
export default class PrizePanel extends Panel { export default class PrizePanel extends Panel {
start(data) { start(data) {
super.start(); super.start();
...@@ -20,6 +23,7 @@ export default class PrizePanel extends Panel { ...@@ -20,6 +23,7 @@ export default class PrizePanel extends Panel {
}, this); }, this);
this.showlog(); this.showlog();
NetManager.ins.hc_home(()=>{},window['collectRuleId']);
} }
showlog() { showlog() {
NetManager.ins.showLog(getlogItem(15)); NetManager.ins.showLog(getlogItem(15));
...@@ -43,7 +47,7 @@ export default class PrizePanel extends Panel { ...@@ -43,7 +47,7 @@ export default class PrizePanel extends Panel {
onTouchTap_closeBtn(): any { onTouchTap_closeBtn(): any {
super.onTouchTap_closeBtn(); super.onTouchTap_closeBtn();
// SceneCtrl.instance.change(ModuleTypes.START_SCENE); SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, createData());
} }
get picBigWidth() { return 510 }; get picBigWidth() { return 510 };
...@@ -53,7 +57,5 @@ export default class PrizePanel extends Panel { ...@@ -53,7 +57,5 @@ export default class PrizePanel extends Panel {
useBtn: eui.Button; useBtn: eui.Button;
get skinKey() { return 'Prize' } get skinKey() { return 'Prize' }
protected get closeBtns(): eui.Button[] { protected get closeBtns(): eui.Button[] { return [this['closeBtn'], this['goBtn']] }
return [this['closeBtn']]
}
} }
\ No newline at end of file
...@@ -10,7 +10,7 @@ export default (data?: Data, netname?: NetName) => { ...@@ -10,7 +10,7 @@ export default (data?: Data, netname?: NetName) => {
showToast('网络异常\n请隔一段时间再尝试'); showToast('网络异常\n请隔一段时间再尝试');
else if (data.code == '2002007013') else if (data.code == '2002007013')
showToast('元宝不足哦,快去玩游戏赢元宝吧'); showToast('元宝不足哦,快去玩游戏赢元宝吧');
else if (data.code == 'E1002070002') { else if (data.code == 'E1002070002' || data.code == 'E1002070001' ) {
showToast('游戏分数提交失败~\n如有疑问,请联系客服') showToast('游戏分数提交失败~\n如有疑问,请联系客服')
} }
else if (data.code == '600005') else if (data.code == '600005')
......
...@@ -44,6 +44,7 @@ import PropType from '../PropType'; ...@@ -44,6 +44,7 @@ import PropType from '../PropType';
import { PropNumShow } from '../something/uis/PropNumShow'; import { PropNumShow } from '../something/uis/PropNumShow';
import SceneCtrl from '../../libs/new_wx/ctrls/sceneCtrl'; import SceneCtrl from '../../libs/new_wx/ctrls/sceneCtrl';
import { PropGuide } from '../something/uis/PropGuide'; import { PropGuide } from '../something/uis/PropGuide';
import { createData } from '../startScene/StartScene';
import { Loading2 } from '../something/uis/Loading2'; import { Loading2 } from '../something/uis/Loading2';
const aniClass = { const aniClass = {
...@@ -2124,7 +2125,7 @@ export default class MainScene extends Scene { ...@@ -2124,7 +2125,7 @@ export default class MainScene extends Scene {
var txt = codeMsgs[data.code] || "活动太火爆了\n请稍后再来"; var txt = codeMsgs[data.code] || "活动太火爆了\n请稍后再来";
showToast(txt); showToast(txt);
setTimeout(() => { setTimeout(() => {
SceneCtrl.instance.change(ModuleTypes.MAP_SCENE); SceneCtrl.instance.change(ModuleTypes.MAP_SCENE,createData());
}, 1300) }, 1300)
} }
} }
......
import Panel from "../../libs/new_wx/components/Panel"; import Panel from "../../libs/new_wx/components/Panel";
import SceneCtrl from "../../libs/new_wx/ctrls/sceneCtrl";
import { ModuleTypes } from "../../libs/new_wx/types/sceneTypes";
import { createData } from "../startScene/StartScene";
import { NetManager } from "../../libs/tw/manager/NetManager";
export default class FailedPanel extends Panel { export default class FailedPanel extends Panel {
start(data) { start(data) {
super.start(); super.start();
NetManager.ins.hc_home(()=>{},window['collectRuleId']);
}
onTouchTap_closeBtn() {
super.onTouchTap_closeBtn();
SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, createData());
} }
get skinKey() { return 'Fail' } get skinKey() { return 'Fail' }
......
...@@ -78,7 +78,7 @@ export default class StartScene extends Scene { ...@@ -78,7 +78,7 @@ export default class StartScene extends Scene {
setTimeout(() => { setTimeout(() => {
egret.Tween.removeTweens(this['progressmask2']); egret.Tween.removeTweens(this['progressmask2']);
egret.Tween.get(this['progressmask2']).to({ scaleX: 1 }, 200).wait(200).call(() => { egret.Tween.get(this['progressmask2']).to({ scaleX: 1 }, 200).wait(200).call(() => {
SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, d) SceneCtrl.instance.change(ModuleTypes.MAP_SCENE, d);
}); });
this['percentTxt'].text = `100%` this['percentTxt'].text = `100%`
clearInterval(this._timer); clearInterval(this._timer);
......
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