|  | @@ -31,6 +31,7 @@
 | 
											
												
													
														|  |  @property (nonatomic, strong) UIButton                  *likeBtn;
 |  |  @property (nonatomic, strong) UIButton                  *likeBtn;
 | 
											
												
													
														|  |  @property (nonatomic, strong) UIButton                  *commentBtn;
 |  |  @property (nonatomic, strong) UIButton                  *commentBtn;
 | 
											
												
													
														|  |  @property (nonatomic, strong) UIButton                  *deleteBtn;
 |  |  @property (nonatomic, strong) UIButton                  *deleteBtn;
 | 
											
												
													
														|  | 
 |  | +@property (nonatomic, strong) UIButton                  *locationBtn;
 | 
											
												
													
														|  |  
 |  |  
 | 
											
												
													
														|  |  @property (nonatomic, strong) UIView                    *likesContainer;
 |  |  @property (nonatomic, strong) UIView                    *likesContainer;
 | 
											
												
													
														|  |  @property (nonatomic, strong) UITextView                *likeUserNames;
 |  |  @property (nonatomic, strong) UITextView                *likeUserNames;
 | 
											
										
											
												
													
														|  | @@ -88,6 +89,16 @@
 | 
											
												
													
														|  |      _picContainer = [[UIView alloc] initWithFrame:CGRectMake(contentX, _msgTxtView.bottom, cellWidth - 40 - contentX, 0)];
 |  |      _picContainer = [[UIView alloc] initWithFrame:CGRectMake(contentX, _msgTxtView.bottom, cellWidth - 40 - contentX, 0)];
 | 
											
												
													
														|  |      [self addSubview:_picContainer];
 |  |      [self addSubview:_picContainer];
 | 
											
												
													
														|  |      
 |  |      
 | 
											
												
													
														|  | 
 |  | +    _locationBtn = [UIButton buttonWithType:UIButtonTypeCustom];
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.frame = CGRectMake(contentX, _picContainer.bottom+5, 80, 24);
 | 
											
												
													
														|  | 
 |  | +    [_locationBtn setImage:[UIImage imageNamed:@"朋友圈发布_03"] forState:UIControlStateNormal];
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.titleLabel.font = [UIFont systemFontOfSize:14];
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.layer.cornerRadius = 12;
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.layer.borderWidth = 1;
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.layer.borderColor = UIColor.lightGrayColor.CGColor;
 | 
											
												
													
														|  | 
 |  | +    [_locationBtn setTitleColor:UIColor.lightGrayColor forState:UIControlStateNormal];
 | 
											
												
													
														|  | 
 |  | +    [self addSubview:_locationBtn];
 | 
											
												
													
														|  | 
 |  | +    
 | 
											
												
													
														|  |      _actionContainer = [[UIView alloc] initWithFrame:CGRectMake(contentX, _picContainer.bottom+5, cellWidth-contentX, 30)];
 |  |      _actionContainer = [[UIView alloc] initWithFrame:CGRectMake(contentX, _picContainer.bottom+5, cellWidth-contentX, 30)];
 | 
											
												
													
														|  |      [self addSubview:_actionContainer];
 |  |      [self addSubview:_actionContainer];
 | 
											
												
													
														|  |      
 |  |      
 | 
											
										
											
												
													
														|  | @@ -244,18 +255,25 @@
 | 
											
												
													
														|  |      
 |  |      
 | 
											
												
													
														|  |      _picContainer.top = _msgTxtView.bottom + 5;
 |  |      _picContainer.top = _msgTxtView.bottom + 5;
 | 
											
												
													
														|  |      
 |  |      
 | 
											
												
													
														|  | 
 |  | +    [_locationBtn setTitle:_data.local forState:UIControlStateNormal];
 | 
											
												
													
														|  | 
 |  | +    [_locationBtn sizeToFit];
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.width = _locationBtn.width + 12;
 | 
											
												
													
														|  | 
 |  | +    _locationBtn.height = 24;
 | 
											
												
													
														|  | 
 |  | +    
 | 
											
												
													
														|  |      if(_data.thumbArr.count > 0)
 |  |      if(_data.thumbArr.count > 0)
 | 
											
												
													
														|  |      {
 |  |      {
 | 
											
												
													
														|  |          int rows = ceilf((float)_data.thumbArr.count / (float)columns);
 |  |          int rows = ceilf((float)_data.thumbArr.count / (float)columns);
 | 
											
												
													
														|  |          _picContainer.height = picSize * rows + picPadding * (rows - 1);
 |  |          _picContainer.height = picSize * rows + picPadding * (rows - 1);
 | 
											
												
													
														|  | -        _actionContainer.top = _picContainer.bottom + 5;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        _locationBtn.top = _picContainer.bottom + 5;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |      else
 |  |      else
 | 
											
												
													
														|  |      {
 |  |      {
 | 
											
												
													
														|  |          _picContainer.height = 0;
 |  |          _picContainer.height = 0;
 | 
											
												
													
														|  | -        _actionContainer.top = _msgTxtView.bottom + 5;
 |  | 
 | 
											
												
													
														|  | 
 |  | +        _locationBtn.top = _msgTxtView.bottom + 5;
 | 
											
												
													
														|  |      }
 |  |      }
 | 
											
												
													
														|  |      
 |  |      
 | 
											
												
													
														|  | 
 |  | +    _actionContainer.top = _locationBtn.bottom + 5;
 | 
											
												
													
														|  | 
 |  | +    
 | 
											
												
													
														|  |      [_timeLabel setText:_data.time];
 |  |      [_timeLabel setText:_data.time];
 | 
											
												
													
														|  |      [_viewsBtn setTitle:[NSString stringWithFormat:@"%d", _data.views] forState:UIControlStateNormal];
 |  |      [_viewsBtn setTitle:[NSString stringWithFormat:@"%d", _data.views] forState:UIControlStateNormal];
 | 
											
												
													
														|  |      [_likeBtn setTitle:[NSString stringWithFormat:@"%d", _data.likes] forState:UIControlStateNormal];
 |  |      [_likeBtn setTitle:[NSString stringWithFormat:@"%d", _data.likes] forState:UIControlStateNormal];
 |