|
@@ -26,10 +26,10 @@
|
|
|
#import "chatInfoGroupChatModel.h"
|
|
|
#import "SelectModel.h"
|
|
|
#import "ChatGroupDeleteVC.h"
|
|
|
-#import "ChatGroupAddVC.h"
|
|
|
+#import "AddLookUpUserSecondVC.h"
|
|
|
#import "MoveViewController.h"
|
|
|
|
|
|
-@interface ChatMsgDetailChatInfoVC ()<UITableViewDelegate,UITableViewDataSource,UICollectionViewDelegate,UICollectionViewDataSource,NoteBookShareVCDelegate>
|
|
|
+@interface ChatMsgDetailChatInfoVC ()<UITableViewDelegate,UITableViewDataSource,UICollectionViewDelegate,UICollectionViewDataSource,NoteBookShareVCDelegate,AddLookUpUserSecondVCDelegate>
|
|
|
|
|
|
@property (strong,nonatomic) IBOutlet UITableView *tableView;
|
|
|
@property (strong,nonatomic) IBOutlet UILabel *titleLabel;
|
|
@@ -52,19 +52,17 @@
|
|
|
ChatMsgDetailChatInfoVC *controller = [StoryboardManager.shared.chatMsgDetailChat instantiateViewControllerWithIdentifier:@"ChatMsgDetailChatInfoVC"];
|
|
|
return controller;
|
|
|
}
|
|
|
-- (void)viewWillAppear:(BOOL)animated
|
|
|
-{
|
|
|
- [super viewWillAppear:animated];
|
|
|
- [self netWorking];
|
|
|
-}
|
|
|
+
|
|
|
- (void)viewDidLoad {
|
|
|
[super viewDidLoad];
|
|
|
-
|
|
|
+
|
|
|
self.fd_prefersNavigationBarHidden = YES;
|
|
|
self.view.backgroundColor = RGB(245, 245, 245);
|
|
|
-
|
|
|
+
|
|
|
[self.view addSubview:self.noteBookShareVC.view];
|
|
|
[self initTableView];
|
|
|
+ [self netWorking];
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(recviveChaoSongRen:) name:NOTIFI_ChaoSongRen object:nil];
|
|
|
}
|
|
|
#pragma mark - netWorking
|
|
|
- (void)netWorking
|
|
@@ -81,7 +79,7 @@
|
|
|
weakSelf.IsAdmin = [responseObject[@"IsAdmin"] boolValue];
|
|
|
weakSelf.IsTop = [responseObject[@"IsTop"] boolValue];
|
|
|
weakSelf.IsDisturb = [responseObject[@"IsDisturb"] boolValue];
|
|
|
-
|
|
|
+
|
|
|
for (NSInteger i = 0; i < weakSelf.allUserArray.count; i++) {
|
|
|
if (weakSelf.IsAdmin) {
|
|
|
if (i > 17) {
|
|
@@ -95,6 +93,8 @@
|
|
|
[weakSelf.collectionDataSource addObject:modeladd];
|
|
|
[weakSelf.collectionDataSource addObject:modeldel];
|
|
|
break;
|
|
|
+ }else{
|
|
|
+ weakSelf.isMore = NO;
|
|
|
}
|
|
|
}else{
|
|
|
if (i > 18) {
|
|
@@ -104,6 +104,8 @@
|
|
|
|
|
|
[weakSelf.collectionDataSource addObject:modeladd];
|
|
|
break;
|
|
|
+ }else{
|
|
|
+ weakSelf.isMore = NO;
|
|
|
}
|
|
|
}
|
|
|
NSDictionary * dict = weakSelf.allUserArray[i];
|
|
@@ -135,7 +137,7 @@
|
|
|
//群组信息
|
|
|
NSDictionary * groupChatDict = responseObject[@"GroupChat"];
|
|
|
weakSelf.model = [[chatInfoGroupChatModel alloc] init];
|
|
|
-
|
|
|
+
|
|
|
weakSelf.model.AvatarUrl = [groupChatDict objectForKey:@"AvatarUrl"];
|
|
|
weakSelf.model.CreatedDate = [groupChatDict objectForKey:@"CreatedDate"];
|
|
|
weakSelf.model.UserId = [[groupChatDict objectForKey:@"UserId"] integerValue];
|
|
@@ -150,7 +152,7 @@
|
|
|
weakSelf.model.IsWords = [[groupChatDict objectForKey:@"IsWords"] boolValue];
|
|
|
weakSelf.model.IsOpenQrCoder = [[groupChatDict objectForKey:@"IsOpenQrCoder"] boolValue];
|
|
|
weakSelf.model.IsContacts = [[groupChatDict objectForKey:@"IsContacts"] boolValue];
|
|
|
-
|
|
|
+
|
|
|
dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
[weakSelf.tableView reloadData];
|
|
|
[weakSelf.collectionView reloadData];
|
|
@@ -158,7 +160,26 @@
|
|
|
} failure:^(NSError * _Nonnull error) {
|
|
|
|
|
|
}];
|
|
|
-
|
|
|
+}
|
|
|
+- (void)recviveChaoSongRen:(NSNotification *)notification{
|
|
|
+ NSMutableArray * addArray = [NSMutableArray array];
|
|
|
+ NSMutableArray <SelectModel *>* array = notification.userInfo[@"selectPeople"];
|
|
|
+ for (SelectModel * model in array) {
|
|
|
+ [addArray addObject:@(model.UserId)];
|
|
|
+ }
|
|
|
+ NSDictionary * paraDict = @{@"GroupChatImId":@(self.GroupChatImId),
|
|
|
+ @"UserIds":addArray,
|
|
|
+ @"UserId":@([AppUserModel sharedAppUserModel].Id),
|
|
|
+ @"SourceType":@(2)///邀请
|
|
|
+ };
|
|
|
+ SHOWLOADING
|
|
|
+ WS(weakSelf);
|
|
|
+ [[HttpManager sharedHttpManager] POSTUrl:Host(Group_chat_add_users) parameters:paraDict responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
+ REMOVESHOW
|
|
|
+ [weakSelf netWorking];
|
|
|
+ } failure:^(NSError * _Nonnull error) {
|
|
|
+ REMOVESHOW
|
|
|
+ }];
|
|
|
}
|
|
|
#pragma mark - 分享操作处理
|
|
|
- (void)gotoSendInfo{
|
|
@@ -170,9 +191,9 @@
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
|
- (void)gotoNote{
|
|
|
- FavoritesViewController *favorites = [[FavoritesViewController alloc] init];
|
|
|
- favorites.title = @"我的笔记";
|
|
|
- [self.navigationController pushViewController:favorites animated:YES];
|
|
|
+ FavoritesViewController *favorites = [[FavoritesViewController alloc] init];
|
|
|
+ favorites.title = @"我的笔记";
|
|
|
+ [self.navigationController pushViewController:favorites animated:YES];
|
|
|
}
|
|
|
- (void)gotoMyTopic{
|
|
|
MyTDTopicViewController *topicVC = [[MyTDTopicViewController alloc] init];
|
|
@@ -200,19 +221,19 @@
|
|
|
}
|
|
|
}break;
|
|
|
case 1:{
|
|
|
-// if (self.IsAdmin) {
|
|
|
-// if (self.model.IsOpenQrCoder) {
|
|
|
-// return 4;
|
|
|
-// }else{
|
|
|
-// return 3;
|
|
|
-// }
|
|
|
-// }else{
|
|
|
-// if (self.model.IsOpenQrCoder) {
|
|
|
-// return 3;
|
|
|
-// }else{
|
|
|
-// return 2;
|
|
|
-// }
|
|
|
-// }
|
|
|
+ // if (self.IsAdmin) {
|
|
|
+ // if (self.model.IsOpenQrCoder) {
|
|
|
+ // return 4;
|
|
|
+ // }else{
|
|
|
+ // return 3;
|
|
|
+ // }
|
|
|
+ // }else{
|
|
|
+ // if (self.model.IsOpenQrCoder) {
|
|
|
+ // return 3;
|
|
|
+ // }else{
|
|
|
+ // return 2;
|
|
|
+ // }
|
|
|
+ // }
|
|
|
if (self.model.IsOpenQrCoder) {
|
|
|
return 3;
|
|
|
}else{
|
|
@@ -225,9 +246,9 @@
|
|
|
case 3:{
|
|
|
return 2;
|
|
|
}break;
|
|
|
-// case 4:{
|
|
|
-// return 2;
|
|
|
-// }break;
|
|
|
+ // case 4:{
|
|
|
+ // return 2;
|
|
|
+ // }break;
|
|
|
default:
|
|
|
break;
|
|
|
}
|
|
@@ -239,10 +260,10 @@
|
|
|
[headerView setBackgroundColor:RGBA(238, 238, 238, 1)];
|
|
|
return headerView;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{
|
|
|
-// if(section == 1 || section == 2 || section == 3 || section == 4){
|
|
|
+ // if(section == 1 || section == 2 || section == 3 || section == 4){
|
|
|
if(section == 1 || section == 2 || section == 3){
|
|
|
return 5;
|
|
|
}
|
|
@@ -263,7 +284,7 @@
|
|
|
}else{
|
|
|
return 90 * (countZ+1) + 10;
|
|
|
}
|
|
|
-// return [ChatMsgDetailChatInfoCell configCell0Height];
|
|
|
+ // return [ChatMsgDetailChatInfoCell configCell0Height];
|
|
|
}break;
|
|
|
case 1:{
|
|
|
return [ChatMsgDetailChatInfoCell configCell1Height];
|
|
@@ -294,18 +315,18 @@
|
|
|
break;
|
|
|
}
|
|
|
}break;
|
|
|
-// case 2:{
|
|
|
-// switch (indexPath.row) {
|
|
|
-// case 0:{
|
|
|
-// return [ChatMsgDetailChatInfoCell configCell2Height];
|
|
|
-// }break;
|
|
|
-// case 1:{
|
|
|
-// return [ChatMsgDetailChatInfoCell configCell2Height];
|
|
|
-// }break;
|
|
|
-// default:
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }break;
|
|
|
+ // case 2:{
|
|
|
+ // switch (indexPath.row) {
|
|
|
+ // case 0:{
|
|
|
+ // return [ChatMsgDetailChatInfoCell configCell2Height];
|
|
|
+ // }break;
|
|
|
+ // case 1:{
|
|
|
+ // return [ChatMsgDetailChatInfoCell configCell2Height];
|
|
|
+ // }break;
|
|
|
+ // default:
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }break;
|
|
|
case 2:{
|
|
|
switch (indexPath.row) {
|
|
|
case 0:{
|
|
@@ -338,191 +359,191 @@
|
|
|
}
|
|
|
return 0;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
|
|
|
WS(weakSelf);
|
|
|
- switch (indexPath.section) {
|
|
|
- case 0:{
|
|
|
- switch (indexPath.row) {
|
|
|
- case 0:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell0:tableView indexPath:indexPath];
|
|
|
- [cell.cell0BgView addSubview:self.collectionView];
|
|
|
- NSInteger countZ = self.collectionDataSource.count / 5;
|
|
|
- NSInteger countY = self.collectionDataSource.count % 5;
|
|
|
- if(countY == 0){
|
|
|
- self.collectionView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 90 * countZ);
|
|
|
- }else{
|
|
|
- self.collectionView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 90 * (countZ+1));
|
|
|
- }
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- case 1:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell1:tableView indexPath:indexPath];
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }break;
|
|
|
- case 1:{
|
|
|
- switch (indexPath.row) {
|
|
|
- case 0:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell5:tableView indexPath:indexPath];
|
|
|
- [cell.ChatImgV sd_setImageWithURL:[NSURL URLWithString:self.model.AvatarUrl] placeholderImage:kUserDefaultHeadImage];
|
|
|
- cell.cell2RightArrowImg.hidden = !self.model.IsAdmin;
|
|
|
- cell.cell2ValueLabel.text = self.model.Name;
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- case 1:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
- cell.cell2TitleLabel.text = @"群聊二维码";
|
|
|
- cell.cell2ValueLabel.hidden = YES;
|
|
|
- cell.cell2RightArrowImg.hidden = YES;
|
|
|
- cell.cell2Switch.hidden = NO;
|
|
|
- cell.cell2Switch.enabled = self.IsAdmin;
|
|
|
- [cell.cell2Switch setOn:self.model.IsOpenQrCoder];
|
|
|
- [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
- NSString * url = [NSString stringWithFormat:@"%@%ld",Host(API_App_Group_Chat),(long)weakSelf.model.GroupChatImId];
|
|
|
- [[HttpManager sharedHttpManager] PUTUrl:url parameters:@{} success:^(id _Nonnull responseObject) {
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
- [weakSelf netWorking];
|
|
|
- });
|
|
|
- } failure:^(NSError * _Nonnull error) {
|
|
|
- SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
- }];
|
|
|
- }];
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- case 2:{
|
|
|
- if (self.model.IsOpenQrCoder) {
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell3:tableView indexPath:indexPath];
|
|
|
- cell.cell3TitleLabel.text = @"二维码";
|
|
|
- cell.cell3ShareBtn.hidden = YES;
|
|
|
- [cell.cell3ShareBtn setAction:^{
|
|
|
- [weakSelf shareHander];
|
|
|
- }];
|
|
|
- [cell.cell3ErWeiMaImg sd_setImageWithURL:[NSURL URLWithString:self.model.QRCoder] placeholderImage:[UIImage imageNamed:@"my_qrcode_testcode"]];
|
|
|
- return cell;
|
|
|
-// }else{
|
|
|
-// ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
-// cell.cell2TitleLabel.text = @"群管理";
|
|
|
-// cell.cell2ValueLabel.hidden = YES;
|
|
|
-// return cell;
|
|
|
- }
|
|
|
- }break;
|
|
|
-// case 3:{
|
|
|
-// ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
-// cell.cell2TitleLabel.text = @"群管理";
|
|
|
-// cell.cell2ValueLabel.hidden = YES;
|
|
|
-// return cell;
|
|
|
-// }break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }break;
|
|
|
-// case 2:{
|
|
|
-// switch (indexPath.row) {
|
|
|
-// case 0:{
|
|
|
-// ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
-// cell.cell2TitleLabel.text = @"查找聊天记录";
|
|
|
-// cell.cell2ValueLabel.hidden = YES;
|
|
|
-// return cell;
|
|
|
-// }break;
|
|
|
-// case 1:{
|
|
|
-// ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
-// cell.cell2TitleLabel.text = @"历史文件";
|
|
|
-// cell.cell2ValueLabel.hidden = YES;
|
|
|
-// return cell;
|
|
|
-// }break;
|
|
|
-// default:
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }break;
|
|
|
- case 2:{
|
|
|
- switch (indexPath.row) {
|
|
|
- case 0:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
- cell.cell2TitleLabel.text = @"消息免打扰";
|
|
|
- cell.cell2ValueLabel.hidden = YES;
|
|
|
- cell.cell2RightArrowImg.hidden = YES;
|
|
|
- cell.cell2Switch.hidden = NO;
|
|
|
- cell.cell2Switch.enabled = YES;
|
|
|
- [cell.cell2Switch setOn:self.IsDisturb];
|
|
|
- [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
- [[HttpManager sharedHttpManager] POSTUrl:Host(Group_Chat_User_is_disturb) parameters:@{@"GroupChatId":@(weakSelf.model.Id),@"UserId":@([AppUserModel sharedAppUserModel].Id)} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
- [weakSelf netWorking];
|
|
|
- });
|
|
|
- } failure:^(NSError * _Nonnull error) {
|
|
|
-
|
|
|
- }];
|
|
|
- }];
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- case 1:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
- cell.cell2TitleLabel.text = @"置顶聊天";
|
|
|
- cell.cell2ValueLabel.hidden = YES;
|
|
|
- cell.cell2RightArrowImg.hidden = YES;
|
|
|
- cell.cell2Switch.hidden = NO;
|
|
|
- cell.cell2Switch.enabled = YES;
|
|
|
- [cell.cell2Switch setOn:self.IsTop];
|
|
|
- [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
- [[HttpManager sharedHttpManager] POSTUrl:Host(Group_Chat_User_is_top) parameters:@{@"IsTop":@(!weakSelf.IsTop),@"GroupChatId":@(weakSelf.model.Id),@"UserId":@([AppUserModel sharedAppUserModel].Id)} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
- weakSelf.IsTop = !weakSelf.IsTop;
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
- [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
- });
|
|
|
- } failure:^(NSError * _Nonnull error) {
|
|
|
-
|
|
|
- }];
|
|
|
- }];
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- default:
|
|
|
- {
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
- cell.cell2TitleLabel.text = @"保存到通讯录";
|
|
|
- cell.cell2ValueLabel.hidden = YES;
|
|
|
- cell.cell2RightArrowImg.hidden = YES;
|
|
|
- cell.cell2Switch.hidden = NO;
|
|
|
- cell.cell2Switch.enabled = YES;
|
|
|
- [cell.cell2Switch setOn:self.model.IsContacts];
|
|
|
- [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
- NSString * url = [NSString stringWithFormat:@"%@%ld",Host(APP_Group_Chat_Contacts),weakSelf.model.Id];
|
|
|
- [[HttpManager sharedHttpManager] PUTUrl:url parameters:@{} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
- weakSelf.model.IsContacts = !weakSelf.model.IsContacts;
|
|
|
- dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
- [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
|
- });
|
|
|
- } failure:^(NSError * _Nonnull error) {
|
|
|
- SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
- }];
|
|
|
- }];
|
|
|
- return cell;
|
|
|
- }
|
|
|
- break;
|
|
|
- }
|
|
|
- }break;
|
|
|
- case 3:{
|
|
|
- switch (indexPath.row) {
|
|
|
- case 0:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell4:tableView indexPath:indexPath];
|
|
|
- cell.cell4TitleLabel.text = @"清空聊天记录";
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- case 1:{
|
|
|
- ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell4:tableView indexPath:indexPath];
|
|
|
- cell.cell4TitleLabel.text = @"删除并退出";
|
|
|
- return cell;
|
|
|
- }break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
- }break;
|
|
|
- default:
|
|
|
- break;
|
|
|
- }
|
|
|
+ switch (indexPath.section) {
|
|
|
+ case 0:{
|
|
|
+ switch (indexPath.row) {
|
|
|
+ case 0:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell0:tableView indexPath:indexPath];
|
|
|
+ [cell.cell0BgView addSubview:self.collectionView];
|
|
|
+ NSInteger countZ = self.collectionDataSource.count / 5;
|
|
|
+ NSInteger countY = self.collectionDataSource.count % 5;
|
|
|
+ if(countY == 0){
|
|
|
+ self.collectionView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 90 * countZ);
|
|
|
+ }else{
|
|
|
+ self.collectionView.frame = CGRectMake(0, 0, SCREEN_WIDTH, 90 * (countZ+1));
|
|
|
+ }
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ case 1:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell1:tableView indexPath:indexPath];
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }break;
|
|
|
+ case 1:{
|
|
|
+ switch (indexPath.row) {
|
|
|
+ case 0:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell5:tableView indexPath:indexPath];
|
|
|
+ [cell.ChatImgV sd_setImageWithURL:[NSURL URLWithString:self.model.AvatarUrl] placeholderImage:kUserDefaultHeadImage];
|
|
|
+ cell.cell2RightArrowImg.hidden = !self.model.IsAdmin;
|
|
|
+ cell.cell2ValueLabel.text = self.model.Name;
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ case 1:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ cell.cell2TitleLabel.text = @"群聊二维码";
|
|
|
+ cell.cell2ValueLabel.hidden = YES;
|
|
|
+ cell.cell2RightArrowImg.hidden = YES;
|
|
|
+ cell.cell2Switch.hidden = NO;
|
|
|
+ cell.cell2Switch.enabled = self.IsAdmin;
|
|
|
+ [cell.cell2Switch setOn:self.model.IsOpenQrCoder];
|
|
|
+ [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
+ NSString * url = [NSString stringWithFormat:@"%@%ld",Host(API_App_Group_Chat),(long)weakSelf.model.GroupChatImId];
|
|
|
+ [[HttpManager sharedHttpManager] PUTUrl:url parameters:@{} success:^(id _Nonnull responseObject) {
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [weakSelf netWorking];
|
|
|
+ });
|
|
|
+ } failure:^(NSError * _Nonnull error) {
|
|
|
+ SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
+ }];
|
|
|
+ }];
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ case 2:{
|
|
|
+ if (self.model.IsOpenQrCoder) {
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell3:tableView indexPath:indexPath];
|
|
|
+ cell.cell3TitleLabel.text = @"二维码";
|
|
|
+ cell.cell3ShareBtn.hidden = YES;
|
|
|
+ [cell.cell3ShareBtn setAction:^{
|
|
|
+ [weakSelf shareHander];
|
|
|
+ }];
|
|
|
+ [cell.cell3ErWeiMaImg sd_setImageWithURL:[NSURL URLWithString:self.model.QRCoder] placeholderImage:[UIImage imageNamed:@"my_qrcode_testcode"]];
|
|
|
+ return cell;
|
|
|
+ // }else{
|
|
|
+ // ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ // cell.cell2TitleLabel.text = @"群管理";
|
|
|
+ // cell.cell2ValueLabel.hidden = YES;
|
|
|
+ // return cell;
|
|
|
+ }
|
|
|
+ }break;
|
|
|
+ // case 3:{
|
|
|
+ // ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ // cell.cell2TitleLabel.text = @"群管理";
|
|
|
+ // cell.cell2ValueLabel.hidden = YES;
|
|
|
+ // return cell;
|
|
|
+ // }break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }break;
|
|
|
+ // case 2:{
|
|
|
+ // switch (indexPath.row) {
|
|
|
+ // case 0:{
|
|
|
+ // ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ // cell.cell2TitleLabel.text = @"查找聊天记录";
|
|
|
+ // cell.cell2ValueLabel.hidden = YES;
|
|
|
+ // return cell;
|
|
|
+ // }break;
|
|
|
+ // case 1:{
|
|
|
+ // ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ // cell.cell2TitleLabel.text = @"历史文件";
|
|
|
+ // cell.cell2ValueLabel.hidden = YES;
|
|
|
+ // return cell;
|
|
|
+ // }break;
|
|
|
+ // default:
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }break;
|
|
|
+ case 2:{
|
|
|
+ switch (indexPath.row) {
|
|
|
+ case 0:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ cell.cell2TitleLabel.text = @"消息免打扰";
|
|
|
+ cell.cell2ValueLabel.hidden = YES;
|
|
|
+ cell.cell2RightArrowImg.hidden = YES;
|
|
|
+ cell.cell2Switch.hidden = NO;
|
|
|
+ cell.cell2Switch.enabled = YES;
|
|
|
+ [cell.cell2Switch setOn:self.IsDisturb];
|
|
|
+ [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
+ [[HttpManager sharedHttpManager] POSTUrl:Host(Group_Chat_User_is_disturb) parameters:@{@"GroupChatId":@(weakSelf.model.Id),@"UserId":@([AppUserModel sharedAppUserModel].Id)} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [weakSelf netWorking];
|
|
|
+ });
|
|
|
+ } failure:^(NSError * _Nonnull error) {
|
|
|
+
|
|
|
+ }];
|
|
|
+ }];
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ case 1:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ cell.cell2TitleLabel.text = @"置顶聊天";
|
|
|
+ cell.cell2ValueLabel.hidden = YES;
|
|
|
+ cell.cell2RightArrowImg.hidden = YES;
|
|
|
+ cell.cell2Switch.hidden = NO;
|
|
|
+ cell.cell2Switch.enabled = YES;
|
|
|
+ [cell.cell2Switch setOn:self.IsTop];
|
|
|
+ [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
+ [[HttpManager sharedHttpManager] POSTUrl:Host(Group_Chat_User_is_top) parameters:@{@"IsTop":@(!weakSelf.IsTop),@"GroupChatId":@(weakSelf.model.Id),@"UserId":@([AppUserModel sharedAppUserModel].Id)} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
+ weakSelf.IsTop = !weakSelf.IsTop;
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationNone];
|
|
|
+ });
|
|
|
+ } failure:^(NSError * _Nonnull error) {
|
|
|
+
|
|
|
+ }];
|
|
|
+ }];
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ default:
|
|
|
+ {
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell2:tableView indexPath:indexPath];
|
|
|
+ cell.cell2TitleLabel.text = @"保存到通讯录";
|
|
|
+ cell.cell2ValueLabel.hidden = YES;
|
|
|
+ cell.cell2RightArrowImg.hidden = YES;
|
|
|
+ cell.cell2Switch.hidden = NO;
|
|
|
+ cell.cell2Switch.enabled = YES;
|
|
|
+ [cell.cell2Switch setOn:self.model.IsContacts];
|
|
|
+ [cell.cell2Switch setBlockForControlEvents:UIControlEventValueChanged block:^(id _Nonnull sender) {
|
|
|
+ NSString * url = [NSString stringWithFormat:@"%@%ld",Host(APP_Group_Chat_Contacts),weakSelf.model.Id];
|
|
|
+ [[HttpManager sharedHttpManager] PUTUrl:url parameters:@{} responseStyle:DATA success:^(id _Nonnull responseObject) {
|
|
|
+ weakSelf.model.IsContacts = !weakSelf.model.IsContacts;
|
|
|
+ dispatch_async(dispatch_get_main_queue(), ^{
|
|
|
+ [tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationAutomatic];
|
|
|
+ });
|
|
|
+ } failure:^(NSError * _Nonnull error) {
|
|
|
+ SHOWERROR([ZYCTool handerResultData:error]);
|
|
|
+ }];
|
|
|
+ }];
|
|
|
+ return cell;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }break;
|
|
|
+ case 3:{
|
|
|
+ switch (indexPath.row) {
|
|
|
+ case 0:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell4:tableView indexPath:indexPath];
|
|
|
+ cell.cell4TitleLabel.text = @"清空聊天记录";
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ case 1:{
|
|
|
+ ChatMsgDetailChatInfoCell *cell = [ChatMsgDetailChatInfoCell configCell4:tableView indexPath:indexPath];
|
|
|
+ cell.cell4TitleLabel.text = @"删除并退出";
|
|
|
+ return cell;
|
|
|
+ }break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ }break;
|
|
|
+ default:
|
|
|
+ break;
|
|
|
+ }
|
|
|
return nil;
|
|
|
}
|
|
|
|
|
@@ -534,7 +555,6 @@
|
|
|
switch (indexPath.row) {
|
|
|
case 1:{
|
|
|
DetailChatInfoAllUserVC *vc = [DetailChatInfoAllUserVC initDetailChatInfoAllUserVC];
|
|
|
- vc.dataArray = self.allUserArray;
|
|
|
vc.isAdmin = self.IsAdmin;
|
|
|
vc.GroupChatImId = self.model.GroupChatImId;
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
@@ -569,7 +589,7 @@
|
|
|
vc.IsAdmin = self.model.IsAdmin;
|
|
|
vc.IsWords = self.model.IsWords;
|
|
|
vc.ChangeSuccessBlock = ^{
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}
|
|
@@ -581,7 +601,7 @@
|
|
|
vc.IsAdmin = self.model.IsAdmin;
|
|
|
vc.IsWords = self.model.IsWords;
|
|
|
vc.ChangeSuccessBlock = ^{
|
|
|
-
|
|
|
+
|
|
|
};
|
|
|
[self.navigationController pushViewController:vc animated:YES];
|
|
|
}break;
|
|
@@ -589,22 +609,22 @@
|
|
|
break;
|
|
|
}
|
|
|
}break;
|
|
|
-// case 2:{
|
|
|
-// switch (indexPath.row) {
|
|
|
-// case 0:{
|
|
|
-// ChatSearchCenterVC *vc = [ChatSearchCenterVC initChatSearchCenterVC];
|
|
|
-// vc.GroupChatImId = self.model.GroupChatImId;
|
|
|
-// [self.navigationController pushViewController:vc animated:YES];
|
|
|
-// }break;
|
|
|
-// case 1:{
|
|
|
-// ChatSearchFindbyFuJVC *vc = [ChatSearchFindbyFuJVC initChatSearchFindbyFuJVC];
|
|
|
-// vc.pageType = ChatSearchFindbyFuJType_History;
|
|
|
-// [self.navigationController pushViewController:vc animated:YES];
|
|
|
-// }break;
|
|
|
-// default:
|
|
|
-// break;
|
|
|
-// }
|
|
|
-// }break;
|
|
|
+ // case 2:{
|
|
|
+ // switch (indexPath.row) {
|
|
|
+ // case 0:{
|
|
|
+ // ChatSearchCenterVC *vc = [ChatSearchCenterVC initChatSearchCenterVC];
|
|
|
+ // vc.GroupChatImId = self.model.GroupChatImId;
|
|
|
+ // [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ // }break;
|
|
|
+ // case 1:{
|
|
|
+ // ChatSearchFindbyFuJVC *vc = [ChatSearchFindbyFuJVC initChatSearchFindbyFuJVC];
|
|
|
+ // vc.pageType = ChatSearchFindbyFuJType_History;
|
|
|
+ // [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ // }break;
|
|
|
+ // default:
|
|
|
+ // break;
|
|
|
+ // }
|
|
|
+ // }break;
|
|
|
case 3:{
|
|
|
switch (indexPath.row) {
|
|
|
case 0:{
|
|
@@ -738,106 +758,78 @@
|
|
|
|
|
|
- (void)collectionView:(GHRefreshCollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath{
|
|
|
[collectionView deselectItemAtIndexPath:indexPath animated:YES];
|
|
|
-// WS(weakSelf);
|
|
|
+ WS(weakSelf);
|
|
|
if (self.IsAdmin) {
|
|
|
if (indexPath.item == (self.collectionDataSource.count -1)) {//删除群成员
|
|
|
- NSMutableArray * array = [NSMutableArray array];
|
|
|
- for (NSInteger i = 0; i < self.collectionDataSource.count - 2; i ++) {
|
|
|
- ChatInfoUserModel * userModel = self.collectionDataSource[i];
|
|
|
- if ([AppUserModel sharedAppUserModel].Id == userModel.UserId) {
|
|
|
- continue;
|
|
|
- }
|
|
|
- SelectModel * model = [[SelectModel alloc] init];
|
|
|
- model.Nick = userModel.UserName;
|
|
|
- model.Phone = [NSString stringWithFormat:@"%ld",(long)userModel.GroupChatImId];
|
|
|
- model.ImId = [NSString stringWithFormat:@"%ld",(long)userModel.ImId];
|
|
|
- model.UserId = userModel.UserId;
|
|
|
- model.AvatarUrl = userModel.AvatarUrl;
|
|
|
- model.UserName = userModel.UserName;
|
|
|
- model.hasSon = NO;
|
|
|
- model.hadSelected = NO;
|
|
|
- [array addObject:model];
|
|
|
- }
|
|
|
- ChatGroupDeleteVC *vc = [[ChatGroupDeleteVC alloc] init];
|
|
|
- vc.grouperArray = array;
|
|
|
- vc.GroupChatImId = self.model.GroupChatImId;
|
|
|
- vc.refreshBlock = ^{
|
|
|
-// [weakSelf netWorking];
|
|
|
- };
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }else if (indexPath.item == (self.collectionDataSource.count -2)){
|
|
|
- Department *defaltGroupSetion = [[Department alloc]init];
|
|
|
- defaltGroupSetion.Name = @"单位通讯录";
|
|
|
- defaltGroupSetion.Id = 0;
|
|
|
-
|
|
|
- Department *myGroupSetion = [[Department alloc]init];
|
|
|
- myGroupSetion.Name = @"自建通讯录";
|
|
|
- defaltGroupSetion.Id = 0;
|
|
|
-
|
|
|
- NSMutableArray * array = [NSMutableArray array];
|
|
|
- for (NSInteger i = 0; i < self.collectionDataSource.count - 2; i ++) {
|
|
|
- ChatInfoUserModel * userModel = self.collectionDataSource[i];
|
|
|
- SelectModel * model = [[SelectModel alloc] init];
|
|
|
- model.Nick = userModel.UserName;
|
|
|
- model.Phone = [NSString stringWithFormat:@"%ld",(long)userModel.GroupChatImId];
|
|
|
- model.ImId = [NSString stringWithFormat:@"%ld",(long)userModel.ImId];
|
|
|
- model.UserId = userModel.UserId;
|
|
|
- model.AvatarUrl = userModel.AvatarUrl;
|
|
|
- model.UserName = userModel.UserName;
|
|
|
- model.hasSon = NO;
|
|
|
- model.hadSelected = NO;
|
|
|
- [array addObject:model];
|
|
|
- }
|
|
|
- ChatGroupAddVC *vc = [[ChatGroupAddVC alloc] init];
|
|
|
- vc.departSourceDataArray = @[defaltGroupSetion,myGroupSetion].mutableCopy;
|
|
|
- vc.isDefalutPage = 1;
|
|
|
- vc.type = AddChatUser;
|
|
|
- vc.Id = self.model.GroupChatImId;
|
|
|
- vc.grouperArray = array;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }else{
|
|
|
- ChatInfoUserModel *model = self.collectionDataSource[indexPath.row];
|
|
|
- MailListDetailVC *vc = [MailListDetailVC initMailListDetailVC];
|
|
|
- vc.indexId = model.UserId;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }
|
|
|
+ NSMutableArray * array = [NSMutableArray array];
|
|
|
+ for (NSInteger i = 0; i < self.collectionDataSource.count - 2; i ++) {
|
|
|
+ ChatInfoUserModel * userModel = self.collectionDataSource[i];
|
|
|
+ if ([AppUserModel sharedAppUserModel].Id == userModel.UserId) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ SelectModel * model = [[SelectModel alloc] init];
|
|
|
+ model.Nick = userModel.UserName;
|
|
|
+ model.Phone = [NSString stringWithFormat:@"%ld",(long)userModel.GroupChatImId];
|
|
|
+ model.ImId = [NSString stringWithFormat:@"%ld",(long)userModel.ImId];
|
|
|
+ model.UserId = userModel.UserId;
|
|
|
+ model.AvatarUrl = userModel.AvatarUrl;
|
|
|
+ model.UserName = userModel.UserName;
|
|
|
+ model.hasSon = NO;
|
|
|
+ model.hadSelected = NO;
|
|
|
+ [array addObject:model];
|
|
|
+ }
|
|
|
+ ChatGroupDeleteVC *vc = [[ChatGroupDeleteVC alloc] init];
|
|
|
+ vc.GroupChatImId = self.model.GroupChatImId;
|
|
|
+ vc.refreshBlock = ^(void) {
|
|
|
+ [weakSelf netWorking];
|
|
|
+ };
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }else if (indexPath.item == (self.collectionDataSource.count -2)){
|
|
|
+ NSMutableArray * array = [NSMutableArray array];
|
|
|
+ for (NSInteger i = 0; i < self.collectionDataSource.count - 2; i ++) {
|
|
|
+ ChatInfoUserModel * userModel = self.collectionDataSource[i];
|
|
|
+ [array addObject:@(userModel.UserId)];
|
|
|
+ }
|
|
|
+ AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
+ vc.titleStr = @"添加成员";
|
|
|
+ vc.isDefalutPage = 1;
|
|
|
+ vc.delegate = self;
|
|
|
+ USERDEFAULTSSET([NSMutableArray array], MAILSELECT);
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }else{
|
|
|
+ ChatInfoUserModel *model = self.collectionDataSource[indexPath.row];
|
|
|
+ MailListDetailVC *vc = [MailListDetailVC initMailListDetailVC];
|
|
|
+ vc.indexId = model.UserId;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}else{
|
|
|
if (indexPath.item == (self.collectionDataSource.count -1)) {//添加群成员
|
|
|
- Department *defaltGroupSetion = [[Department alloc]init];
|
|
|
- defaltGroupSetion.Name = @"单位通讯录";
|
|
|
- defaltGroupSetion.Id = 0;
|
|
|
-
|
|
|
- Department *myGroupSetion = [[Department alloc]init];
|
|
|
- myGroupSetion.Name = @"自建通讯录";
|
|
|
- defaltGroupSetion.Id = 0;
|
|
|
-
|
|
|
- NSMutableArray * array = [NSMutableArray array];
|
|
|
- for (NSInteger i = 0; i < self.collectionDataSource.count - 2; i ++) {
|
|
|
- ChatInfoUserModel * userModel = self.collectionDataSource[i];
|
|
|
- SelectModel * model = [[SelectModel alloc] init];
|
|
|
- model.Nick = userModel.UserName;
|
|
|
- model.Phone = [NSString stringWithFormat:@"%ld",(long)userModel.GroupChatImId];
|
|
|
- model.ImId = [NSString stringWithFormat:@"%ld",(long)userModel.ImId];
|
|
|
- model.UserId = userModel.UserId;
|
|
|
- model.AvatarUrl = userModel.AvatarUrl;
|
|
|
- model.UserName = userModel.UserName;
|
|
|
- model.hasSon = NO;
|
|
|
- model.hadSelected = NO;
|
|
|
- [array addObject:model];
|
|
|
- }
|
|
|
- ChatGroupAddVC *vc = [[ChatGroupAddVC alloc] init];
|
|
|
- vc.departSourceDataArray = @[defaltGroupSetion,myGroupSetion].mutableCopy;
|
|
|
- vc.isDefalutPage = 1;
|
|
|
- vc.Id = self.model.GroupChatImId;
|
|
|
- vc.type = AddChatUser;
|
|
|
- vc.grouperArray = array;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }else{
|
|
|
- ChatInfoUserModel *model = self.collectionDataSource[indexPath.row];
|
|
|
- MailListDetailVC *vc = [MailListDetailVC initMailListDetailVC];
|
|
|
- vc.indexId = model.UserId;
|
|
|
- [self.navigationController pushViewController:vc animated:YES];
|
|
|
- }
|
|
|
+ Department *defaltGroupSetion = [[Department alloc]init];
|
|
|
+ defaltGroupSetion.Name = @"单位通讯录";
|
|
|
+ defaltGroupSetion.Id = 0;
|
|
|
+
|
|
|
+ Department *myGroupSetion = [[Department alloc]init];
|
|
|
+ myGroupSetion.Name = @"自建通讯录";
|
|
|
+ defaltGroupSetion.Id = 0;
|
|
|
+
|
|
|
+ NSMutableArray * array = [NSMutableArray array];
|
|
|
+ for (NSInteger i = 0; i < self.collectionDataSource.count - 2; i ++) {
|
|
|
+ ChatInfoUserModel * userModel = self.collectionDataSource[i];
|
|
|
+ [array addObject:@(userModel.UserId)];
|
|
|
+ }
|
|
|
+ AddLookUpUserSecondVC *vc = [[AddLookUpUserSecondVC alloc] init];
|
|
|
+ vc.titleStr = @"添加成员";
|
|
|
+ vc.isDefalutPage = 1;
|
|
|
+ vc.delegate = self;
|
|
|
+ vc.UserIds = array;
|
|
|
+ USERDEFAULTSSET([NSMutableArray array], MAILSELECT);
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }else{
|
|
|
+ ChatInfoUserModel *model = self.collectionDataSource[indexPath.row];
|
|
|
+ MailListDetailVC *vc = [MailListDetailVC initMailListDetailVC];
|
|
|
+ vc.indexId = model.UserId;
|
|
|
+ [self.navigationController pushViewController:vc animated:YES];
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -893,11 +885,11 @@
|
|
|
}else if ([typeName isEqualToString:@"发到消息"]){
|
|
|
|
|
|
}else if ([typeName isEqualToString:@"发到小组"]){
|
|
|
-// [self returnToGroup];
|
|
|
+ // [self returnToGroup];
|
|
|
}else if ([typeName isEqualToString:@"发到笔记"]){
|
|
|
-// [self returnToNote];
|
|
|
+ // [self returnToNote];
|
|
|
}else if ([typeName isEqualToString:@"发到话题"]){
|
|
|
-// [self returnToTopic];
|
|
|
+ // [self returnToTopic];
|
|
|
}else{
|
|
|
}
|
|
|
}
|