修改了动态的分享 点赞 举报

This commit is contained in:
fengshuo
2022-06-24 18:51:04 +08:00
parent 365b8aa2da
commit 1a13c09723
30 changed files with 371 additions and 38 deletions

View File

@@ -12,13 +12,14 @@
#import "NetImageView.h"
#import "ThemeColor.h"
#import "XPMonentsLayoutConfig.h"
#import "NSString+Utils.h"
///Model
#import "MonentsCommentModel.h"
///View
#import "XPMonentsReplyTableViewCell.h"
#import "XPMonentsReplyMoreTableViewCell.h"
@interface XPMonentsCommentTableViewCell ()<UITableViewDelegate, UITableViewDataSource>
@interface XPMonentsCommentTableViewCell ()<UITableViewDelegate, UITableViewDataSource, XPMonentsReplyMoreTableViewCellDelegate>
///
@property (nonatomic,strong) UIStackView *stackView;
///
@@ -139,10 +140,18 @@
XPMonentsReplyMoreTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([XPMonentsReplyMoreTableViewCell class])];
cell.leftCount = self.commentInfo.replyInfo.leftCount;
cell.delegate = self;
return cell;
}
#pragma mark - XPMonentsReplyMoreTableViewCellDelegate
- (void)xPMonentsReplyMoreTableViewCellDidClickMoreReply:(XPMonentsReplyMoreTableViewCell *)view {
if (self.delegate && [self.delegate respondsToSelector:@selector(xPMonentsCommentTableViewCell:didClickMoreReply:)]) {
[self.delegate xPMonentsCommentTableViewCell:self didClickMoreReply:self.commentInfo];
}
}
#pragma mark - Getters And Setters
- (void)setCommentInfo:(MonentsCommentModel *)commentInfo {
_commentInfo = commentInfo;
@@ -154,7 +163,7 @@
}
self.commentLabel.text = _commentInfo.content;
self.commentNickLabel.text = nick;
self.commentDateLabel.text = _commentInfo.publishTime;
self.commentDateLabel.text = [NSString stringWithTimeStamp:_commentInfo.publishTime];
self.tableView.hidden = _commentInfo.replyInfo.replyList.count <=0;
self.datasource = _commentInfo.replyInfo.replyList;
[self.tableView reloadData];