Commit 9ddcd4eb authored by wildfirecode's avatar wildfirecode

1

parent 26dc3c0c
import { DataManager } from "../../tw/manager/DataManager";
import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes";
import Panel from "./Panel";
import { getlogItem } from "../../../src/Main";
import setGray from "../../../src/setGray";
import { NetManager } from "../../tw/manager/NetManager";
import Panel from "./Panel";
export default class NoPrizePanel extends Panel {
start(data) {
super.start();
// this.data.score = `本局分数 ${DataManager.ins.getData('ngameSubmit').data.score}`;
this.setStar(0);
this['shareBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(16));
}, this);
this.showlog();
}
showlog() {
NetManager.ins.showLog(getlogItem(16));
}
setStar(nums: number) {
......
import showCustomLog from "../../new_tw/ctrls/showCustomLog";
import { LotteryType } from "../../tw/enum/LotteryType";
import { DataManager } from "../../tw/manager/DataManager";
import { NetManager } from "../../tw/manager/NetManager";
import SceneCtrl from "../ctrls/sceneCtrl";
import { ModuleTypes } from "../types/sceneTypes";
import Panel from "./Panel";
import setGray from "../../../src/setGray";
import Panel from "./Panel";
import { NetManager } from "../../tw/manager/NetManager";
import { getlogItem } from "../../../src/Main";
export default class PrizePanel extends Panel {
start(data) {
super.start();
......@@ -19,8 +15,15 @@ export default class PrizePanel extends Panel {
// showCustomLog(lottery);
this.setStar(3);
}
this['shareBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(15));
}, this);
this.showlog();
}
showlog() {
NetManager.ins.showLog(getlogItem(15));
}
setStar(nums: number) {
if (nums == 0) {
setGray(this['pic1']);
......@@ -46,31 +49,6 @@ export default class PrizePanel extends Panel {
get picBigWidth() { return 510 };
get bigPicRatio() { return 640 / 300 }
initEvents() {
super.initEvents();
// this.useBtn.once(egret.TouchEvent.TOUCH_TAP, this.onUse, this);
// this.img.once(egret.TouchEvent.TOUCH_TAP, this.onUse, this);
}
onUse() {
// const lottery = DataManager.ins.getCustomOrderStatusData.lottery;
// if (lottery.type == LotteryType.COUPON || lottery.type == LotteryType.LUCKY) {
// window["downloadAppConfig"] =
// {
// openUrl: lottery.openUrl,
// iosDownloadUrl: lottery.iosDownloadUrl,
// androidDownloadUrl: lottery.androidDownloadUrl,
// confirm: lottery.confirm ? lottery.confirm : false
// };
// window["downloadApp"]();
// if (lottery.type == "lucky") {
// NetManager.ins.spmclick(DataManager.ins.getCustomOrderStatusData.exposure);
// }
// }
// else {
// window.location.href = lottery.link;
// }
}
img: eui.Image;
useBtn: eui.Button;
get skinKey() { return 'Prize' }
......
......@@ -50,12 +50,13 @@ export default class MapScene extends Scene {
const element = MapScene.iconHash[key];
element.addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
PanelCtrl.instance.show('StartPanel', key);
NetManager.ins.clickLog(getlogItem(19))
}, this)
}
// setTimeout(() => {
// // PanelCtrl.instance.show('box');
// getSharePic(this);
// PanelCtrl.instance.show('quit');
// // getSharePic(this);
// }, 2000);
this.updateHomeData();
......
import Panel from "../../libs/new_wx/components/Panel";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "../Main";
export default class BoxPanel extends Panel {
start(data) {
super.start();
this['close2Btn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(17));
}, this);
this.showlog();
}
showlog() {
NetManager.ins.showLog(getlogItem(17));
}
protected get closeBtns(): eui.Button[] { return [this['closeBtn'],this['close2Btn']] }
get skinKey() { return 'Box' }
}
\ No newline at end of file
import Panel from "../../libs/new_wx/components/Panel";
import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "../Main";
export default class QuitPanel extends Panel {
start(data) {
super.start();
this['quitBtn'].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(18));
}, this);
this.showlog();
}
showlog() {
NetManager.ins.showLog(getlogItem(18));
}
get skinKey() { return 'Quit' }
......
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