imageItem 缓存池
This commit is contained in:
@@ -222,4 +222,25 @@ export class DetailImageItem extends Component {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
reset() {
|
||||
this.base = null;
|
||||
this.url = "";
|
||||
this.isImage = false;
|
||||
this.category = 0;
|
||||
this.girlId = 0;
|
||||
this.resId = 0;
|
||||
this.type = null;
|
||||
this.isVisible = false;
|
||||
|
||||
this.question.active = true;
|
||||
this.video.enabled = false;
|
||||
this.priceFrame.active = false;
|
||||
this.loading.active = false;
|
||||
this.videoPrice.string = "";
|
||||
|
||||
if (this.img && this.img.spriteFrame) {
|
||||
this.img.spriteFrame = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user