//
//  CustomerTableViewCell.m
//  ALand
//
//  Created by Z on 16/4/15.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "CustomerTableViewCell.h"
#import "MBLabelWithFontAdapter.h"
@interface CustomerTableViewCell ()
@property (weak, nonatomic) IBOutlet MBLabelWithFontAdapter *labelOrderCount;
@property (weak, nonatomic) IBOutlet MBLabelWithFontAdapter *labelCommissionTotal;
@property (weak, nonatomic) IBOutlet UILabel *labelPhoneNumber;

@end
@implementation CustomerTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)cellwithModel:(JavenCustomer *)model {
    self.labelOrderCount.text = [NSString stringWithFormat:@"%.0f",model.orderCount];
    self.labelCommissionTotal.text = [NSString stringWithFormat:@"%.2f", model.commissionTotal];
    self.labelPhoneNumber.text = [NSString stringWithFormat:@"%@", model.consumer.mobilephone];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
