Commit 4ef73e77 authored by 邱旭's avatar 邱旭

1

parent f5413af0
...@@ -24,27 +24,6 @@ export default class IconBase { ...@@ -24,27 +24,6 @@ export default class IconBase {
this.start(); this.start();
} }
protected start() {
this.initEvents();
}
protected initEvents() {
this.iconBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchBtn, this);
}
protected onTouchBtn(e: egret.TouchEvent) {
}
protected removeEvents() {
this.iconBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchBtn, this);
}
protected destory() {
this.removeEvents();
}
/** /**
* 设置图标提示的隐藏与显示 * 设置图标提示的隐藏与显示
* @param visible * @param visible
...@@ -67,4 +46,54 @@ export default class IconBase { ...@@ -67,4 +46,54 @@ export default class IconBase {
this.iconTipsBg.visible = visible; this.iconTipsBg.visible = visible;
this.iconTips.visible = visible; this.iconTips.visible = visible;
} }
public get postion() {
return {
x: this.iconGroup.x,
y: this.iconGroup.y
};
}
// public set postion(pos: {x, y}, y?:number) {
// this.iconGroup.x = pos.x,
//
// }
public get x() {
return this.iconGroup.x;
}
public set x(x: number) {
this.iconGroup.x = x;
}
public get y() {
return this.iconGroup.y;
}
public set y(y: number) {
this.iconGroup.y = y;
}
protected start() {
this.initEvents();
}
protected initEvents() {
this.iconBtn.addEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchBtn, this);
}
protected onTouchBtn(e: egret.TouchEvent) {
}
protected removeEvents() {
this.iconBtn.removeEventListener(egret.TouchEvent.TOUCH_TAP, this.onTouchBtn, this);
}
protected destory() {
this.removeEvents();
}
} }
\ No newline at end of file
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"costCoinJoinTimes": 0, "costCoinJoinTimes": 0,
"nextTimeNeedCoin": 20, "nextTimeNeedCoin": 20,
"luckyDrawInfo": { "luckyDrawInfo": {
"enable": false, "enable": true,
"id": null, "id": null,
"baseCount": 20, "baseCount": 20,
"bonusCount": 0, "bonusCount": 0,
...@@ -70,55 +70,7 @@ ...@@ -70,55 +70,7 @@
"minValue": null, "minValue": null,
"maxValue": null, "maxValue": null,
"coinType": null, "coinType": null,
"propType": 2, "propType": 3,
"num": null,
"img": "",
"appItemId": null,
"name": "",
"value": ""
},
{
"id": "",
"day": null,
"categoryType": 3,
"title": "11",
"rate": "11",
"minValue": null,
"maxValue": null,
"coinType": null,
"propType": 2,
"num": null,
"img": "",
"appItemId": null,
"name": "",
"value": ""
},
{
"id": "",
"day": null,
"categoryType": 2,
"title": "11",
"rate": "1",
"minValue": null,
"maxValue": null,
"coinType": null,
"propType": null,
"num": 2,
"img": "",
"appItemId": null,
"name": "",
"value": ""
},
{
"id": "",
"day": null,
"categoryType": 3,
"title": "1111",
"rate": "11",
"minValue": null,
"maxValue": null,
"coinType": null,
"propType": 2,
"num": null, "num": null,
"img": "", "img": "",
"appItemId": null, "appItemId": null,
......
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