|
|
@@ -32,15 +32,15 @@
|
|
|
|
|
|
[self.bgView addSubview:self.sortBtn];
|
|
|
[self.sortBtn mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.width.equalTo(@18.0);
|
|
|
- make.height.equalTo(@18.0);
|
|
|
- make.left.equalTo(self.bgView).offset(8.0);
|
|
|
+ make.width.equalTo(@28.0);
|
|
|
+ make.height.equalTo(@28.0);
|
|
|
+ make.left.equalTo(self.bgView).offset(5.0);
|
|
|
make.centerY.equalTo(self.bgView.mas_centerY);
|
|
|
}];
|
|
|
|
|
|
[self.bgView addSubview:self.headImg];
|
|
|
[self.headImg mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.left.equalTo(self.sortBtn.mas_right).offset(5.0);
|
|
|
+ make.left.equalTo(self.sortBtn.mas_right).offset(10.0);
|
|
|
make.centerY.equalTo(self.bgView.mas_centerY);
|
|
|
make.height.width.equalTo(@48.0);
|
|
|
}];
|
|
|
@@ -89,6 +89,15 @@
|
|
|
make.height.equalTo(@14.0);
|
|
|
}];
|
|
|
|
|
|
+ UIView *lineView = [[UIView alloc] init];
|
|
|
+ lineView.backgroundColor = [MOTools colorWithHexString:@"#DBDBDB" alpha:1.0];
|
|
|
+ [self.bgView addSubview:lineView];
|
|
|
+ [lineView mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.left.equalTo(self.headImg.mas_right);
|
|
|
+ make.right.bottom.equalTo(self.bgView);
|
|
|
+ make.height.equalTo(@0.5);
|
|
|
+ }];
|
|
|
+
|
|
|
}
|
|
|
|
|
|
- (void)awakeFromNib {
|
|
|
@@ -126,44 +135,44 @@
|
|
|
}
|
|
|
|
|
|
self.sortBtn.hidden = NO;
|
|
|
+ self.crownImg.hidden = YES;
|
|
|
[self.sortBtn setTitle:@"" forState:UIControlStateNormal];
|
|
|
|
|
|
- CGFloat sortBtnWidth = 18.0;
|
|
|
+// CGFloat sortBtnWidth = 18.0;
|
|
|
|
|
|
if(self.cellIndexPath.section == 0){
|
|
|
- [self.sortBtn setBackgroundImage:[UIImage imageNamed:@"icon_half_hour_one"] forState:UIControlStateNormal];
|
|
|
- [self.crownImg setImage:[UIImage imageNamed:@"icon_half_hour_jin"]];
|
|
|
+ [self.sortBtn setImage:[UIImage imageNamed:@"icon_voice_rank_jin"] forState:UIControlStateNormal];
|
|
|
+// [self.crownImg setImage:[UIImage imageNamed:@"icon_half_hour_jin"]];
|
|
|
}
|
|
|
else if (self.cellIndexPath.section == 1){
|
|
|
- [self.sortBtn setBackgroundImage:[UIImage imageNamed:@"icon_half_hour_two"] forState:UIControlStateNormal];
|
|
|
- [self.crownImg setImage:[UIImage imageNamed:@"icon_half_hour_yin"]];
|
|
|
+ [self.sortBtn setImage:[UIImage imageNamed:@"icon_voice_rank_yin"] forState:UIControlStateNormal];
|
|
|
+// [self.crownImg setImage:[UIImage imageNamed:@"icon_half_hour_yin"]];
|
|
|
}
|
|
|
else if (self.cellIndexPath.section == 2){
|
|
|
- [self.sortBtn setBackgroundImage:[UIImage imageNamed:@"icon_half_hour_three"] forState:UIControlStateNormal];
|
|
|
- [self.crownImg setImage:[UIImage imageNamed:@"icon_half_hour_tong"]];
|
|
|
+ [self.sortBtn setImage:[UIImage imageNamed:@"icon_voice_rank_tong"] forState:UIControlStateNormal];
|
|
|
+// [self.crownImg setImage:[UIImage imageNamed:@"icon_half_hour_tong"]];
|
|
|
}
|
|
|
else{
|
|
|
- [self.sortBtn setBackgroundImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
|
|
|
- self.crownImg.hidden = YES;
|
|
|
+ [self.sortBtn setImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
|
|
|
NSInteger sortNum = self.cellIndexPath.section + 1;
|
|
|
NSString *sortStr = [NSString stringWithFormat:@"%zd",sortNum];
|
|
|
- sortBtnWidth = [MOTools getWidthWithString:sortStr font:[UIFont boldSystemFontOfSize:12.0]] + 3.0;
|
|
|
+// sortBtnWidth = [MOTools getWidthWithString:sortStr font:[UIFont boldSystemFontOfSize:12.0]] + 3.0;
|
|
|
[self.sortBtn setTitle:[NSString stringWithFormat:@"%zd",sortNum] forState:UIControlStateNormal];
|
|
|
}
|
|
|
|
|
|
- if(sortBtnWidth < 18.0){
|
|
|
- sortBtnWidth = 18.0;
|
|
|
- }
|
|
|
-
|
|
|
- if(sortBtnWidth > 40.0){
|
|
|
- sortBtnWidth = 40.0;
|
|
|
- }
|
|
|
-
|
|
|
+// if(sortBtnWidth < 18.0){
|
|
|
+// sortBtnWidth = 18.0;
|
|
|
+// }
|
|
|
+//
|
|
|
+// if(sortBtnWidth > 40.0){
|
|
|
+// sortBtnWidth = 40.0;
|
|
|
+// }
|
|
|
+//
|
|
|
self.contentLab.text = [NSString stringWithFormat:@"%.f like",cellModel.like];
|
|
|
-
|
|
|
- [self.sortBtn mas_updateConstraints:^(MASConstraintMaker *make) {
|
|
|
- make.width.equalTo(@(sortBtnWidth));
|
|
|
- }];
|
|
|
+//
|
|
|
+// [self.sortBtn mas_updateConstraints:^(MASConstraintMaker *make) {
|
|
|
+// make.width.equalTo(@(sortBtnWidth));
|
|
|
+// }];
|
|
|
|
|
|
if(cellModel.userBase.userProfile.adornment.headdress.length > 0){
|
|
|
self.headBgView.hidden = NO;
|
|
|
@@ -197,8 +206,8 @@
|
|
|
_sortBtn.imageView.contentMode = UIViewContentModeScaleAspectFill;
|
|
|
_sortBtn.imageView.layer.masksToBounds = YES;
|
|
|
_sortBtn.userInteractionEnabled = NO;
|
|
|
- [_sortBtn setFont:[UIFont boldSystemFontOfSize:12.0]];
|
|
|
- [_sortBtn setTitleColor:[MOTools colorWithHexString:@"#BCBCBC" alpha:1.0] forState:UIControlStateNormal];
|
|
|
+ [_sortBtn setFont:[MOTextTools getTheFontWithSize:20.0 AndFontName:@"Akrobat"]];
|
|
|
+ [_sortBtn setTitleColor:[MOTools colorWithHexString:@"#737373" alpha:1.0] forState:UIControlStateNormal];
|
|
|
}
|
|
|
return _sortBtn;
|
|
|
}
|
|
|
@@ -233,7 +242,7 @@
|
|
|
{
|
|
|
_nameLab = [[UILabel alloc] init];
|
|
|
_nameLab.text = @"";
|
|
|
- _nameLab.font = [UIFont systemFontOfSize:14.0];
|
|
|
+ _nameLab.font = [MOTextTools getTheFontWithSize:13.0 AndFontName:@"Akrobat"];
|
|
|
_nameLab.textColor = [MOTools colorWithHexString:@"#000000" alpha:1.0];
|
|
|
_nameLab.textAlignment = NSTextAlignmentLeft;
|
|
|
|
|
|
@@ -255,8 +264,8 @@
|
|
|
{
|
|
|
_contentLab = [[UILabel alloc] init];
|
|
|
_contentLab.text = @"";
|
|
|
- _contentLab.font = [UIFont systemFontOfSize:10.0];
|
|
|
- _contentLab.textColor = [MOTools colorWithHexString:@"#FFB637" alpha:1.0];
|
|
|
+ _contentLab.font = [MOTextTools getTheFontWithSize:13.0 AndFontName:@"Akrobat"];
|
|
|
+ _contentLab.textColor = [MOTools colorWithHexString:@"#FACB52" alpha:1.0];
|
|
|
_contentLab.textAlignment = NSTextAlignmentLeft;
|
|
|
|
|
|
}
|