update
This commit is contained in:
@@ -29,12 +29,6 @@ export class GirlListItem extends Component {
|
||||
girlName: Label;
|
||||
@property(Label)
|
||||
tags: Label;
|
||||
@property(Label)
|
||||
price: Label;
|
||||
@property(Node)
|
||||
freeNode: Node;
|
||||
@property(Node)
|
||||
unreleaseCover: Node;
|
||||
|
||||
@property(Node)
|
||||
chatIcon: Node;
|
||||
@@ -107,34 +101,10 @@ export class GirlListItem extends Component {
|
||||
this.category.toString(),
|
||||
this.id
|
||||
);
|
||||
this.price.string = girlData
|
||||
.getGrilOriginalPrice(this.category.toString(), this.id)
|
||||
.toString();
|
||||
|
||||
this.price.node.active = false;
|
||||
this.freeNode.active = false;
|
||||
this.starParent.active = true;
|
||||
this.chatIcon.active = true;
|
||||
this.unreleaseCover.active = false;
|
||||
// if (isRelease) {
|
||||
|
||||
// } else {
|
||||
// this.unreleaseCover.active = true;
|
||||
// this.chatIcon.active = false;
|
||||
// if (priceType == PriceType.free) {
|
||||
// this.price.node.active = false;
|
||||
// this.freeNode.active = true;
|
||||
// this.starParent.active = true;
|
||||
// } else {
|
||||
// this.price.node.active = true;
|
||||
// this.freeNode.active = false;
|
||||
// this.starParent.active = false;
|
||||
// }
|
||||
// }
|
||||
|
||||
// this.price.node.active = priceType == PriceType.pay;
|
||||
// this.freeNode.active = priceType == PriceType.free;
|
||||
//this.tryNode.active = priceType == PriceType.first_time_free;
|
||||
let avatarPath = girlData.getGrilAvatar(this.category.toString(), this.id);
|
||||
this.loading.active = true;
|
||||
|
||||
@@ -182,14 +152,9 @@ export class GirlListItem extends Component {
|
||||
// 清理文本内容
|
||||
if (this.girlName) this.girlName.string = "";
|
||||
if (this.tags) this.tags.string = "";
|
||||
if (this.price) this.price.string = "";
|
||||
|
||||
// 重置可见性状态
|
||||
if (this.price?.node) this.price.node.active = false;
|
||||
if (this.freeNode) this.freeNode.active = false;
|
||||
if (this.starParent) this.starParent.active = false;
|
||||
if (this.chatIcon) this.chatIcon.active = false;
|
||||
if (this.unreleaseCover) this.unreleaseCover.active = false;
|
||||
|
||||
// 清理头像
|
||||
if (this.avatar) {
|
||||
|
||||
Reference in New Issue
Block a user