//
//  CardView.m
//  Car
//
//  Created by Javen on 2016/12/28.
//  Copyright © 2016年 上海勾芒信息科技. All rights reserved.
//

#import "CardView.h"
#import "CalculateHelper.h"
#import "UIImageView+WebCache.h"
@implementation CardView

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
- (void)setModel:(CardModel *)model {
  _model = model;
    [self.imgLogo sd_setImageWithURL:[NSURL URLWithString:model.productImageUrl]];
    self.labelTitle.text = model.productName;
    self.labelBillNumber.text = model.billNumber;
    self.labelMoney.text = [model.realPayTotal stringValue];
    self.imgState.hidden = ![model.state isEqualToString:@"checked"];

}

@end
