牌照房半小时榜横幅
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user