This commit is contained in:
2025-10-13 15:39:35 +08:00
parent f0069c2745
commit 4953b86bb3
27 changed files with 4771 additions and 2063 deletions
@@ -170,6 +170,6 @@ export class PersonalPanel extends li_BaseView {
}
private openFavorites() {
TipsPanel.show("敬请期待~");
TipsPanel.show(LanguageUtils.getText("rankpanel.comingsoon"));
}
}
@@ -141,7 +141,7 @@ export class PopupGirlDetailPanel extends li_BaseView {
} else {
this.base.refreshSelf();
}
NavigationManager.Instance.openPopupPanel("ReleasePanel");
TipsPanel.show(LanguageUtils.getText("releasepanel.releasesuccess"));
} else {
NavigationManager.Instance.openPopupPanel("ChargePopPanel");
}
@@ -160,10 +160,10 @@ export class PurchasePanel extends li_BaseView {
// VIP会员
const memberId7 = this.shopData.get7DayMemberId();
const price7 = this.shopData.getOriginalPriceById(memberId7);
this.vipPrice7.string = `$ ${price7}`;
this.vipPrice7.string = `${price7}`;
const memberId30 = this.shopData.get30DayMemberId();
const price30 = this.shopData.getOriginalPriceById(memberId30);
this.vipPrice30.string = `$ ${price30}`;
this.vipPrice30.string = `${price30}`;
}
// 0:cash 1:web3
@@ -521,11 +521,18 @@ export class ThemePanel extends li_BaseView {
const walletData = DataManager.I.getDataById<WalletData>(DataId.Wallet);
if (!walletData.isVip) {
this.vipLeftTime.string = LanguageUtils.getText("purchasepanel.notvip");
//this.vipLeftTime.string = LanguageUtils.getText("purchasepanel.notvip");
this._nodeTab.notvipicon.active = true;
this._nodeTab.notVip.active = true;
this.vipLeftTime.node.active = false;
} else {
const vipExpire = walletData.vipExpire;
const leftTime = Utils.formatVipLeftTime(vipExpire);
this.vipLeftTime.node.active = true;
this._nodeTab.notvipicon.active = false;
this._nodeTab.notVip.active = false;
if (leftTime == null) {
LanguageUtils.getText("purchasepanel.notvip");
@@ -13,7 +13,7 @@ import { SDKManager } from "../../../Main/Channel/SDKManager";
import LanguageUtils from "../../../Main/Common/LanguageUtils";
import { logger } from "db://assets/Scripts/Main/Common/Logger";
import { PersonalPanel } from "./PersonalPanel";
import { PaymentMethod } from 'db://assets/Scripts/chat18x/payment/types';
import { PaymentMethod } from "db://assets/Scripts/chat18x/payment/types";
const { ccclass, property } = _decorator;
@@ -62,6 +62,7 @@ export class Web3PopPanel extends li_BaseView {
this.registerListener();
this.selection.setScale(new Vec3(1, 0, 1));
this._nodeTab.WD_AN_JT2.active = false;
this.refreshView();
}
@@ -144,7 +145,7 @@ export class Web3PopPanel extends li_BaseView {
case proto.cs.EnmNetworkType.ENT_TRON:
ResManager.I.changeResourceSpriteFrame(
this.coinIcon,
"ui/web3pop/coinIcon/Tron"
"ui/web3pop/coinIcon/SHOP_ICON_HB1"
);
this.coinText.string = "Tron(TRC20)";
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
@@ -155,7 +156,7 @@ export class Web3PopPanel extends li_BaseView {
case proto.cs.EnmNetworkType.ENT_TON:
ResManager.I.changeResourceSpriteFrame(
this.coinIcon,
"ui/web3pop/coinIcon/TON"
"ui/web3pop/coinIcon/SHOP_ICON_HB2"
);
this.coinText.string = "TON";
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
@@ -166,7 +167,7 @@ export class Web3PopPanel extends li_BaseView {
case proto.cs.EnmNetworkType.ENT_ETH:
ResManager.I.changeResourceSpriteFrame(
this.coinIcon,
"ui/web3pop/coinIcon/ETH"
"ui/web3pop/coinIcon/SHOP_ICON_HB3"
);
this.coinText.string = "ETH";
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
@@ -177,7 +178,7 @@ export class Web3PopPanel extends li_BaseView {
case proto.cs.EnmNetworkType.ENT_BEP:
ResManager.I.changeResourceSpriteFrame(
this.coinIcon,
"ui/web3pop/coinIcon/BEP"
"ui/web3pop/coinIcon/SHOP_ICON_HB4"
);
this.coinText.string = "BEP";
this.tips.string = LanguageUtils.getText("web3panel.tips").replace(
@@ -205,8 +206,16 @@ export class Web3PopPanel extends li_BaseView {
updateSelectNetwork() {}
isSelectionOpen = false;
onClickCoinTypeSelectBtn() {
this.selection.scale = new Vec3(1, 1, 1);
if (this.isSelectionOpen) {
this.selection.scale = new Vec3(1, 0, 1);
this._nodeTab.WD_AN_JT2.active = false;
} else {
this.selection.scale = new Vec3(1, 1, 1);
this._nodeTab.WD_AN_JT2.active = true;
}
this.isSelectionOpen = !this.isSelectionOpen;
}
onClickCoinType(type: proto.cs.EnmNetworkType) {
@@ -229,6 +238,8 @@ export class Web3PopPanel extends li_BaseView {
);
this.selection.scale = new Vec3(1, 0, 1);
this._nodeTab.WD_AN_JT2.active = false;
this.isSelectionOpen = false;
}
onClickCopy() {