优化加载显示
This commit is contained in:
@@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user