diff --git a/DoctorXinjiang/DoctorXinjiang/Project/TUIChat/ChatViewController.m b/DoctorXinjiang/DoctorXinjiang/Project/TUIChat/ChatViewController.m index 20cd5c3..cd5df2f 100644 --- a/DoctorXinjiang/DoctorXinjiang/Project/TUIChat/ChatViewController.m +++ b/DoctorXinjiang/DoctorXinjiang/Project/TUIChat/ChatViewController.m @@ -817,6 +817,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"]; @@ -966,6 +970,9 @@ } - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { + if (tableView == self.memberTableView) { + [self callMemberAtIndexPath:indexPath]; + } if (tableView == self.orderPopupTable) { self.selectedOrderIndex = indexPath.row; [tableView reloadData]; diff --git a/DoctorXinjiang/DoctorXinjiang/Supporting Files/Assets.xcassets/Image/firstAid_phone_icon.imageset/Contents.json b/DoctorXinjiang/DoctorXinjiang/Supporting Files/Assets.xcassets/Image/firstAid_phone_icon.imageset/Contents.json new file mode 100644 index 0000000..ada4361 --- /dev/null +++ b/DoctorXinjiang/DoctorXinjiang/Supporting Files/Assets.xcassets/Image/firstAid_phone_icon.imageset/Contents.json @@ -0,0 +1,21 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x" + }, + { + "filename" : "firstAid_phone_icon.png", + "idiom" : "universal", + "scale" : "2x" + }, + { + "idiom" : "universal", + "scale" : "3x" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/DoctorXinjiang/DoctorXinjiang/Supporting Files/Assets.xcassets/Image/firstAid_phone_icon.imageset/firstAid_phone_icon.png b/DoctorXinjiang/DoctorXinjiang/Supporting Files/Assets.xcassets/Image/firstAid_phone_icon.imageset/firstAid_phone_icon.png new file mode 100644 index 0000000..979b597 Binary files /dev/null and b/DoctorXinjiang/DoctorXinjiang/Supporting Files/Assets.xcassets/Image/firstAid_phone_icon.imageset/firstAid_phone_icon.png differ