修改完成
This commit is contained in:
@@ -40,6 +40,8 @@
|
||||
|
||||
@property (nonatomic,strong) QXEffectSvgaView *micSvgaView;
|
||||
@property (nonatomic,strong) VAPView *micMp4View;
|
||||
|
||||
@property (nonatomic,strong)UIButton *headerBtn;
|
||||
@end
|
||||
|
||||
@implementation QXRoomSeatContentView
|
||||
@@ -143,7 +145,13 @@
|
||||
make.height.mas_equalTo(18);
|
||||
}];
|
||||
|
||||
MJWeakSelf
|
||||
self.charmBgView = [[UIView alloc] init];
|
||||
[self.charmBgView addTapBlock:^(id _Nonnull obj) {
|
||||
if (weakSelf.delegate && [weakSelf.delegate respondsToSelector:@selector(previewRoomUserCharmListWithUserId:)]) {
|
||||
[weakSelf.delegate previewRoomUserCharmListWithUserId:weakSelf.pitModel.user_id];
|
||||
}
|
||||
}];
|
||||
self.charmBgView.backgroundColor = RGB16A(0xffffff, 0.2);
|
||||
[self.charmBgView addRoundedCornersWithRadius:ScaleWidth(7.5)];
|
||||
self.charmBgView.hidden = YES;
|
||||
@@ -174,8 +182,20 @@
|
||||
make.centerX.equalTo(self.charmBgView).offset(7);
|
||||
}];
|
||||
|
||||
|
||||
self.headerBtn = [[UIButton alloc] init];
|
||||
[self.headerBtn addTarget:self action:@selector(headerAction) forControlEvents:(UIControlEventTouchUpInside)];
|
||||
[self addSubview:self.headerBtn];
|
||||
[self.headerBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.edges.equalTo(self.noUserImageView);
|
||||
}];
|
||||
}
|
||||
|
||||
-(void)headerAction{
|
||||
if (self.delegate && [self.delegate respondsToSelector:@selector(didClickUserHeaderWithPitModel:seatView:)]) {
|
||||
[self.delegate didClickUserHeaderWithPitModel:self.pitModel seatView:self];
|
||||
}
|
||||
}
|
||||
|
||||
-(void)onlineStatusDidChanged:(NSNotification*)notice{
|
||||
NSDictionary *parm = notice.object;
|
||||
NSString *uid = [NSString stringWithFormat:@"%@",[parm objectForKey:@"user_id"]];
|
||||
@@ -198,6 +218,7 @@
|
||||
}
|
||||
if ((info.uid == self.pitModel.user_id.longLongValue)) {
|
||||
if (info.volume > 0) {
|
||||
self.offlineImageView.hidden = YES;
|
||||
[self startAudioAnimation];
|
||||
}else{
|
||||
[self stopAudioAnimation];
|
||||
|
||||
Reference in New Issue
Block a user