Commit 795b3837 authored by wildfirecode13's avatar wildfirecode13

u

parent 195a5bbd
......@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
let section;
export class getTimesPanel extends Panel {
share_share_go(){
console.log('share_share_go');
click_getTimes_go(){
console.log('click_getTimes_go');
}
get groupNames() { return ["getTimes"] }
......@@ -17,16 +17,20 @@ export class getTimesPanel extends Panel {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
// centerTextField(getObject(this,'cost_tips'),496);
centerTextField(getObject(this,'getTimes_tips2'),496);
centerTextField(getObject(this,'getTimes_tips1'),496);
getObject(this,'getTimes_tips2').text = `12312313123次免费拆盒机会`;
getObject(this,'getTimes_tips1').text = `最多可增加11231231231次拆盒机会/天`;
}
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
getObject(this, 'getTimes_go').addEventListener(FYGE.MouseEvent.CLICK, this.click_getTimes_go, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
getObject(this, 'getTimes_go').removeEventListener(FYGE.MouseEvent.CLICK, this.click_getTimes_go, this);
}
protected get closeBtns(): any[] {
......
......@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
let section;
export class memberGuidePanel extends Panel {
share_share_go(){
console.log('share_share_go');
click_memberGuide_btn(){
console.log('memberGuide_btn');
}
get groupNames() { return ["memberGuide"] }
......@@ -22,11 +22,11 @@ export class memberGuidePanel extends Panel {
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
getObject(this, 'memberGuide_btn').addEventListener(FYGE.MouseEvent.CLICK, this.click_memberGuide_btn, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
getObject(this, 'memberGuide_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.click_memberGuide_btn, this);
}
protected get closeBtns(): any[] {
......
......@@ -6,9 +6,9 @@ import getObject from "../common/getObject";
let section;
export class NoPrizePanel extends Panel {
share_share_go(){
console.log('share_share_go');
}
// share_share_go(){
// console.log('share_share_go');
// }
get groupNames() { return ["noprize"] }
get skinName() { return "noprize" }
......@@ -30,6 +30,9 @@ export class NoPrizePanel extends Panel {
}
protected get closeBtns(): any[] {
return [getObject(this,'noprize_close')]
return [
getObject(this,'noprize_ok'),
getObject(this,'noprize_close')
]
}
}
......@@ -6,8 +6,8 @@ import getObject from "../common/getObject";
let section;
export class notEnoughMoneyPanel extends Panel {
share_share_go(){
console.log('share_share_go');
click_notEnoughMoney_btn(){
console.log('click_notEnoughMoney_btn');
}
get groupNames() { return ["notEnoughMoney"] }
......@@ -17,16 +17,16 @@ export class notEnoughMoneyPanel extends Panel {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
// centerTextField(getObject(this,'cost_tips'),496);
centerTextField(getObject(this,'notEnoughMoney_tips'),496);
}
initEvents() {
super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
getObject(this, 'notEnoughMoney_btn').addEventListener(FYGE.MouseEvent.CLICK, this.click_notEnoughMoney_btn, this);
}
removeEvents() {
super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this);
getObject(this, 'notEnoughMoney_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.click_notEnoughMoney_btn, this);
}
protected get closeBtns(): any[] {
......
import { RES } from "../../module/RES";
import { Panel } from "../../module/views/Panel";
import centerTextField from "../common/centerTextField";
import getObject from "../common/getObject";
import { Tools } from "../Tools";
import { getWebData, sendWebNet } from "../WebNet";
......@@ -9,7 +10,8 @@ let section;
export class SharePanel extends Panel {
share_share_go(){
console.log('share');
console.log('share_go');
this.hidePanel();
}
get groupNames() { return ["share"] }
get skinName() { return "share" }
......@@ -18,6 +20,11 @@ export class SharePanel extends Panel {
super.initUi();
var skin = RES.getSkinDataByName(this.skinName);
this.position.set(skin.x, skin.y);
centerTextField(getObject(this,'share_tips'),496);
getObject(this,'share_tips').text=`获得${1231233123}次拆盲盒机会`
}
......
......@@ -30,6 +30,6 @@ export class timesNotEnoughPanel extends Panel {
}
protected get closeBtns(): any[] {
return [getObject(this,'timesNotEnough_close')]
return [getObject(this,'timesNotEnough_close'),getObject(this,'timesNotEnough_ok')]
}
}
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