优化加载显示

This commit is contained in:
2025-09-11 15:01:03 +08:00
parent 7ed18b410d
commit d6a9898c8d
13 changed files with 4532 additions and 2238 deletions
@@ -41,7 +41,8 @@ export class GirlListItem extends Component {
@property(Node)
starParent: Node;
@property(Node)
loading: Node;
stars: Sprite[];
id: number = -1;
@@ -133,15 +134,16 @@ export class GirlListItem extends Component {
// this.price.node.active = priceType == PriceType.pay;
// this.freeNode.active = priceType == PriceType.free;
//this.tryNode.active = priceType == PriceType.first_time_free;
let listAvatarPath = girlData.getGrilAvatar(
let avatarPath = girlData.getGrilAvatar(
this.category.toString(),
this.id
);
this.loading.active = true;
//listAvatarPath = listAvatarPath.replace("Avatar", "avatar"); //临时
ResManager.I.changeBundleSpriteFrame(
this.avatar,
listAvatarPath,
avatarPath,
"Girls",
() => {
let sizeTran = this.avatar.node.parent.getComponent(UITransform);
@@ -150,6 +152,7 @@ export class GirlListItem extends Component {
this.avatar.node,
2
);
this.loading.active = false;
}
);