fix
This commit is contained in:
@@ -37,6 +37,12 @@ export class PurchasePanel extends li_BaseView {
|
||||
getDefaultNetworkType(): proto.cs.EnmNetworkType {
|
||||
return this.defaultNetworkType;
|
||||
}
|
||||
|
||||
cashBtnSelecting;
|
||||
cashBtnNotSelect;
|
||||
web3BtnSelecting;
|
||||
web3BtnNotSelect;
|
||||
|
||||
onLoadCT(): void {
|
||||
Utils.parseNode(this.node, this._nodeTab);
|
||||
this.coinNum = this._nodeTab.coinNum.getComponent(Label);
|
||||
@@ -45,6 +51,12 @@ export class PurchasePanel extends li_BaseView {
|
||||
this.vipTime7 = this._nodeTab.vipTime7.getComponent(Label);
|
||||
this.vipPrice30 = this._nodeTab.vipPrice30.getComponent(Label);
|
||||
this.vipTime30 = this._nodeTab.vipTime30.getComponent(Label);
|
||||
|
||||
this.cashBtnSelecting = this._nodeTab.cashBtn.getChildByName("selecting");
|
||||
this.cashBtnNotSelect = this._nodeTab.cashBtn.getChildByName("notSelect");
|
||||
this.web3BtnSelecting = this._nodeTab.web3Btn.getChildByName("selecting");
|
||||
this.web3BtnNotSelect = this._nodeTab.web3Btn.getChildByName("notSelect");
|
||||
|
||||
this.bandBtn();
|
||||
|
||||
//订阅商业化数据事件
|
||||
@@ -125,7 +137,7 @@ export class PurchasePanel extends li_BaseView {
|
||||
shopData.goods = res.data;
|
||||
// 根据数据,刷新界面
|
||||
this.updateView();
|
||||
this.updateShops();
|
||||
this.onClickCashBtn();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -273,10 +285,19 @@ export class PurchasePanel extends li_BaseView {
|
||||
}
|
||||
}
|
||||
|
||||
curPayType = -1;
|
||||
onClickCashBtn() {
|
||||
if (this.curPayType == 0) return;
|
||||
this.curPayType = 0;
|
||||
this.cashBtnSelecting.active = this.web3BtnNotSelect.active = true;
|
||||
this.cashBtnNotSelect.active = this.web3BtnSelecting.active = false;
|
||||
this.updateShops(0);
|
||||
}
|
||||
onClickWeb3Btn() {
|
||||
if (this.curPayType == 1) return;
|
||||
this.curPayType = 1;
|
||||
this.cashBtnSelecting.active = this.web3BtnNotSelect.active = false;
|
||||
this.cashBtnNotSelect.active = this.web3BtnSelecting.active = true;
|
||||
this.updateShops(1);
|
||||
}
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user