房间收藏后隐藏收藏按钮
This commit is contained in:
@@ -579,6 +579,7 @@
|
||||
_beautifulImageViw = [[UIImageView alloc] init];
|
||||
_beautifulImageViw.userInteractionEnabled = YES;
|
||||
_beautifulImageViw.image = [UIImage imageNamed:@"common_icon_beautiful"];
|
||||
_beautifulImageViw.hidden = YES;
|
||||
}
|
||||
return _beautifulImageViw;
|
||||
}
|
||||
|
@@ -52,7 +52,7 @@
|
||||
[self.iconImageView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.width.height.mas_equalTo(12);
|
||||
make.centerY.mas_equalTo(self);
|
||||
make.left.mas_equalTo(0);
|
||||
make.left.mas_equalTo(7);
|
||||
}];
|
||||
}
|
||||
|
||||
|
@@ -224,12 +224,12 @@
|
||||
|
||||
if (roomInfo) {
|
||||
self.titleLabel.text = roomInfo.title;
|
||||
self.idLabel.text = [NSString stringWithFormat:@"ID:%ld",roomInfo.erbanNo];
|
||||
self.giftEffectImageView.hidden = roomInfo.hasAnimationEffect;
|
||||
if (roomInfo.uid == [AccountInfoStorage instance].getUid.integerValue) {
|
||||
self.collectButton.hidden = YES;
|
||||
} else {
|
||||
self.collectButton.hidden = NO;
|
||||
self.collectButton.selected = roomInfo.isRoomFans;
|
||||
self.collectButton.hidden = roomInfo.isRoomFans;
|
||||
}
|
||||
self.lockRoomImageView.hidden = roomInfo.roomPwd.length <= 0;
|
||||
}
|
||||
@@ -245,8 +245,7 @@
|
||||
if (roomInfo.uid == [AccountInfoStorage instance].getUid.integerValue) {
|
||||
self.collectButton.hidden = YES;
|
||||
} else {
|
||||
self.collectButton.hidden = NO;
|
||||
self.collectButton.selected = roomInfo.isRoomFans;
|
||||
self.collectButton.hidden = roomInfo.isRoomFans;
|
||||
}
|
||||
self.lockRoomImageView.hidden = roomInfo.roomPwd.length <= 0;
|
||||
}
|
||||
@@ -306,6 +305,7 @@
|
||||
if ([type isEqualToString:@"1"]) {///收藏的话
|
||||
[StatisticsServiceHelper trackEventWithKey:StatisticsServiceEventroom_collect_icon_click eventAttributes:@{@"roomUid" : @(self.hostDelegate.getRoomInfo.uid)}];
|
||||
[XCHUDTool showSuccessWithMessage:@"收藏成功"];
|
||||
sender.hidden = YES;
|
||||
if (self.hadShowCollectInScreen) {
|
||||
return;
|
||||
}
|
||||
@@ -442,7 +442,6 @@
|
||||
_collectButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
_collectButton.backgroundColor = [ThemeColor colorWithHexString:@"#67D7D7"];
|
||||
[_collectButton setTitle:@"收藏" forState:UIControlStateNormal];
|
||||
[_collectButton setTitle:@"已收藏" forState:UIControlStateSelected];
|
||||
[_collectButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
|
||||
_collectButton.titleLabel.font = [UIFont systemFontOfSize:11 weight:UIFontWeightMedium];
|
||||
_collectButton.layer.cornerRadius = 10;
|
||||
|
Reference in New Issue
Block a user