Commit 99f4d57b authored by wildfirecode13's avatar wildfirecode13

u

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