Commit ed4651d3 authored by wildfirecode13's avatar wildfirecode13

update

parent 7b41d090
...@@ -6,8 +6,13 @@ import getObject from "../common/getObject"; ...@@ -6,8 +6,13 @@ import getObject from "../common/getObject";
let section; let section;
export class CostPanel extends Panel { export class CostPanel extends Panel {
share_share_go(){ start(){
console.log('share_share_go'); super.start();
const cost = 1234567890;
getObject(this,'cost_tips').text = `消耗${cost}积分拆开1个盲盒`
}
cost_open(){
console.log('cost_open');
} }
get groupNames() { return ["cost"] } get groupNames() { return ["cost"] }
...@@ -22,11 +27,12 @@ export class CostPanel extends Panel { ...@@ -22,11 +27,12 @@ export class CostPanel extends Panel {
initEvents() { initEvents() {
super.initEvents(); super.initEvents();
// getObject(this, 'share_fail_btn').addEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this); getObject(this, 'cost_open').addEventListener(FYGE.MouseEvent.CLICK, this.cost_open, this);
} }
removeEvents() { removeEvents() {
super.removeEvents(); super.removeEvents();
// getObject(this, 'share_fail_btn').removeEventListener(FYGE.MouseEvent.CLICK, this.share_share_go, this); getObject(this, 'cost_open').removeEventListener(FYGE.MouseEvent.CLICK, this.cost_open, this);
} }
protected get closeBtns(): any[] { protected get closeBtns(): any[] {
......
...@@ -46,7 +46,7 @@ export class RulePanel extends Panel { ...@@ -46,7 +46,7 @@ export class RulePanel extends Panel {
section.style.overflowY = "auto"; section.style.overflowY = "auto";
section.style.width = 432 + "px"; section.style.width = 432 + "px";
section.style.height = 492 + "px"; section.style.height = 492 + "px";
section.style.lineHeight = 48 + "px"; section.style.lineHeight = 36 + "px";
section.style.fontSize = this.ruleTxt.size + 'px'; section.style.fontSize = this.ruleTxt.size + 'px';
section.style.color = this.ruleTxt.fillColor; section.style.color = this.ruleTxt.fillColor;
section.style.whiteSpace = "pre-line"; section.style.whiteSpace = "pre-line";
......
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