Commit fa7892fe authored by wildfirecode13's avatar wildfirecode13

1

parent 4cd9f191
...@@ -3,6 +3,7 @@ import { RES } from "../../module/RES"; ...@@ -3,6 +3,7 @@ import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel"; import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField"; import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject"; import getObject from "../common/getObject";
import { sendLog } from "../WebNet";
import { PrizePanel } from "./prize"; import { PrizePanel } from "./prize";
let section; let section;
...@@ -13,6 +14,7 @@ export class CostPanel extends Panel { ...@@ -13,6 +14,7 @@ export class CostPanel extends Panel {
getObject(this, "cost_tips").text = `消耗${cost}积分拆开1个盲盒`; getObject(this, "cost_tips").text = `消耗${cost}积分拆开1个盲盒`;
} }
cost_open() { cost_open() {
sendLog("click",1);
this.dispatchEvent("stopIndexEnterFrame", { }); this.dispatchEvent("stopIndexEnterFrame", { });
this.hidePanel(); this.hidePanel();
showPanel(PrizePanel) showPanel(PrizePanel)
...@@ -30,6 +32,7 @@ export class CostPanel extends Panel { ...@@ -30,6 +32,7 @@ export class CostPanel extends Panel {
var skin = RES.getSkinDataByName(this.skinName); var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y); this.position.set(skin.x, skin.y);
centerTextField(getObject(this, "cost_tips"), 496); centerTextField(getObject(this, "cost_tips"), 496);
sendLog("exposure",1);
} }
initEvents() { initEvents() {
......
...@@ -6,6 +6,7 @@ import { showPanel } from "../../module/ctrls"; ...@@ -6,6 +6,7 @@ import { showPanel } from "../../module/ctrls";
import { getImage } from "../common/getImage"; import { getImage } from "../common/getImage";
import getObject from "../common/getObject"; import getObject from "../common/getObject";
import { CostPanel } from "./cost"; import { CostPanel } from "./cost";
import { sendLog } from "../WebNet";
let section; let section;
export class PrizePanel extends Panel { export class PrizePanel extends Panel {
...@@ -31,6 +32,7 @@ export class PrizePanel extends Panel { ...@@ -31,6 +32,7 @@ export class PrizePanel extends Panel {
prizeContainer: FYGE.Sprite; prizeContainer: FYGE.Sprite;
initUi() { initUi() {
super.initUi(); super.initUi();
sendLog("exposure",1);
var skin = RES.getSkinDataByName(this.skinName); var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y); this.position.set(skin.x, skin.y);
centerTextField(getObject(this, 'prize_name'), 731); centerTextField(getObject(this, 'prize_name'), 731);
......
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