RegionsCell.m 1.3 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"]];//审核状态: 0未申请; 1审核中; 2已审核;
  20. NSInteger status = [statusStr integerValue];
  21. if (status == 0) {
  22. self.statusLab.text = @"未申请";
  23. self.statusLab.textColor = [UIColor redColor];
  24. }else if (status == 1){
  25. self.statusLab.text = @"审核中";
  26. self.statusLab.textColor = [UIColor lightGrayColor];
  27. }else if (status == 2){
  28. self.statusLab.text = @"已审核";
  29. self.statusLab.textColor = [UIColor darkGrayColor];
  30. }
  31. self.nameLab.text = [NSString stringWithFormat:@"%@",dic[@"RI_NAME"]];
  32. self.nameLab.textColor = RQMianColor;
  33. self.address.text = [NSString stringWithFormat:@"地址:%@",dic[@"RI_ADDRESS"]];
  34. }
  35. @end