1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // 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{
-
- self.nameLab.text = [NSString stringWithFormat:@"%@",dic[@"RI_NAME"]];
- self.nameLab.textColor = COLOR_THEME;
-
-
- NSString * statusStr = [NSString stringWithFormat:@"%@",dic[@"RI_AUDIT_STATUS"]];
- NSInteger status = [statusStr integerValue];
- if (status == 0) {
- self.statusLab.text = @"待审核";
- self.statusLab.textColor = [UIColor darkGrayColor];
- }else if (status == 1){
- self.statusLab.text = @"审核通过";
- self.statusLab.textColor = [UIColor blackColor];
- }else if (status == 2){
- self.statusLab.text = @"审核不通过";
- self.statusLab.textColor = [UIColor redColor];
- }
-
-
- self.address.text = [NSString stringWithFormat:@"地址:%@",dic[@"RI_ADDRESS"]];
- }
- @end
|