Commit 190bfaaf authored by wildfirecode13's avatar wildfirecode13

update

parent 57b3cf90
......@@ -4,7 +4,7 @@
"code": "",
"data": {
"shareCode":"d8kadf2",
"isNewbie":true,
"isNewbie":0,
"amount":1000
}
}
\ No newline at end of file
......@@ -12,10 +12,6 @@
"keys": "comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common"
},
{
"keys": "draw_bg.png,draw_okbtn.png",
"name": "draw"
},
{
"keys": "index_bg.png",
"name": "index"
......
This diff is collapsed.
......@@ -12,10 +12,7 @@ export const ResJson = {
"keys": "comCloseBtn.png,toastBg.png,waitingBg.png,waitingRot.png",
"name": "common"
},
{
"keys": "draw_bg.png,draw_okbtn.png",
"name": "draw"
},
{
"keys": "index_bg.png",
"name": "index"
......
......@@ -459,50 +459,7 @@ export const SkinJson ={
}
}
]
},
{
"name": "draw",
"x": 67,
"y": 319,
"type": "container",
"children": [
{
"name": "draw_bg",
"x": 0,
"y": 0,
"type": "text",
"props": {
"text": "",
"size": 12,
"fillColor": "#000000",
"textAlpha": 1
}
},
{
"name": "draw_name",
"x": 248,
"y": 331,
"type": "text",
"props": {
"text": "提现成功",
"size": 30,
"fillColor": "#5889ce",
"textAlpha": 1
}
},
{
"name": "draw_okbtn",
"x": 126,
"y": 724,
"type": "text",
"props": {
"text": "",
"size": 12,
"fillColor": "#000000",
"textAlpha": 1
}
}
]
}
]
}
\ No newline at end of file
import { changeScene } from "../../module/ctrls";
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import getObject from "../getObject";
import { IndexScene } from "../scenes/IndexScene";
import { Tools } from "../Tools";
import updateShare from "../updateShare";
import { getWebData, sendWebNet, WebNetName } from "../WebNet";
export class DrawPanel extends Panel {
initUi() {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
// var skin = RES.getSkinDataByName(this.skinName);
// this.position.set(skin.x, skin.y);
}
get groupNames() { return ["draw"] }
get skinName() { return "draw" }
//两个按钮都是关闭作用
get closeBtns() {
return [getObject(this, 'draw_closebtn'), getObject(this, 'draw_okbtn')];
}
async start(data) {
super.start();
const indexResult = await sendWebNet(WebNetName.index)
}
hidePanel(){
super.hidePanel();
super.start(data);
}
}
\ No newline at end of file
......@@ -2,6 +2,7 @@ import { unwatchPageVisibility, watchPageVisibility } from '@spark/utils';
import { closeCurrentPanel, showPanel } from "../../module/ctrls";
import PanelCtrl from '../../module/ctrls/panelCtrl';
import { Scene } from "../../module/views/Scene";
import { DrawPanel } from '../panels/draw';
import { ShareFailPanel } from '../panels/share_fail';
import { ShareSuccessPanel } from '../panels/share_success';
import { sendWebNet, WebNetName } from '../WebNet';
......@@ -22,10 +23,7 @@ export class IndexScene extends Scene {
}
this.addEventListener(FYGE.MouseEvent.CLICK, () => {
showPanel(PrizePanel, data);
showPanel(DrawPanel, data);
}, this);
}
......
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