This commit is contained in:
启星
2025-11-28 22:43:06 +08:00
parent 8913ea6f48
commit 7eb4f8d3b8
197 changed files with 7315 additions and 666 deletions

View File

@@ -25,7 +25,7 @@
#import "QXUserCpDressView.h"
#import "QXHeartBeatSpaceViewController.h"
@interface QXRoomUserInfoView()<UIGestureRecognizerDelegate,SDCycleScrollViewDelegate,QXMenuPopViewDelegate,UICollectionViewDelegate,UICollectionViewDataSource>
@interface QXRoomUserInfoView()<UIGestureRecognizerDelegate,SDCycleScrollViewDelegate,QXMenuPopViewDelegate,UICollectionViewDelegate,UICollectionViewDataSource,QXUserCpCardViewDelegate>
@property (nonatomic,strong)UIView *bgView;
@property (nonatomic,strong)UIImageView *bgImageView;
///
@@ -395,6 +395,8 @@
self.cpContentView = [[QXUserCpCardView alloc] init];
self.cpContentView.userId = self.userId;
self.cpContentView.delegate = self;
MJWeakSelf
[self.cpContentView addTapBlock:^(id _Nonnull obj) {
QXHeartBeatSpaceViewController*vc = [[QXHeartBeatSpaceViewController alloc] init];
@@ -454,7 +456,22 @@
-(BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{
return touch.view == self;
}
-(void)didClickHeaderViewUserId:(NSString*)userId{
[self hide];
QXUserHomePageViewController *vc = [[QXUserHomePageViewController alloc] init];
vc.user_id = userId;
[self.viewController.navigationController pushViewController:vc animated:YES];
}
-(void)didClickHeaderCardViewWithUserId:(NSString*)userId{
if (self.userModel.cp_info != nil) {
[self hide];
QXHeartBeatSpaceViewController *vc = [[QXHeartBeatSpaceViewController alloc] init];
vc.userId = self.userId;
[self.viewController.navigationController pushViewController:vc animated:YES];
}
}
-(void)clearCharmAction{
[QXMineNetwork roomClearCharmWithRoomId:self.roomId userId:self.userId successBlock:^(NSDictionary * _Nonnull dict) {
@@ -495,6 +512,7 @@
//}
-(void)setUserId:(NSString *)userId{
_userId = userId;
self.cpContentView.userId = self.userId;
if (self.isCompere) {
// @TA...
self.moreBtn.hidden = NO;
@@ -591,6 +609,8 @@
weakSelf.cpDressView.hidden = NO;
weakSelf.cpDressView.model = model.cp_info;
weakSelf.cpContentView.model = model.cp_info;
}else{
[weakSelf.cpContentView resetView];
}
// weakSelf.sexImageView.image = model.sex.intValue==1?[UIImage imageNamed:@"user_sex_boy"]:[UIImage imageNamed:@"user_sex_girl"];
// [weakSelf.sexImageView mas_remakeConstraints:^(MASConstraintMaker *make) {
@@ -601,7 +621,11 @@
[weakSelf.collectionView reloadData];
weakSelf.idLabel.text = [NSString stringWithFormat:@"%@ ID:%@",model.sex.intValue==1?@"男":@"女",model.user_code];
weakSelf.guildLabel.text = [NSString stringWithFormat:@"所属公会:%@",[model.guild isExist]?model.guild:@"无"];
weakSelf.joinGuildBtn.hidden = ![model.guild isExist];
if (![model.guild isExist] && ![weakSelf.userId isEqualToString:QXGlobal.shareGlobal.loginModel.user_id]) {
weakSelf.joinGuildBtn.hidden = NO;
}else{
weakSelf.joinGuildBtn.hidden = YES;
}
[weakSelf.upSeatBtn setTitle:model.is_in_pit.intValue==1?QXText(@"下麦"):QXText(@"抱麦") forState:(UIControlStateNormal)];
[weakSelf.moreGiftBtn setTitle:[NSString localizedStringWithFormat:QXText(@"90天内累计收到%@个礼物"),model.gift_num] forState:(UIControlStateNormal)];
[weakSelf.moreGiftBtn qx_layoutButtonNOSizeToFitWithEdgeInsetsStyle:(QXButtonEdgeInsetsStyleRight) imageTitleSpace:2];