BogoInviteWithDrawItemCell.m 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. //
  2. // BogoInviteWithDrawItemCell.m
  3. // UniversalApp
  4. //
  5. // Created by Mac on 2021/6/10.
  6. // Copyright © 2021 voidcat. All rights reserved.
  7. //
  8. #import "BogoInviteWithDrawItemCell.h"
  9. #import "BogoInviteWithDrawResponseModel.h"
  10. @interface BogoInviteWithDrawItemCell ()
  11. @property (weak, nonatomic) IBOutlet UILabel *onlyLabel;
  12. @property (weak, nonatomic) IBOutlet UIImageView *onlyImageView;
  13. @property (weak, nonatomic) IBOutlet UILabel *moneyLabel;
  14. @property (weak, nonatomic) IBOutlet UIImageView *selectImageView;
  15. @end
  16. @implementation BogoInviteWithDrawItemCell
  17. - (void)awakeFromNib {
  18. [super awakeFromNib];
  19. // Initialization code
  20. }
  21. - (void)setModel:(BogoInviteWithDrawResponseModelList *)model{
  22. _model = model;
  23. self.onlyLabel.hidden = !model.is_only;
  24. self.onlyImageView.hidden = !model.is_only;
  25. self.moneyLabel.text = [NSString stringWithFormat:ASLocalizedString(@"%@元"),model.money];
  26. self.selectImageView.hidden = !model.selected;
  27. self.moneyLabel.textColor = model.selected ? [UIColor colorWithHexString:@"#F42416"] : [UIColor colorWithHexString:@"333333"];
  28. }
  29. @end