PersonInformationTableViewCell.m 1.28 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
//
//  PersonInformationTableViewCell.m
//  Lighting
//
//  Created by 曹云霄 on 16/5/4.
//  Copyright © 2016年 上海勾芒科技有限公司. All rights reserved.
//

#import "PersonInformationTableViewCell.h"

@implementation PersonInformationTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
勾芒's avatar
勾芒 committed
16
    
勾芒's avatar
勾芒 committed
17 18
    MyclientEntityModel *model = [Customermanager manager].model;
    [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:model.picture] placeholderImage:REPLACEIMAGE];
19 20 21 22
    self.customerName.text = model.name;
    self.companyName.text = model.company;
    self.customerPhoneNumber.text = model.mobile;
    self.customerAddress.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address];
23 24
}

勾芒's avatar
勾芒 committed
25 26 27
- (void)setModel:(TOConsumerEntity *)model
{
    _model = model;
28
    [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:_model.picture] placeholderImage:ReplaceImage];
勾芒's avatar
勾芒 committed
29
    self.customerName.text = _model.name;
勾芒's avatar
勾芒 committed
30
    self.companyName.text = _model.company;
勾芒's avatar
勾芒 committed
31
    self.customerPhoneNumber.text = _model.mobile;
32
    self.customerAddress.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address];
勾芒's avatar
勾芒 committed
33 34
}

勾芒's avatar
勾芒 committed
35

36
@end