支付页面

qrcode生成,剪贴板sdk
This commit is contained in:
2025-09-18 23:33:06 +08:00
parent 85c8b51316
commit de0c97fc05
29 changed files with 3202 additions and 1852 deletions
@@ -53,8 +53,8 @@ export class PurchasePanel extends li_BaseView {
Utils.addInnerEL(InnerMsgCode.VipExpireChange, this, () => {
this.onVipExpireChange();
});
Utils.addInnerEL(InnerMsgCode.PayOrderCreateSucc, this, () => {
this.createOrRefreshWeb3PayPanel;
Utils.addInnerEL(InnerMsgCode.PayOrderCreateSucc, this, (data) => {
this.createOrRefreshWeb3PayPanel(data);
});
for (let index = 0; index < this.items.length; index++) {
@@ -75,6 +75,7 @@ export class PurchasePanel extends li_BaseView {
},
this
);
GButton.BandClick(
this._nodeTab.Buy30DayVipBtn,
() => {
@@ -85,6 +86,22 @@ export class PurchasePanel extends li_BaseView {
},
this
);
GButton.BandClick(
this._nodeTab.cashBtn,
() => {
// 购买7天会员
this.onClickCashBtn();
},
this
);
GButton.BandClick(
this._nodeTab.web3Btn,
() => {
// 购买7天会员
this.onClickWeb3Btn();
},
this
);
GButton.BandClick(
this._nodeTab.ReturnBtn,
() => {
@@ -145,6 +162,12 @@ export class PurchasePanel extends li_BaseView {
// 需要外部支付进行购买
this.startPayment(id, this.currentPayType, networkType);
}
//测试用
// Utils.sendInnerMsg(InnerMsgCode.PayOrderCreateSucc, {
// orderId: 123,
// payType: 1,
// goodId: 1001,
// });
}
createOrRefreshWeb3PayPanel(param: any) {
@@ -159,7 +182,7 @@ export class PurchasePanel extends li_BaseView {
if (
NavigationManager.Instance.getCurrentActivePanel() == PanelType.PERSONAL
)
if (this.web3PopPanel === null)
if (this.web3PopPanel == null)
NavigationManager.Instance.openSubPanel(
"Web3PopPanel",
this.node,