修复首页bug

This commit is contained in:
liyuhua
2023-10-18 18:31:08 +08:00
parent 7c3c564074
commit 01c06f8985

View File

@@ -127,7 +127,12 @@
- (void)setRoomInfo:(HomePlayRoomModel *)roomInfo{
_roomInfo = roomInfo;
_nameView.text = _roomInfo.title;
_bgImageView.imageUrl = _roomInfo.avatar;
_bgImageView.image = nil;
@kWeakify(self);
[self.bgImageView loadImageWithUrl:_roomInfo.avatar completion:^(UIImage * _Nonnull image, NSURL * _Nonnull url) {
@kStrongify(self);
self.bgImageView.image = image;
}];
_tagBgImageView.imageUrl = _roomInfo.tagPict;
_heatView.text = @(_roomInfo.onlineNum).stringValue;
_rankImageView.image = nil;