Commit c2a57691 authored by wildfirecode13's avatar wildfirecode13

u

parent 53312391
{ {
"code": null, "code": null,
"data": 1, "data": 0,
"message": "occaecat", "message": "occaecat",
"success": true "success": true
} }
\ No newline at end of file
This diff is collapsed.
...@@ -20,10 +20,7 @@ ...@@ -20,10 +20,7 @@
"keys": "draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png", "keys": "draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png",
"name": "draw" "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", "keys": "loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png",
"name": "loading" "name": "loading"
......
This diff is collapsed.
...@@ -20,10 +20,7 @@ export const ResJson = { ...@@ -20,10 +20,7 @@ export const ResJson = {
"keys": "draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png", "keys": "draw_bg.png,draw_close.png,draw_ok.png,draw_okbtn.png,draw_title.png",
"name": "draw" "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", "keys": "loading_bg.png,loading_loading.png,loading_progressbg.png,loading_progressfront.png,loading_title.png",
"name": "loading" "name": "loading"
......
This diff is collapsed.
...@@ -23,40 +23,19 @@ const checkUpdateShare = () => { ...@@ -23,40 +23,19 @@ const checkUpdateShare = () => {
export class PrizePanel extends Panel { export class PrizePanel extends Panel {
amountTxt: FYGE.TextField; amountTxt: FYGE.TextField;
percentTxt: FYGE.TextField; percentTxt: FYGE.TextField;
closeBtn;inviteBtn; inviteBtn;
initUi() { initUi() {
super.initUi(); super.initUi();
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);
this.inviteBtn =getObject(this,'prize_invite');
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;
} }
async start(data) { async start(data) {
super.start(); super.start();
sendWebNet(WebNetName.createItem).then(createItemResult => { sendWebNet(WebNetName.createItem).then(createItemResult => {
createItemResultComplete = createItemResult; createItemResultComplete = createItemResult;
checkUpdateShare(); checkUpdateShare();
...@@ -66,6 +45,11 @@ export class PrizePanel extends Panel { ...@@ -66,6 +45,11 @@ export class PrizePanel extends Panel {
myWalletResultComplete = myWalletResult; myWalletResultComplete = myWalletResult;
checkUpdateShare(); checkUpdateShare();
}); });
getObject(this,'prize_close').addEventListener(FYGE.MouseEvent.CLICK, ()=>{
console.log('123')
}, this);
} }
...@@ -78,9 +62,8 @@ export class PrizePanel extends Panel { ...@@ -78,9 +62,8 @@ export class PrizePanel extends Panel {
showShareMask(); showShareMask();
} }
//两个按钮都是关闭作用
get closeBtns() { get closeBtns() {
return [this.closeBtn]; return [getObject(this,'prize_close')];
} }
initEvents() { initEvents() {
......
...@@ -33,7 +33,7 @@ export class IndexScene extends Scene { ...@@ -33,7 +33,7 @@ export class IndexScene extends Scene {
this.addChild(page); this.addChild(page);
page.y = getStageOffset(); 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,'task1').visible=false;
// // getObject(this.page,'task2new').visible=false; // // getObject(this.page,'task2new').visible=false;
...@@ -113,6 +113,6 @@ export class IndexScene extends Scene { ...@@ -113,6 +113,6 @@ export class IndexScene extends Scene {
unwatchPageVisibility(this.onPageVisibilityChange) unwatchPageVisibility(this.onPageVisibilityChange)
} }
get groupNames() { return ["index3"] } get groupNames() { return ["index"] }
get skinName() { return "index3" } 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