相亲厅播放音乐入口位置调整

This commit is contained in:
chenguilong
2022-07-19 16:00:51 +08:00
parent 89b72f9cf1
commit 6fbcf4e197

View File

@@ -867,12 +867,21 @@
if (!self.musicEnterButton.superview) {
[self addSubview:self.musicEnterButton];
CGFloat topOffY = self.delegate.getRoomInfo.type == RoomType_Anchor || self.delegate.getRoomInfo.isPermitRoom == PermitRoomType_Licnese ? (kNavigationHeight+ 4 + 22 + 18) : (kNavigationHeight+ 4);
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0).offset(8);
make.top.mas_equalTo(topOffY);
make.width.mas_equalTo(79);
make.height.mas_equalTo(22);
}];
if (self.delegate.getRoomInfo.roomModeType == RoomModeType_Open_Blind) {//
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(self.hourRankEntranceView.mas_left).offset(-8);
make.centerY.mas_equalTo(self.contributeEnterView);
make.width.mas_equalTo(79);
make.height.mas_equalTo(22);
}];
} else {
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0).offset(8);
make.top.mas_equalTo(topOffY);
make.width.mas_equalTo(79);
make.height.mas_equalTo(22);
}];
}
}
} else {
[[RtcManager instance] changePlayState:BackMusicPlayState_Stop];
@@ -1500,12 +1509,21 @@
if (!self.musicEnterButton.superview) {
[self addSubview:self.musicEnterButton];
CGFloat topOffY = (self.delegate.getRoomInfo.type == RoomType_Anchor || self.delegate.getRoomInfo.isPermitRoom == PermitRoomType_Licnese) ? (kNavigationHeight+ 4 + 22 + 18) : (kNavigationHeight+ 4);
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0).offset(8);
make.top.mas_equalTo(topOffY);
make.width.mas_equalTo(79);
make.height.mas_equalTo(22);
}];
if (self.delegate.getRoomInfo.roomModeType == RoomModeType_Open_Blind) {//
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(self.hourRankEntranceView.mas_left).offset(-8);
make.centerY.mas_equalTo(self.contributeEnterView);
make.width.mas_equalTo(79);
make.height.mas_equalTo(22);
}];
} else {
[self.musicEnterButton mas_makeConstraints:^(MASConstraintMaker *make) {
make.right.mas_equalTo(0).offset(8);
make.top.mas_equalTo(topOffY);
make.width.mas_equalTo(79);
make.height.mas_equalTo(22);
}];
}
}
}
}