// // RegionsCell.m // LNManager // // Created by EchoShacolee on 2017/4/18. // Copyright © 2017年 lee. All rights reserved. // #import "RegionsCell.h" @implementation RegionsCell - (void)awakeFromNib { [super awakeFromNib]; // Initialization code } - (void)setSelected:(BOOL)selected animated:(BOOL)animated { [super setSelected:selected animated:animated]; // Configure the view for the selected state } -(void)upDataWithDic:(NSDictionary *)dic{ NSString * statusStr = [NSString stringWithFormat:@"%@",dic[@"RI_AUDIT_STATUS"]];//审核状态: 0未申请; 1审核中; 2已审核; NSInteger status = [statusStr integerValue]; if (status == 0) { self.statusLab.text = @"未申请"; self.statusLab.textColor = [UIColor redColor]; }else if (status == 1){ self.statusLab.text = @"审核中"; self.statusLab.textColor = [UIColor lightGrayColor]; }else if (status == 2){ self.statusLab.text = @"已审核"; self.statusLab.textColor = [UIColor darkGrayColor]; } self.nameLab.text = [NSString stringWithFormat:@"%@",dic[@"RI_NAME"]]; self.nameLab.textColor = RQMianColor; self.address.text = [NSString stringWithFormat:@"地址:%@",dic[@"RI_ADDRESS"]]; } @end