牌照房半小时榜横幅

This commit is contained in:
fengshuo
2022-06-07 17:51:32 +08:00
parent e74ac4c211
commit 98a184bebd
8 changed files with 155 additions and 80 deletions

View File

@@ -421,10 +421,9 @@
[self.datingProgresButton removeFromSuperview];
}
}
[self updateHourRankEntrance];
if (roomInfo.type == RoomType_Anchor) {
self.contributeEnterView.title = @"主播榜";
[self updateHourRankEntrance];
if (roomInfo.hadChangeRoomType) {
///
[Api requestInRoomFansTeam:^(BaseModel * _Nullable data, NSInteger code, NSString * _Nullable msg) {
@@ -436,7 +435,6 @@
} else {
self.contributeEnterView.title = @"房间榜";
[self.fansTeamEntranceView removeFromSuperview];
[self.hourRankEntranceView removeFromSuperview];
if (roomInfo.hadChangeRoomType) {
[self updateContrionEntranceWithRoomUid:[NSString stringWithFormat:@"%ld", roomInfo.uid] type:@"day"];
}
@@ -451,6 +449,7 @@
- (void)onRoomEntered {
RoomInfoModel * roomInfo = self.delegate.getRoomInfo;
NSString * roomUid = [NSString stringWithFormat:@"%ld", roomInfo.uid];
[self updateHourRankEntrance];
if (roomInfo.type == RoomType_Anchor) {//
self.contributeEnterView.title = @"主播榜";
if (![[AccountInfoStorage instance].getUid isEqualToString:roomUid]) {//
@@ -1365,15 +1364,19 @@
#pragma mark -
- (void)updateHourRankEntrance {
if (!self.hourRankEntranceView.superview) {
[self insertSubview:self.hourRankEntranceView atIndex:0];
[self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0);
make.centerY.mas_equalTo(self.contributeEnterView);
make.width.mas_equalTo(69);
make.height.mas_equalTo(22);
}];
}
if (self.delegate.getRoomInfo.type == RoomType_Anchor || self.delegate.getRoomInfo.isPermitRoom == PermitRoomType_Licnese) {
if (!self.hourRankEntranceView.superview) {
[self insertSubview:self.hourRankEntranceView atIndex:0];
[self.hourRankEntranceView mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0);
make.centerY.mas_equalTo(self.contributeEnterView);
make.width.mas_equalTo(69);
make.height.mas_equalTo(22);
}];
}
} else {
if (self.hourRankEntranceView.superview) {[self.hourRankEntranceView removeFromSuperview];}
}
}
#pragma mark - XPRoomLittleGameListViewDelegate