Commit d7048479 authored by 邱旭's avatar 邱旭

1

parent 3467d374
......@@ -101,7 +101,7 @@ export default class RechargePanel extends Panel {
}
private setNumBtn() {
/// TODO 低效方式来处理按钮状态,每次按数字按钮都会执行以下逻辑,待优化
/// TODO 每次按数字按钮都会执行以下逻辑,待优化
btnNum.forEach((v) => {
this[`btn_${v}`].source = `recharge_${v}_ds_png`;
this[`btn_${v}`].touchEnabled = true;
......@@ -114,7 +114,7 @@ export default class RechargePanel extends Panel {
}
private setNum() {
/// TODO 低效方式,每次改变this.nowNumber值都会执行以下逻辑,待优化
/// TODO 每次改变this.nowNumber值都会执行以下逻辑,待优化
this.addBtn.touchEnabled = true;
this.addBtn.source = 'recharge_add_en_png';
this.subBtn.touchEnabled = true;
......@@ -134,7 +134,6 @@ export default class RechargePanel extends Panel {
}
private onTouchBtn(e: egret.TouchEvent) {
/// TODO 发接口兑换
NetManager.ins.clickLog(getlogItem(73));
if(this.nowNumber * 10 > this.totalNum) {
showToast('抱歉,您的云钻不足哦');
......@@ -167,7 +166,6 @@ export default class RechargePanel extends Panel {
}
private getYunZuan() {
/// TODO 通过接口获取云钻数量并显示
this.zuanLabel.text = '我的云钻:0';
NetManager.ins.getCloudNum((success, res) => {
if(!success) {
......
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