|
@@ -527,9 +527,9 @@
|
|
|
return 1;
|
|
|
}
|
|
|
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section{
|
|
|
-
|
|
|
+
|
|
|
return self.noteBookArray.count;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
- (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
|
|
|
{
|
|
@@ -603,8 +603,8 @@
|
|
|
model.IsSelect = !model.IsSelect;
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
return cell;
|
|
|
}
|
|
@@ -639,9 +639,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 2:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell10:tableView indexPath:indexPath];
|
|
@@ -671,9 +671,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 3:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell20:tableView indexPath:indexPath];
|
|
@@ -705,9 +705,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 4:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell30:tableView indexPath:indexPath];
|
|
@@ -741,9 +741,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 5:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell40:tableView indexPath:indexPath];
|
|
@@ -780,9 +780,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 6:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell40:tableView indexPath:indexPath];
|
|
@@ -820,9 +820,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 7:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell50:tableView indexPath:indexPath];
|
|
@@ -864,9 +864,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 8:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell50:tableView indexPath:indexPath];
|
|
@@ -909,9 +909,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
default:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell50:tableView indexPath:indexPath];
|
|
@@ -955,9 +955,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -996,7 +996,6 @@
|
|
|
model.IsSelect = !model.IsSelect;
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
cell.bottomView.hidden = YES;
|
|
|
cell.bottomHeight.constant = 0.f;
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
@@ -1035,7 +1034,7 @@
|
|
|
model.IsSelect = !model.IsSelect;
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
}break;
|
|
|
case OperationStateEnum0:{ // 正常
|
|
@@ -1090,10 +1089,9 @@
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
cell.bottomView.hidden = YES;
|
|
|
cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
+
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
return cell;
|
|
|
}
|
|
@@ -1132,26 +1130,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 2:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell1:tableView indexPath:indexPath];
|
|
@@ -1185,26 +1183,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 3:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell2:tableView indexPath:indexPath];
|
|
@@ -1240,26 +1238,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 4:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell3:tableView indexPath:indexPath];
|
|
@@ -1297,26 +1295,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 5:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell4:tableView indexPath:indexPath];
|
|
@@ -1356,27 +1354,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
- cell.cell1IconImageView6.hidden = YES;
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 6:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell4:tableView indexPath:indexPath];
|
|
@@ -1418,26 +1415,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 7:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell5:tableView indexPath:indexPath];
|
|
@@ -1481,28 +1478,27 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
- cell.cell1IconImageView8.hidden = YES;
|
|
|
- cell.cell1IconImageView9.hidden = YES;
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
+
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 8:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell5:tableView indexPath:indexPath];
|
|
@@ -1548,27 +1544,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
- cell.cell1IconImageView9.hidden = YES;
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
default:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell5:tableView indexPath:indexPath];
|
|
@@ -1616,26 +1611,26 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
-
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -1678,26 +1673,25 @@
|
|
|
}else{
|
|
|
[cell.cellCommentButton setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
}
|
|
|
- WS(weakSelf);
|
|
|
- [cell.cellCommentButton setAction:^{
|
|
|
- [weakSelf CommentHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellZanButton setAction:^{
|
|
|
- [weakSelf zanHanderIndex:indexPath];
|
|
|
- }];
|
|
|
- [cell.cellShareButton setAction:^{
|
|
|
- [weakSelf shareHanderModel:model];
|
|
|
- }];
|
|
|
- [cell.fileAction setAction:^{
|
|
|
- [weakSelf pushFileWithModel:dataModel];
|
|
|
- }];
|
|
|
cell.ClickUserBlock = ^{
|
|
|
[weakSelf showUserInfo:model.UserId];
|
|
|
};
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
-
|
|
|
+ if (self.TypeValue == 1) {
|
|
|
+ cell.bottomView.hidden = NO;
|
|
|
+ [cell.cellCommentButton setAction:^{
|
|
|
+ [weakSelf CommentHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ [cell.cellShareButton setAction:^{
|
|
|
+ [weakSelf shareHanderModel:model];
|
|
|
+ }];
|
|
|
+ [cell.cellZanButton setAction:^{
|
|
|
+ [weakSelf zanHanderIndex:indexPath];
|
|
|
+ }];
|
|
|
+ }else{
|
|
|
+ cell.bottomView.hidden = YES;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ }
|
|
|
+
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
return cell;
|
|
|
}
|
|
@@ -1731,7 +1725,7 @@
|
|
|
cell.cell0Number.hidden = model.FileCount == 0 ? YES : NO;
|
|
|
cell.cell0Title.text = model.FolderName;
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
default:{
|
|
|
TopicBookCell * cell = [TopicBookCell configCell0:tableView indexPath:indexPath];
|
|
@@ -1821,9 +1815,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 2:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell10:tableView indexPath:indexPath];
|
|
@@ -1856,9 +1850,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 3:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell20:tableView indexPath:indexPath];
|
|
@@ -1893,9 +1887,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 4:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell30:tableView indexPath:indexPath];
|
|
@@ -1932,9 +1926,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 5:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell40:tableView indexPath:indexPath];
|
|
@@ -1974,9 +1968,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 6:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell40:tableView indexPath:indexPath];
|
|
@@ -2017,9 +2011,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 7:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell50:tableView indexPath:indexPath];
|
|
@@ -2064,9 +2058,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
case 8:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell50:tableView indexPath:indexPath];
|
|
@@ -2112,9 +2106,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
default:{
|
|
|
NoteBookCell *cell = [NoteBookCell configCell50:tableView indexPath:indexPath];
|
|
@@ -2161,9 +2155,9 @@
|
|
|
[weakSelf.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
}];
|
|
|
cell.bottomView.hidden = YES;
|
|
|
- cell.bottomHeight.constant = 0.f;
|
|
|
- cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ cell.bottomHeight.constant = 0.f;
|
|
|
+ cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
+ return cell;
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -2264,7 +2258,7 @@
|
|
|
cell.selectButton.hidden = YES;
|
|
|
}
|
|
|
cell.selectionStyle = UITableViewCellSelectionStyleNone;
|
|
|
- return cell;
|
|
|
+ return cell;
|
|
|
}break;
|
|
|
}
|
|
|
}
|
|
@@ -2453,22 +2447,22 @@
|
|
|
}
|
|
|
}
|
|
|
- (void)eidtorNoteBook:(MyNoteBookSubModel *)model{
|
|
|
-// WS(weakSelf);
|
|
|
-// [[HttpManager sharedHttpManager] GETUrl:[NSString stringWithFormat:@"%@%@%@",BaseUrl,API_NoteBook_Detail,@(model.MiddleId).stringValue] parameters:@{} responseStyle:JOSN success:^(id _Nonnull responseObject) {
|
|
|
-// MyTDTopicCreateVC * vc = [MyTDTopicCreateVC initMyTDTopicCreateVC];
|
|
|
-// vc.type = weakSelf.TypeValue == 1 ? CollectModel_NewTopic : CollectModel_NoteBook;
|
|
|
-// vc.FolderId = weakSelf.FolderId;
|
|
|
-// vc.FolderName = model.FolderName;
|
|
|
-// vc.Id = model.MiddleId;
|
|
|
-// vc.isEdit = YES;
|
|
|
-// [weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
-// } failure:^(NSError * _Nonnull error) {
|
|
|
-// SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
-// }];
|
|
|
+ // WS(weakSelf);
|
|
|
+ // [[HttpManager sharedHttpManager] GETUrl:[NSString stringWithFormat:@"%@%@%@",BaseUrl,API_NoteBook_Detail,@(model.MiddleId).stringValue] parameters:@{} responseStyle:JOSN success:^(id _Nonnull responseObject) {
|
|
|
+ // MyTDTopicCreateVC * vc = [MyTDTopicCreateVC initMyTDTopicCreateVC];
|
|
|
+ // vc.type = weakSelf.TypeValue == 1 ? CollectModel_NewTopic : CollectModel_NoteBook;
|
|
|
+ // vc.FolderId = weakSelf.FolderId;
|
|
|
+ // vc.FolderName = model.FolderName;
|
|
|
+ // vc.Id = model.MiddleId;
|
|
|
+ // vc.isEdit = YES;
|
|
|
+ // [weakSelf.navigationController pushViewController:vc animated:YES];
|
|
|
+ // } failure:^(NSError * _Nonnull error) {
|
|
|
+ // SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
+ // }];
|
|
|
MyTDTopicCreateVC * vc = [MyTDTopicCreateVC initMyTDTopicCreateVC];
|
|
|
vc.type = self.TypeValue == 1 ? CollectModel_NewTopic : CollectModel_NoteBook;
|
|
|
vc.FolderId = self.FolderId;
|
|
|
- vc.FolderName = model.FolderName;
|
|
|
+ vc.FolderName = self.myTitle;
|
|
|
vc.Id = model.MiddleId;
|
|
|
vc.isEdit = YES;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
@@ -2503,8 +2497,8 @@
|
|
|
}break;
|
|
|
default:
|
|
|
{
|
|
|
-// NoteDraftVC * vc = [NoteDraftVC initNoteDraftVC];
|
|
|
-// [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ // NoteDraftVC * vc = [NoteDraftVC initNoteDraftVC];
|
|
|
+ // [self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
break;
|
|
|
}
|
|
@@ -2964,18 +2958,12 @@
|
|
|
_currentPath=newIndexPath;
|
|
|
_orignY-=60;
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}else if(recognise.state==UIGestureRecognizerStateEnded){
|
|
|
-
|
|
|
[_cellImage removeFromSuperview];
|
|
|
_cellImage=nil;
|
|
|
_currentCell.hidden=NO;
|
|
|
-
|
|
|
-
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
//MARK:截图
|
|
|
- (UIImage *)getImageWithCell:(UITableViewCell*)cell {
|
|
@@ -3027,7 +3015,7 @@
|
|
|
MyNoteBookSubModel *model = self.noteBookArray[indexPath.row];
|
|
|
MyTDTopicDetailVC * vc = [MyTDTopicDetailVC initMyTDTopicDetailVC];
|
|
|
vc.Id = model.MiddleId;
|
|
|
- vc.type = CollectModel_NoteBook;
|
|
|
+ vc.type = self.TypeValue == 1 ? CollectModel_NewTopic : CollectModel_NoteBook;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
|