Commit c2a57691 authored by wildfirecode13's avatar wildfirecode13

u

parent 53312391
{
"code": null,
"data": 1,
"data": 0,
"message": "occaecat",
"success": true
}
\ No newline at end of file
This diff is collapsed.
......@@ -20,10 +20,7 @@
"keys": "draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png",
"name": "draw"
},
{
"keys": "bg.png,bg2.png,drawBtn.png,drawGrayBtn.png,inviteBtn.png,marquee.png,progress.png,progressbg.png,rulebtn.png,task1bg.png,task1btn.png,task2bg.png,title.png",
"name": "index3"
},
{
"keys": "loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png",
"name": "loading"
......
This diff is collapsed.
......@@ -20,10 +20,7 @@ export const ResJson = {
"keys": "draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png",
"name": "draw"
},
{
"keys": "bg.png,bg2.png,drawBtn.png,drawGrayBtn.png,inviteBtn.png,marquee.png,progress.png,progressbg.png,rulebtn.png,task1bg.png,task1btn.png,task2bg.png,title.png",
"name": "index3"
},
{
"keys": "loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png",
"name": "loading"
......
This diff is collapsed.
......@@ -23,40 +23,19 @@ const checkUpdateShare = () => {
export class PrizePanel extends Panel {
amountTxt: FYGE.TextField;
percentTxt: FYGE.TextField;
closeBtn;inviteBtn;
inviteBtn;
initUi() {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
const group = new Group();
this.addChild(group)
const closeBtn = this.closeBtn = new TestButton('关闭按钮');
group.add(closeBtn);
const inviteBtn =this.inviteBtn= new TestButton('邀请按钮');
group.add(inviteBtn);
const label = new TestLabel({
text: '1000元', color: '0x000000', w: 500, h: 100, size: 50
});
group.add(label);
this.amountTxt = label.textfield;
const label2 = new TestLabel({
text: '1000/1000000', color: '0x000000', w: 500, h: 100, size: 50
});
group.add(label2);
this.percentTxt = label2.textfield;
this.inviteBtn =getObject(this,'prize_invite');
}
async start(data) {
super.start();
sendWebNet(WebNetName.createItem).then(createItemResult => {
createItemResultComplete = createItemResult;
checkUpdateShare();
......@@ -67,6 +46,11 @@ export class PrizePanel extends Panel {
checkUpdateShare();
});
getObject(this,'prize_close').addEventListener(FYGE.MouseEvent.CLICK, ()=>{
console.log('123')
}, this);
}
hidePanel() {
......@@ -78,9 +62,8 @@ export class PrizePanel extends Panel {
showShareMask();
}
//两个按钮都是关闭作用
get closeBtns() {
return [this.closeBtn];
return [getObject(this,'prize_close')];
}
initEvents() {
......
......@@ -33,7 +33,7 @@ export class IndexScene extends Scene {
this.addChild(page);
page.y = getStageOffset();
this.page.view.addChild(getObject(this,'wrapper'));
this.page.view.addChild(getObject(this,'index_wrapper'));
// getObject(this.page,'task1').visible=false;
// // getObject(this.page,'task2new').visible=false;
......@@ -113,6 +113,6 @@ export class IndexScene extends Scene {
unwatchPageVisibility(this.onPageVisibilityChange)
}
get groupNames() { return ["index3"] }
get skinName() { return "index3" }
get groupNames() { return ["index"] }
get skinName() { return "index" }
}
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