Commit 99f4d57b authored by wildfirecode13's avatar wildfirecode13

u

parent 27ceea23
import { showPanel } from "../../module/ctrls"; import { showPanel } from "../../module/ctrls";
import { RES } from "../../module/RES"; import { RES } from "../../module/RES";
import { layers } from "../../module/views/layers";
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 { hideShareMask, showShareMask } from "../common/ShareMask"; import { hideShareMask, showShareMask } from "../common/ShareMask";
import { sendLog } from "../WebNet"; import { sendLog, sendWebNet } from "../WebNet";
import { WebNetName } from "../WebNetName";
import { SharePanel } from "./share"; import { SharePanel } from "./share";
let section; let section;
...@@ -14,14 +16,19 @@ export class getTimesPanel extends Panel { ...@@ -14,14 +16,19 @@ export class getTimesPanel extends Panel {
this.stage.dispatchEvent("restartEnterFrame",{}); this.stage.dispatchEvent("restartEnterFrame",{});
super.hidePanel(); super.hidePanel();
} }
click_getTimes_go() { async click_getTimes_go() {
sendLog("click",7);
this.hidePanel(); this.hidePanel();
showShareMask(); showShareMask();
await sendWebNet(WebNetName.getFreeCount,{},null,true);
layers.stage.dispatchEvent('updateIndexData');
sendLog("click",7);
setTimeout(() => { setTimeout(() => {
hideShareMask(); hideShareMask();
showPanel(SharePanel); showPanel(SharePanel);
},2000) },4000)
} }
get groupNames() { return ["getTimes"] } get groupNames() { return ["getTimes"] }
......
...@@ -27,7 +27,7 @@ export class SharePanel extends Panel { ...@@ -27,7 +27,7 @@ export class SharePanel extends Panel {
centerTextField(getObject(this,'share_tips'),496); centerTextField(getObject(this,'share_tips'),496);
getObject(this,'share_tips').text=`获得${1231233123}次拆盲盒机会` getObject(this,'share_tips').text=`获得一次拆盲盒机会`;
} }
......
...@@ -133,9 +133,9 @@ export class IndexScene extends Scene { ...@@ -133,9 +133,9 @@ export class IndexScene extends Scene {
showPanel(timesNotEnoughPanel); showPanel(timesNotEnoughPanel);
} else { } else {
showPanel(getTimesPanel); showPanel(getTimesPanel);
await sendWebNet(WebNetName.getFreeCount);
await sendWebNet(WebNetName.index); // await sendWebNet(WebNetName.index);
this.getIndex(); // this.getIndex();
} }
} }
......
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