feat: 补充个人资料页公会信息

This commit is contained in:
eggmanQQQ
2024-09-19 18:58:23 +08:00
parent 61e316044d
commit 513cabbedc
14 changed files with 272 additions and 27 deletions

View File

@@ -69,17 +69,29 @@ typedef enum : NSUInteger {
if (self = [super init]) {
self.frame = CGRectMake(0, 0, KScreenWidth, 20);
UIView *greenLine = [[UIView alloc] init];
greenLine.layer.backgroundColor = UIColorFromRGB(0x04D5C6).CGColor;
greenLine.layer.cornerRadius = 2;
[self addSubview:greenLine];
[greenLine mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.mas_equalTo(kGetScaleWidth(15));
make.centerY.mas_equalTo(self);
make.size.mas_equalTo(CGSizeMake(3, 15));
}];
_titleLabel = [UILabel labelInitWithText:@""
font:[UIFont systemFontOfSize:16 weight:UIFontWeightBold]
textColor:UIColorFromRGB(0x191919)];
font:kFontSemibold(16)
textColor:[UIColor whiteColor]];
[self addSubview:_titleLabel];
[_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.leading.centerY.mas_equalTo(self);
make.centerY.mas_equalTo(self);
make.leading.mas_equalTo(greenLine.mas_trailing).offset(7);
}];
_numLabel = [UILabel labelInitWithText:@""
font:[UIFont systemFontOfSize:16 weight:UIFontWeightBold]
textColor:UIColorFromRGB(0x666666)];
font:kFontSemibold(16)
textColor:[UIColor whiteColor]];
[self addSubview:_numLabel];
[_numLabel mas_makeConstraints:^(MASConstraintMaker *make) {
make.centerY.mas_equalTo(self);
@@ -172,7 +184,7 @@ typedef enum : NSUInteger {
- (void)viewDidLoad {
[super viewDidLoad];
self.view.backgroundColor = [UIColor whiteColor];
self.view.backgroundColor = UIColorFromRGB(0x08151A);
[self initSubViews];
[self initSubViewConstraints];
@@ -256,7 +268,8 @@ typedef enum : NSUInteger {
return 78.5;
break;
case Album:
return 90;
// return 90;
return [XPMineAlbumTableViewCell cellHeight:self.userInfo.privatePhoto.count];
break;
case Medal:
return 140;
@@ -595,7 +608,7 @@ typedef enum : NSUInteger {
_tableView.delegate = self;
_tableView.dataSource = self;
_tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
_tableView.backgroundColor = [UIColor whiteColor];
_tableView.backgroundColor = [UIColor clearColor];
if (@available(iOS 11.0, *)) {
_tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}