更新页面 商店、主题

This commit is contained in:
2025-09-18 14:06:53 +08:00
parent 015bc1c2f7
commit 246d83f7bc
134 changed files with 14949 additions and 4424 deletions
+10 -16
View File
@@ -43,7 +43,6 @@ export class ThemePanel extends li_BaseView {
private _nodeTab: any = {};
coinNum: Label;
uid: Label;
itemInst: ThemeItem;
content: Node;
private vipLeftTime: Label;
@@ -65,7 +64,6 @@ export class ThemePanel extends li_BaseView {
Utils.parseNode(this.node, this._nodeTab);
this.coinNum = this._nodeTab.coinNum.getComponent(Label);
this.uid = this._nodeTab.uid.getComponent(Label);
this.recName = this._nodeTab.characterNameText.getComponent(Label);
this.recSprite = this._nodeTab.recPic.getComponent(Sprite);
this.vipLeftTime = this._nodeTab.vipText.getComponent(Label);
@@ -113,7 +111,7 @@ export class ThemePanel extends li_BaseView {
const accountData = DataManager.I.getDataById<AccountData>(
DataId.Account
);
this.uid.string = "uid: " + accountData.accId;
//this.uid.string = "uid: " + accountData.accId;
this.recId = 1;
// 检查是否已被取消
@@ -253,19 +251,15 @@ export class ThemePanel extends li_BaseView {
this.recName.string = LanguageUtils.getText(this.rectNameKey);
// 加载远程资源
const envData = DataManager.I.getDataById<EnvData>(DataId.Env);
let newPath = envData.cdn + "/" + "Girls/" + avatarPath + ".png";
ResManager.I.changeRemoteSpriteFrame(
this.recSprite,
newPath,
() => {
let sizeTran = this.recSprite.node.parent.getComponent(UITransform);
Utils.adjustBgPixelRatioToSize(
sizeTran.contentSize,
this.recSprite.node,
1
);
}
);
let newPath = envData.cdn + "/" + "Girls/" + avatarPath + ".png";
ResManager.I.changeRemoteSpriteFrame(this.recSprite, newPath, () => {
let sizeTran = this.recSprite.node.parent.getComponent(UITransform);
Utils.adjustBgPixelRatioToSize(
sizeTran.contentSize,
this.recSprite.node,
1
);
});
}
/**