BogoInviteWithDrawLogCell.m 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // BogoVirsualDetailListCell.m
  3. // BuguLive
  4. //
  5. // Created by Mac on 2021/1/23.
  6. // Copyright © 2021 xfg. All rights reserved.
  7. //
  8. #import "BogoInviteWithDrawLogCell.h"
  9. #import "BogoVirtualListModel.h"
  10. #import "WBStatusHelper.h"
  11. @interface BogoInviteWithDrawLogCell ()
  12. @property (weak, nonatomic) IBOutlet UILabel *titleLabel;
  13. @property (weak, nonatomic) IBOutlet UILabel *timeLabel;
  14. @property (weak, nonatomic) IBOutlet UILabel *contentLabel;
  15. @property (weak, nonatomic) IBOutlet UILabel *accountLabel;
  16. @end
  17. @implementation BogoInviteWithDrawLogCell
  18. - (void)awakeFromNib {
  19. [super awakeFromNib];
  20. // Initialization code
  21. }
  22. - (void)setModel:(BogoVirtualListModel *)model{
  23. _model = model;
  24. self.titleLabel.text = model.content;
  25. self.timeLabel.text = [WBStatusHelper stringWithTimelineDate:[NSDate dateWithTimeIntervalSince1970:model.addtime.integerValue]];
  26. NSString *prefix = @"-";
  27. NSString *colorHex = @"#F42416";
  28. self.contentLabel.textColor = [UIColor colorWithHexString:colorHex];
  29. self.contentLabel.text = [NSString stringWithFormat:@"%@%@",prefix,model.money];
  30. }
  31. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  32. [super setSelected:selected animated:animated];
  33. // Configure the view for the selected state
  34. }
  35. @end