覆盖羽声

This commit is contained in:
启星
2025-10-20 09:43:10 +08:00
parent affed1af58
commit 0d82f9e0ef
1331 changed files with 43209 additions and 14707 deletions

View File

@@ -154,9 +154,12 @@
CGFloat height = [firsModel.content heightForFont:[UIFont systemFontOfSize:14] width:SCREEN_WIDTH-40-16*2-7];
QXDynamicCommentHeaderView *header = [[QXDynamicCommentHeaderView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH, height+12+40+7+3+9)];
[header addTapBlock:^(id _Nonnull obj) {
weakSelf.commentView.model = firsModel;
weakSelf.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",firsModel.nickname];
[weakSelf.commentView.textField becomeFirstResponder];
// weakSelf.commentView.model = firsModel;
// weakSelf.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",firsModel.nickname];
// [weakSelf.commentView.textField becomeFirstResponder];
UIPasteboard *p = [UIPasteboard generalPasteboard];
p.string = [NSString stringWithFormat:@"%@", firsModel.content];
showToast(@"已复制");
}];
header.delegate = self;
header.model = firsModel;
@@ -204,11 +207,11 @@
if (indexPath.section == 0) {
return;
}
QXDynamicCommentListModel *firsModel = self.dataArray[indexPath.section-1];
QXDynamicCommentListModel *model = firsModel.replies[indexPath.row];
self.commentView.model = model;
self.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",model.nickname];
[self.commentView.textField becomeFirstResponder];
// QXDynamicCommentListModel *firsModel = self.dataArray[indexPath.section-1];
// QXDynamicCommentListModel *model = firsModel.replies[indexPath.row];
// self.commentView.model = model;
// self.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",model.nickname];
// [self.commentView.textField becomeFirstResponder];
}
-(void)didClickDeleteComment:(QXDynamicCommentListModel*)model{
@@ -234,7 +237,9 @@
}
-(void)didClickReplyComment:(QXDynamicCommentListModel*)model{
self.commentView.model = model;
self.commentView.textField.placeholder = [NSString stringWithFormat:@"回复:%@",model.nickname];
[self.commentView.textField becomeFirstResponder];
}
#pragma mark -
-(void)didClickSendWithText:(NSString*)text model:(nonnull QXDynamicCommentListModel *)model{