1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
//
// WithdrawalTableViewController.m
// Lighting
//
// Created by 曹云霄 on 16/8/28.
// Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//
#import "WithdrawalTableViewController.h"
@interface WithdrawalTableViewController ()
@end
@implementation WithdrawalTableViewController
- (void)viewDidLoad {
[super viewDidLoad];
[self uiConfigAction];
[self fillDataAction];
}
#pragma mark - UI
- (void)uiConfigAction
{
self.tableView.tableFooterView = [UIView new];
}
#pragma mark - 填充数据
- (void)fillDataAction
{
BOOL boolValue = [self.model.billStates isEqualToString:@"accomplished"] || [self.model.billStates isEqualToString:@"reject"];
self.progressImageView.image = boolValue?TCImage(@"finish"):TCImage(@"progress");
self.applyCompleteLabel.textColor = [BaseViewController setupLabelColor:self.model.billStates][@"color"];
self.applyCompleteLabel.text = [BaseViewController setupLabelColor:self.model.billStates][@"text"];
self.submitApplyTimeLabel.text = self.model.createDate;
self.orderTimeLabel.text = self.model.createDate;
self.orderBillNumberLabel.text = self.model.billNumber;
self.amountLabel.text = [self.model.applyMoney stringValue];
}
@end