Initial commit
This commit is contained in:
+58
@@ -0,0 +1,58 @@
|
||||
//
|
||||
// IFishUserActivityListCell.m
|
||||
// Ifish
|
||||
//
|
||||
// Created by imac on 2017/5/12.
|
||||
// Copyright © 2017年 lianlian. All rights reserved.
|
||||
//
|
||||
|
||||
#import "IFishUserActivityListCell.h"
|
||||
#import "UIImageView+WebCache.h"
|
||||
#import "FishActivityData.h"
|
||||
@implementation IFishUserActivityListCell
|
||||
|
||||
- (void)awakeFromNib {
|
||||
[super awakeFromNib];
|
||||
// Initialization code
|
||||
self.userImg.layer.masksToBounds = YES;
|
||||
self.userImg.layer.cornerRadius = self.userImg.frame.size.width/2;
|
||||
|
||||
}
|
||||
|
||||
-(void)layoutSubviews{
|
||||
|
||||
|
||||
}
|
||||
|
||||
-(void)loadDataWith:(IFishUserActivityData*)data typeArr:(NSMutableArray *)typArr{
|
||||
|
||||
|
||||
NSString*strUrl=[NSString stringWithFormat:@"%@%@",kGetIconUrl,data.userImg];
|
||||
[self.userImg sd_setImageWithURL:[NSURL URLWithString:strUrl] placeholderImage:[UIImage imageNamed:@"live_hold.png"]];
|
||||
self.levelLabel.text = [NSString stringWithFormat:@"LV%@",data.gradeNum];
|
||||
self.nameLab.text = data.nickName;
|
||||
NSString *dateStr = [NSString stringWithFormat:@"%@",data.createTime];
|
||||
NSDate *date = [dataContorl formatDateTime:dateStr];
|
||||
//NSLog(@"date***%@****",date);
|
||||
|
||||
NSString *riqi =[dataContorl getMonthAndDay:date];
|
||||
NSString *time = [dataContorl getHmWithDate:date];
|
||||
self.timeLabe.text = [NSString stringWithFormat:@"%@ %@",riqi,time];
|
||||
//self.timeLabe.text = data.createTime;
|
||||
for (FishActivityData *typ in typArr) {
|
||||
if ([data.activityType isEqualToString:typ.activityType]) {
|
||||
|
||||
self.descLabe.text = typ.typeDetail;
|
||||
|
||||
[self.noteView activityViewaddTitle:typ.typeTitle];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
|
||||
[super setSelected:selected animated:animated];
|
||||
|
||||
// Configure the view for the selected state
|
||||
}
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user