二卡八不显示离线,背包礼物一键全送增加提示
This commit is contained in:
@@ -11,7 +11,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
@interface QXDirectSetScaleView : UIView
|
||||
@property (nonatomic,strong)NSString *userId;
|
||||
@property (nonatomic,strong)NSString *roomId;
|
||||
|
||||
/// 转币
|
||||
@property (nonatomic,assign)BOOL isGiveCoin;
|
||||
|
||||
/// 头条
|
||||
|
||||
@@ -39,6 +39,9 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
/// 麦位视图类型
|
||||
@property (nonatomic,assign)QXRoomSeatContentViewType type;
|
||||
|
||||
/// 是否展示离线状态 需求暂定二卡八不展示离线状态
|
||||
@property (nonatomic,assign)BOOL noOffLine;
|
||||
|
||||
//@property (nonatomic,strong)QXRoomOwnerModel *userModel ;
|
||||
|
||||
-(void)updateUserCharm:(NSString*)charm;
|
||||
|
||||
@@ -197,6 +197,9 @@
|
||||
}
|
||||
|
||||
-(void)onlineStatusDidChanged:(NSNotification*)notice{
|
||||
if (self.noOffLine) {
|
||||
return;
|
||||
}
|
||||
NSDictionary *parm = notice.object;
|
||||
NSString *uid = [NSString stringWithFormat:@"%@",[parm objectForKey:@"user_id"]];
|
||||
BOOL isOnline = [[parm objectForKey:@"is_online"] boolValue];
|
||||
@@ -232,6 +235,9 @@
|
||||
[self stopAudioAnimation];
|
||||
}
|
||||
}
|
||||
-(void)setNoOffLine:(BOOL)noOffLine{
|
||||
_noOffLine = noOffLine;
|
||||
}
|
||||
-(void)setIsPK:(BOOL)isPK{
|
||||
_isPK = isPK;
|
||||
self.nameLabel.font = [UIFont systemFontOfSize:10];
|
||||
@@ -365,7 +371,11 @@
|
||||
if (pitModel.user_id.longValue > 0) {
|
||||
BOOL is_offline = [[[QXGlobal shareGlobal].offLineDict objectForKey:pitModel.user_id?pitModel.user_id:@"0"] boolValue];
|
||||
if (is_offline) {
|
||||
self.offlineImageView.hidden = NO;
|
||||
if (self.noOffLine) {
|
||||
self.offlineImageView.hidden = YES;
|
||||
}else{
|
||||
self.offlineImageView.hidden = NO;
|
||||
}
|
||||
}else{
|
||||
self.offlineImageView.hidden = YES;
|
||||
}
|
||||
|
||||
@@ -74,6 +74,7 @@ static NSInteger maxSeat = 8;
|
||||
for (int i = 0 ; i < maxSeat ; i++) {
|
||||
QXRoomSeatContentView *contentView = [[QXRoomSeatContentView alloc] init];
|
||||
contentView.number = i+1;
|
||||
contentView.noOffLine = YES;
|
||||
// [contentView addTapBlock:^(id _Nonnull obj) {
|
||||
// [weakSelf didClickSeatView:obj];
|
||||
// }];
|
||||
@@ -88,6 +89,8 @@ static NSInteger maxSeat = 8;
|
||||
}
|
||||
[self.seatArray addObject:self.compereView];
|
||||
[self.seatArray addObject:self.guestView];
|
||||
self.compereView.noOffLine = YES;
|
||||
self.guestView.noOffLine = YES;
|
||||
}
|
||||
|
||||
-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
|
||||
|
||||
Reference in New Issue
Block a user