处理评论数
This commit is contained in:
@@ -20,7 +20,7 @@ NS_ASSUME_NONNULL_BEGIN
|
||||
- (void)loadComments;
|
||||
|
||||
/// 评论总数
|
||||
@property(nonatomic, readonly) NSInteger totalCommentCount;
|
||||
@property(nonatomic, assign) NSInteger totalCommentCount;
|
||||
@property(nonatomic, weak) LSTPopView *popView
|
||||
;
|
||||
|
||||
|
||||
@@ -32,7 +32,6 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter";
|
||||
@property(nonatomic, strong) KBAICommentInputView *inputView;
|
||||
|
||||
@property(nonatomic, strong) NSMutableArray<KBAICommentModel *> *comments;
|
||||
@property(nonatomic, assign) NSInteger totalCommentCount;
|
||||
|
||||
/// 分页参数
|
||||
@property(nonatomic, assign) NSInteger currentPage;
|
||||
@@ -274,7 +273,7 @@ static NSString *const kCommentFooterIdentifier = @"CommentFooter";
|
||||
return;
|
||||
}
|
||||
|
||||
self.totalCommentCount = pageModel.total;
|
||||
// self.totalCommentCount = pageModel.total;
|
||||
|
||||
if (!append) {
|
||||
[self.comments removeAllObjects];
|
||||
|
||||
Reference in New Issue
Block a user