RegionsCell.m 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. //
  2. // RegionsCell.m
  3. // LNManager
  4. //
  5. // Created by EchoShacolee on 2017/4/18.
  6. // Copyright © 2017年 lee. All rights reserved.
  7. //
  8. #import "RegionsCell.h"
  9. @implementation RegionsCell
  10. - (void)awakeFromNib {
  11. [super awakeFromNib];
  12. // Initialization code
  13. }
  14. - (void)setSelected:(BOOL)selected animated:(BOOL)animated {
  15. [super setSelected:selected animated:animated];
  16. // Configure the view for the selected state
  17. }
  18. -(void)upDataWithDic:(NSDictionary *)dic{
  19. NSString * statusStr = [NSString stringWithFormat:@"%@",dic[@"RI_AUDIT_STATUS"]];
  20. NSInteger status = [statusStr integerValue];
  21. if (status == 0) {
  22. self.statusLab.text = @"待审核";
  23. self.statusLab.textColor = [UIColor darkGrayColor];
  24. }else if (status == 1){
  25. self.statusLab.text = @"审核通过";
  26. self.statusLab.textColor = [UIColor blackColor];
  27. }else if (status == 2){
  28. self.statusLab.text = @"审核不通过";
  29. self.statusLab.textColor = [UIColor redColor];
  30. }
  31. self.nameLab.text = [NSString stringWithFormat:@"%@",dic[@"RI_NAME"]];
  32. self.nameLab.textColor = COLOR_THEME;
  33. self.address.text = [NSString stringWithFormat:@"地址:%@",dic[@"RI_ADDRESS"]];
  34. }
  35. @end