fix(sos): 群成员面板cell整行可拨打电话,修复编译缺失属性声明和import

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
jiayangyang
2026-08-04 20:00:57 +08:00
co-authored by Claude Opus 4.7
parent 5b719599ba
commit bfce0d5885
@@ -22,6 +22,7 @@
#import "TUIGroupMemberCellData.h"
#import <TUICallKit/TUICallKit.h>
#import "XJSelectContactViewController.h"
#import "XJParticipatedOrderModel.h"
#import "TUITextMessageCellData.h"
#import "QuestionViewController.h"
#import "SendReportModel.h"
@@ -77,6 +78,11 @@
@property (nonatomic, strong) NSMutableArray<NSDictionary *> *memberList;
@property (nonatomic, strong) UIImageView *refreshIcon;
@property (nonatomic, strong) NSMutableArray<XJParticipatedOrderModel *> *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:跳转到地图选择页