//
//  OrderListHeaderView.m
//  ALand
//
//  Created by Z on 16/5/19.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "OrderListHeaderView.h"

@interface OrderListHeaderView ()
@property (weak, nonatomic) IBOutlet UILabel *labelState;
@property (weak, nonatomic) IBOutlet UILabel *labelCosumer;
@property (weak, nonatomic) IBOutlet UILabel *labelTime;

@end
@implementation OrderListHeaderView

- (void)setUpViewWithModel:(JavenOrderModel *)model state:(NSString *)state
{
    self.labelCosumer.text = [model.shipType isEqualToString:@"selfpick"] ? model.consumer.code : model.address.telephone;
    self.labelTime.text = [(JavenCreateInfo *)model.createInfo time];
    self.labelState.text = [model.state getOrderStateString];
}
/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
