PersonInformationTableViewCell.m 1.32 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 19 20 21 22
    MyclientEntityModel *model = [Customermanager manager].model;
    [self.customerHeader sd_setImageWithURL:[NSURL URLWithString:model.picture] placeholderImage:REPLACEIMAGE];
    self.customerName.text = [Customermanager manager].model.name;
    self.companyName.text = [Customermanager manager].model.company;
    self.companyLocation.text = [Customermanager manager].model.address;
    self.customerPhoneNumber.text = [Customermanager manager].model.mobile;
勾芒's avatar
勾芒 committed
23

24 25
}

勾芒's avatar
勾芒 committed
26

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

勾芒's avatar
勾芒 committed
37 38 39



40 41 42 43 44 45 46
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end