处理评论数

This commit is contained in:
2026-01-29 14:51:42 +08:00
parent 32ebc6fb65
commit 07a77149fc
3 changed files with 5 additions and 3 deletions

View File

@@ -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
;

View File

@@ -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];