酷店

KDPAccountListCell.m 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. //
  2. // KDPAccountList.m
  3. // KuDianProject
  4. //
  5. // Created by 学丽 on 2019/7/8.
  6. // Copyright © 2019 KDP. All rights reserved.
  7. //
  8. #import "KDPAccountListCell.h"
  9. @implementation KDPAccountListCell
  10. -(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
  11. {
  12. self=[super initWithStyle:style reuseIdentifier:reuseIdentifier];
  13. if (self) {
  14. self.iconImgV=[[UIImageView alloc]initWithFrame:CGRectMake(15, 14, 42, 42)];
  15. self.iconImgV.backgroundColor=[UIColor colorWithHexString:LineColor];
  16. self.iconImgV.layer.cornerRadius=21;
  17. self.iconImgV.layer.masksToBounds=YES;
  18. [self addSubview:self.iconImgV];
  19. self.titleLabel =[[UILabel alloc]initWithFrame:CGRectMake(self.iconImgV.right+13, self.iconImgV.top, 100, 22)];
  20. self.titleLabel.textColor=[UIColor colorWithHexString:fontColor];
  21. self.titleLabel.font=[UIFont systemFontOfSize:16];
  22. self.titleLabel.text=@"----";
  23. [self addSubview:self.titleLabel];
  24. self.timeLabel=[[UILabel alloc]initWithFrame:CGRectMake(self.titleLabel.left, self.titleLabel.bottom+4, 100, 17)];
  25. self.timeLabel.textColor=[UIColor colorWithHexString:@"#999999"];
  26. self.timeLabel.text=@"----";
  27. self.timeLabel.font=[UIFont systemFontOfSize:12];
  28. [self addSubview:self.timeLabel];
  29. self.moneyLabel=[[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH-155, self.iconImgV.top, 140, 25)];
  30. self.moneyLabel.textColor=[UIColor colorWithHexString:fontColor];
  31. self.moneyLabel.font=[UIFont boldSystemFontOfSize:18];
  32. self.moneyLabel.text=@"--";
  33. self.moneyLabel.textAlignment=NSTextAlignmentRight;
  34. [self addSubview:self.moneyLabel];
  35. self.tipeLabel =[[UILabel alloc]initWithFrame:CGRectMake(SCREEN_WIDTH-205, self.moneyLabel.bottom+2, 190, 17)];
  36. self.tipeLabel.textColor=[UIColor colorWithHexString:@"#E04A4A"];
  37. self.tipeLabel.font=[UIFont systemFontOfSize:12];
  38. self.tipeLabel.textAlignment=NSTextAlignmentRight;
  39. self.tipeLabel.text=@"申请中";
  40. [self addSubview:self.tipeLabel];
  41. UIView *lineV=[[UIView alloc]initWithFrame:CGRectMake(self.iconImgV.right, 79, self.width-self.iconImgV.right-10, 1)];
  42. lineV.backgroundColor=[UIColor colorWithHexString:LineColor];
  43. [self addSubview:lineV];
  44. }
  45. return self;
  46. }
  47. @end