Commit a51892a3ecd041d53c24fb709d5279f2a8b3ab90
1 parent
893957aa
提交加入审核中状态
Showing
1 changed file
with
17 additions
and
2 deletions
CNLiveServiceCenterModule/Classes/CNLiveServiceCenterModule/View/CNLiveBServiceCertificationCell.m
| ... | ... | @@ -118,13 +118,21 @@ |
| 118 | 118 | |
| 119 | 119 | if (model) { |
| 120 | 120 | |
| 121 | - if ([model.personStatus isEqualToString:@"1"]) { | |
| 121 | + if ([model.personStatus isEqualToString:@"1"]) {//已通过 | |
| 122 | 122 | self.certificationLogImageV.hidden = NO; |
| 123 | 123 | self.certificationBtn.selected = YES; |
| 124 | + [self.certificationBtn setTitle:@"已认证" forState:UIControlStateSelected]; | |
| 124 | 125 | [self.certificationBtn setBackgroundColor:RGBOF(0xeeeeee)]; |
| 125 | - }else { | |
| 126 | + }else if ([model.personStatus isEqualToString:@"2"]){//审核中 | |
| 127 | + self.certificationLogImageV.hidden = YES; | |
| 128 | + self.certificationBtn.selected = NO; | |
| 129 | + [self.certificationBtn setTitle:@"审核中" forState:UIControlStateNormal]; | |
| 130 | + [self.certificationBtn setBackgroundColor:RGBOF(0x4EABFD)]; | |
| 131 | + | |
| 132 | + }else {//未审核 | |
| 126 | 133 | self.certificationLogImageV.hidden = YES; |
| 127 | 134 | self.certificationBtn.selected = NO; |
| 135 | + [self.certificationBtn setTitle:@"去认证" forState:UIControlStateNormal]; | |
| 128 | 136 | [self.certificationBtn setBackgroundColor:RGBOF(0x4EABFD)]; |
| 129 | 137 | } |
| 130 | 138 | |
| ... | ... | @@ -169,10 +177,17 @@ |
| 169 | 177 | if ([model.institutionStatus isEqualToString:@"1"]) { |
| 170 | 178 | self.certificationLogImageV.hidden = NO; |
| 171 | 179 | self.certificationBtn.selected = YES; |
| 180 | + [self.certificationBtn setTitle:@"已认证" forState:UIControlStateSelected]; | |
| 172 | 181 | [self.certificationBtn setBackgroundColor:RGBOF(0xeeeeee)]; |
| 182 | + }else if ([model.institutionStatus isEqualToString:@"2"]) { | |
| 183 | + self.certificationLogImageV.hidden = YES; | |
| 184 | + self.certificationBtn.selected = NO; | |
| 185 | + [self.certificationBtn setTitle:@"审核中" forState:UIControlStateNormal]; | |
| 186 | + [self.certificationBtn setBackgroundColor:RGBOF(0xF0AD24)]; | |
| 173 | 187 | }else { |
| 174 | 188 | self.certificationLogImageV.hidden = YES; |
| 175 | 189 | self.certificationBtn.selected = NO; |
| 190 | + [self.certificationBtn setTitle:@"去认证" forState:UIControlStateNormal]; | |
| 176 | 191 | [self.certificationBtn setBackgroundColor:RGBOF(0xF0AD24)]; |
| 177 | 192 | } |
| 178 | 193 | ... | ... |