Commit cc71cc49 authored by 曹云霄's avatar 曹云霄

优化客户地址显示异常

parent e33e60a5
...@@ -20,38 +20,16 @@ ...@@ -20,38 +20,16 @@
*/ */
@property (weak, nonatomic) IBOutlet UILabel *customerName; @property (weak, nonatomic) IBOutlet UILabel *customerName;
/** /**
* 公司名称 * 公司名称
*/ */
@property (weak, nonatomic) IBOutlet UILabel *companyName; @property (weak, nonatomic) IBOutlet UILabel *companyName;
/**
* 电子邮箱
*/
@property (weak, nonatomic) IBOutlet UILabel *emailName;
/**
* 公司地址
*/
@property (weak, nonatomic) IBOutlet UILabel *companyLocation;
/** /**
* 手机号码 * 手机号码
*/ */
@property (weak, nonatomic) IBOutlet UILabel *customerPhoneNumber; @property (weak, nonatomic) IBOutlet UILabel *customerPhoneNumber;
/**
* 电话号码
*/
@property (weak, nonatomic) IBOutlet UILabel *customerNumbers;
/**
* QQ
*/
@property (weak, nonatomic) IBOutlet UILabel *customerQQNumber;
/** /**
* 订单数据 * 订单数据
*/ */
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
self.customerName.text = model.name; self.customerName.text = model.name;
self.companyName.text = model.company; self.companyName.text = model.company;
self.customerPhoneNumber.text = model.mobile; self.customerPhoneNumber.text = model.mobile;
self.companyLocation.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address]; self.customerAddress.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address];
} }
- (void)setModel:(TOConsumerEntity *)model - (void)setModel:(TOConsumerEntity *)model
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
self.customerName.text = _model.name; self.customerName.text = _model.name;
self.companyName.text = _model.company; self.companyName.text = _model.company;
self.customerPhoneNumber.text = _model.mobile; self.customerPhoneNumber.text = _model.mobile;
self.companyLocation.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address]; self.customerAddress.text = [BaseViewController isMunicipality:model.province withCity:model.city withCountry:model.country withDetailAddress:model.address];
} }
......
...@@ -138,9 +138,7 @@ ...@@ -138,9 +138,7 @@
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{ {
if (indexPath.section == 0 && indexPath.row == 0) { if (indexPath.section == 0 && indexPath.row == 0) {
PersonInformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"secondcell" forIndexPath:indexPath]; PersonInformationTableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"secondcell" forIndexPath:indexPath];
cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.selectionStyle = UITableViewCellSelectionStyleNone;
return cell; return cell;
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment