Commit 6b577da7 authored by haiyoucuv's avatar haiyoucuv

1

parent c714cad1
...@@ -7,6 +7,7 @@ import { ModuleTypes } from "../types/sceneTypes"; ...@@ -7,6 +7,7 @@ import { ModuleTypes } from "../types/sceneTypes";
import PanelCtrl from "../ctrls/panelCtrl"; import PanelCtrl from "../ctrls/panelCtrl";
import { showToast } from "../comm/UtilsConst"; import { showToast } from "../comm/UtilsConst";
import { NetManager } from "../../libs/tw/manager/NetManager"; import { NetManager } from "../../libs/tw/manager/NetManager";
import { getlogItem } from "../getlogItem";
export default class HbNoPrize extends Panel { export default class HbNoPrize extends Panel {
public closeBtn: eui.Button; public closeBtn: eui.Button;
...@@ -19,6 +20,8 @@ export default class HbNoPrize extends Panel { ...@@ -19,6 +20,8 @@ export default class HbNoPrize extends Panel {
protected start() { protected start() {
super.start(); super.start();
NetManager.ins.showLog(getlogItem(13));
NetManager.ins.clickLog(getlogItem(13));
this.initUI(); this.initUI();
} }
......
...@@ -11,6 +11,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager"; ...@@ -11,6 +11,7 @@ import { NetManager } from "../../libs/tw/manager/NetManager";
import { DatapashData } from "../../libs/tw/data/game/datapash/DatapashData"; import { DatapashData } from "../../libs/tw/data/game/datapash/DatapashData";
import { DataManager } from "../../libs/tw/manager/DataManager"; import { DataManager } from "../../libs/tw/manager/DataManager";
import { NetName } from "../../libs/tw/enum/NetName"; import { NetName } from "../../libs/tw/enum/NetName";
import { getlogItem } from "../getlogItem";
export default class HbPrize extends Panel { export default class HbPrize extends Panel {
public closeBtn: eui.Button; public closeBtn: eui.Button;
...@@ -26,6 +27,8 @@ export default class HbPrize extends Panel { ...@@ -26,6 +27,8 @@ export default class HbPrize extends Panel {
protected start() { protected start() {
super.start(); super.start();
NetManager.ins.showLog(getlogItem(13));
NetManager.ins.clickLog(getlogItem(13));
this.initUI(); this.initUI();
} }
......
...@@ -117,7 +117,7 @@ class Main extends eui.UILayer { ...@@ -117,7 +117,7 @@ class Main extends eui.UILayer {
Buried.init(); Buried.init();
//获取签到信息 //获取签到信息
DataManager.ins.customCfgData = window["CFG"]; DataManager.ins.customCfgData = window["CFG"];
// NetManager.ins.iqiyiAjaxElement((success) => { // NetManager.ins.ajaxElement((success) => {
// if(!success) { // if(!success) {
// return; // return;
// } // }
......
...@@ -8,6 +8,10 @@ import { NetManager } from "../../libs/tw/manager/NetManager"; ...@@ -8,6 +8,10 @@ import { NetManager } from "../../libs/tw/manager/NetManager";
import CutTimer from "../comm/CutTimer"; import CutTimer from "../comm/CutTimer";
import Utils from "../comm/Utils"; import Utils from "../comm/Utils";
import tr = egret.sys.tr; import tr = egret.sys.tr;
import { getlogItem } from "../getlogItem";
import { Data } from "../../libs/tw/data/Data";
import { DataManager } from "../../libs/tw/manager/DataManager";
import { NetName } from "../../libs/tw/enum/NetName";
export default class IndexScene extends Scene { export default class IndexScene extends Scene {
public scroller: eui.Scroller; public scroller: eui.Scroller;
...@@ -45,6 +49,8 @@ export default class IndexScene extends Scene { ...@@ -45,6 +49,8 @@ export default class IndexScene extends Scene {
private onTouchTap(e: egret.TouchEvent) { private onTouchTap(e: egret.TouchEvent) {
switch(e.target) { switch(e.target) {
case this.btn: // 开始按钮,再次开始按钮 case this.btn: // 开始按钮,再次开始按钮
const extra = DataManager.ins.getData(NetName.IQIYI_ELEMENT).data;
extra.shared ? NetManager.ins.clickLog(getlogItem(34)) : NetManager.ins.clickLog(getlogItem(21));
this.btn.touchEnabled = false; this.btn.touchEnabled = false;
JoinGame().then( JoinGame().then(
(res) => { (res) => {
...@@ -75,6 +81,8 @@ export default class IndexScene extends Scene { ...@@ -75,6 +81,8 @@ export default class IndexScene extends Scene {
protected start() { protected start() {
super.start(); super.start();
NetManager.ins.showLog(getlogItem(2));
NetManager.ins.clickLog(getlogItem(2));
this.initUI(); this.initUI();
} }
...@@ -110,6 +118,7 @@ export default class IndexScene extends Scene { ...@@ -110,6 +118,7 @@ export default class IndexScene extends Scene {
this.cutLabel.visible = false; this.cutLabel.visible = false;
this.tips_img.source = 'index_tips_raining_png'; this.tips_img.source = 'index_tips_raining_png';
this.btn.source = extra.shared ? 'index_again_btn_png' : 'index_start_btn_png'; // 根据是否分享过显示按钮 this.btn.source = extra.shared ? 'index_again_btn_png' : 'index_start_btn_png'; // 根据是否分享过显示按钮
extra.shared ? NetManager.ins.showLog(getlogItem(34)) : NetManager.ins.showLog(getlogItem(21));
_label = this.tipsLabel; _label = this.tipsLabel;
_labelText = '距离本场结束还有hh:mm:ss'; _labelText = '距离本场结束还有hh:mm:ss';
} else { // 倒计时 } else { // 倒计时
......
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