diff --git a/XinjiangProject/XinjiangProject/Project/TUIChat/ChatViewController.m b/XinjiangProject/XinjiangProject/Project/TUIChat/ChatViewController.m index e165cf6..22c9697 100644 --- a/XinjiangProject/XinjiangProject/Project/TUIChat/ChatViewController.m +++ b/XinjiangProject/XinjiangProject/Project/TUIChat/ChatViewController.m @@ -22,6 +22,7 @@ #import "TUIGroupMemberCellData.h" #import #import "XJSelectContactViewController.h" +#import "XJParticipatedOrderModel.h" #import "TUITextMessageCellData.h" #import "QuestionViewController.h" #import "SendReportModel.h" @@ -77,6 +78,11 @@ @property (nonatomic, strong) NSMutableArray *memberList; @property (nonatomic, strong) UIImageView *refreshIcon; +@property (nonatomic, strong) NSMutableArray *orderList; +@property (nonatomic, assign) NSInteger orderPage; +@property (nonatomic, strong) UITableView *orderPopupTable; +@property (nonatomic, assign) NSInteger selectedOrderIndex; + @end @implementation ChatViewController @@ -597,6 +603,10 @@ - (void)callMemberAction:(UIButton *)sender { UITableViewCell *cell = (UITableViewCell *)sender.superview.superview; NSIndexPath *indexPath = [self.memberTableView indexPathForCell:cell]; + [self callMemberAtIndexPath:indexPath]; +} + +- (void)callMemberAtIndexPath:(NSIndexPath *)indexPath { if (!indexPath || indexPath.row >= self.memberList.count) return; NSDictionary *member = self.memberList[indexPath.row]; NSString *phone = member[@"phone"]; @@ -609,6 +619,13 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [tableView deselectRowAtIndexPath:indexPath animated:YES]; + if (tableView == self.memberTableView) { + [self callMemberAtIndexPath:indexPath]; + } + if (tableView == self.orderPopupTable) { + self.selectedOrderIndex = indexPath.row; + [tableView reloadData]; + } } #pragma mark:跳转到地图选择页