This commit is contained in:
2025-09-21 21:10:41 +08:00
parent 4431c100b5
commit fe534cacaf
4 changed files with 769 additions and 507 deletions
@@ -265,6 +265,13 @@ export class PurchasePanel extends li_BaseView {
walletData.balance = Number(resData.balance);
walletData.vipExpire = Number(resData.vipExpire);
// 刷新界面
TipsPanel.show(LanguageUtils.getText("payment.succeed"));
} else {
if (res && res.code) {
const key = "error_code_" + res.code;
TipsPanel.show(LanguageUtils.getText(key));
}
}
}
@@ -167,6 +167,7 @@ export class SettingPanel extends li_BaseView {
// GButton.BandClick(this._nodeTab.Language2, this.swithcToHi, this);
GButton.BandClick(this._nodeTab.closeBtn, this.onClickClose, this);
GButton.BandClick(this._nodeTab.bgClicker, this.onClickClose, this);
this.languageButtons.forEach((langBtn) => {
if (langBtn.button) {
@@ -36,7 +36,7 @@ export class PurchasePanelItem extends Component {
const count = shopData.getCountById(this.goodId);
this.count.string = count.toString();
const price = shopData.getOriginalPriceById(this.goodId);
this.price.string = price.toString();
this.price.string = "$" + price.toString();
let path = "";
if (type == 1) {
@@ -52,6 +52,9 @@ export class PurchasePanelItem extends Component {
}
async onClickThis() {
this.baseView.purchaseGood(this.goodId,this.baseView.getDefaultNetworkType());
this.baseView.purchaseGood(
this.goodId,
this.baseView.getDefaultNetworkType()
);
}
}
File diff suppressed because it is too large Load Diff