|
|
@@ -16,6 +16,7 @@
|
|
|
@property (nonatomic, strong) UIButton *selectButton;
|
|
|
@property(nonatomic,strong)UIImageView *lockImageView;
|
|
|
@property(nonatomic,strong)UILabel *stateLabel;
|
|
|
+@property(nonatomic,strong)UILabel *remainingNumberLabel;//剩余分享次数
|
|
|
@end
|
|
|
|
|
|
@implementation shareRecordTableViewCell
|
|
|
@@ -81,16 +82,29 @@
|
|
|
|
|
|
self.selectButton = but;
|
|
|
|
|
|
+ _remainingNumberLabel = [[UILabel alloc] init];
|
|
|
+ [self.contentView addSubview:_remainingNumberLabel];
|
|
|
+ _remainingNumberLabel.textAlignment = NSTextAlignmentRight;
|
|
|
+ _remainingNumberLabel.font = [UIFont systemFontOfSize:12.f];
|
|
|
+ [_remainingNumberLabel setTextColor:HW666666Color]; //#01B7EA
|
|
|
+ [_remainingNumberLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
+ make.width.mas_equalTo(80);
|
|
|
+ make.right.equalTo(_rightImage.mas_left).offset(-5.f);
|
|
|
+ //make.centerY.equalTo(self.mas_centerY);
|
|
|
+ make.top.mas_equalTo(15.f);
|
|
|
+ }];
|
|
|
+
|
|
|
_stateLabel = [[UILabel alloc] init];
|
|
|
[self.contentView addSubview:_stateLabel];
|
|
|
_stateLabel.textAlignment = NSTextAlignmentRight;
|
|
|
- _stateLabel.font = [UIFont systemFontOfSize:11.f];
|
|
|
+ _stateLabel.font = [UIFont systemFontOfSize:12.f];
|
|
|
[_stateLabel setTextColor:HW666666Color]; //#01B7EA
|
|
|
[_stateLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
|
|
make.width.mas_equalTo(80);
|
|
|
make.right.equalTo(_rightImage.mas_left).offset(-5.f);
|
|
|
- make.centerY.equalTo(self.mas_centerY);
|
|
|
+ //make.centerY.equalTo(self.mas_centerY);
|
|
|
//make.top.mas_equalTo(15.f);
|
|
|
+ make.top.equalTo(_remainingNumberLabel.mas_bottom).offset(7);
|
|
|
}];
|
|
|
|
|
|
|
|
|
@@ -156,6 +170,9 @@
|
|
|
|
|
|
_selectButton.selected = _dataModel.isSelectType;
|
|
|
|
|
|
+ //剩余次数
|
|
|
+ _remainingNumberLabel.text = [[NSString alloc] initWithFormat:@"%@:%ld",NSLocalizedString(@"share_number_remainingNumber_tip",nil),_dataModel.remainingNumber];
|
|
|
+
|
|
|
if(_dataModel.expirationStatus){
|
|
|
_stateLabel.text = NSLocalizedString(@"copy_share_link_Invalid_tip",nil);
|
|
|
[_stateLabel setTextColor:HW666666Color]; //#01B7EA
|