个播关闭礼物值时清除礼物值,坑位UI优化

This commit is contained in:
chenguilong
2022-03-04 11:53:33 +08:00
parent 13b99d99af
commit 7d37658fa6
7 changed files with 69 additions and 26 deletions

View File

@@ -114,6 +114,9 @@
if (roomInfo.type == RoomType_Anchor) {
[self.contributionButton setTitle:@"主播榜" forState:UIControlStateNormal];
self.anchorGiftValueView.hidden = !roomInfo.showGiftValue;
if (!roomInfo.showGiftValue) {
self.anchorGiftValueView.giftValue = 0;
}
} else {
[self.contributionButton setTitle:@"房间榜" forState:UIControlStateNormal];
self.anchorGiftValueView.hidden = YES;