This commit is contained in:
2025-09-19 21:20:20 +08:00
parent e8dc696c7a
commit a7cf12b6c6
2 changed files with 980 additions and 430 deletions
@@ -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);
}