RegionsCell.m 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. self.nameLab.text = [NSString stringWithFormat:@"%@",dic[@"RI_NAME"]];
  20. self.nameLab.textColor = COLOR_THEME;
  21. NSString * statusStr = [NSString stringWithFormat:@"%@",dic[@"RI_AUDIT_STATUS"]];
  22. NSInteger status = [statusStr integerValue];
  23. if (status == 0) {
  24. self.statusLab.text = @"待审核";
  25. self.statusLab.textColor = [UIColor darkGrayColor];
  26. }else if (status == 1){
  27. self.statusLab.text = @"审核通过";
  28. self.statusLab.textColor = [UIColor blackColor];
  29. }else if (status == 2){
  30. self.statusLab.text = @"审核不通过";
  31. self.statusLab.textColor = [UIColor redColor];
  32. }
  33. self.address.text = [NSString stringWithFormat:@"地址:%@",dic[@"RI_ADDRESS"]];
  34. }
  35. @end