fix(sos): isLiaisonUser移至viewWillAppear,急救员入口工具栏隐藏结束咨询和档案,群成员加载加菊花,视频加号走IM默认
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.7
parent
a6a0f0a4ce
commit
ee47bba29a
@@ -364,9 +364,8 @@
|
||||
zoomPannelView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleLeftMargin;
|
||||
[self.grapView addSubview:zoomPannelView];
|
||||
|
||||
// 判断是否是联络员,决定是否展示急救员按钮
|
||||
XJPNetAPI *api = [[XJPNetAPI alloc] init:self tag:@"isLiaisonUser" NeedToken:@""];
|
||||
[api getIsLiaisonUser:nil];
|
||||
// 首次布局底部按钮(接口返回前先按 2 个按钮布局)
|
||||
[self layoutBottomButtons];
|
||||
}
|
||||
|
||||
/// 底部按钮均分布局(宽度三等分,各区域内居中)
|
||||
@@ -621,6 +620,10 @@
|
||||
CGFloat longitude = [[user objectForKey:USERDEFAULLONG] floatValue];
|
||||
CGFloat latitude = [[user objectForKey:USERDEFAULLATITUDE] floatValue];
|
||||
[self getResourceDataWithType:@"1" Longitude:longitude withLatitude:latitude];
|
||||
|
||||
// 每次页面出现时重新判断联络员身份,决定是否展示急救员按钮
|
||||
XJPNetAPI *api = [[XJPNetAPI alloc] init:self tag:@"isLiaisonUser" NeedToken:@""];
|
||||
[api getIsLiaisonUser:nil];
|
||||
}
|
||||
|
||||
- (void)viewDidAppear:(BOOL)animated
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
#import "CurrentLocationViewController.h"
|
||||
#import "CustomMapMessageCell.h"
|
||||
#import "TUIGroupMemberCellData.h"
|
||||
#import <TUICallKit/TUICallKit.h>
|
||||
#import "XJSelectContactViewController.h"
|
||||
#import "TUITextMessageCellData.h"
|
||||
#import "QuestionViewController.h"
|
||||
@@ -143,6 +144,12 @@
|
||||
[TUIChatConfig defaultConfig].enableMapCall = self.eableMapTools;
|
||||
[TUIChatConfig defaultConfig].isEvealCell = self.isEveal; // YES:开启,NO:关闭
|
||||
|
||||
// 急救员入口隐藏结束咨询和档案
|
||||
[TUIChatConfig defaultConfig].enableEndConsultation = !self.isFromFirstAid;
|
||||
if (self.isFromFirstAid) {
|
||||
[TUIChatConfig defaultConfig].enableSendHealthDataCall = YES;
|
||||
}
|
||||
|
||||
|
||||
TUIConfig *config = [TUIConfig defaultConfig];
|
||||
config.avatarType = TAvatarTypeRounded;
|
||||
@@ -213,11 +220,13 @@
|
||||
|
||||
}
|
||||
// self.view.backgroundColor = UIColorHex(#EEEEEE);
|
||||
if ([self.tfNew integerValue] == 1) {
|
||||
[ESCTUIManager sendGroupVideo:self.chatID withUserIdList:self.member];
|
||||
if (self.isFromFirstAid) {
|
||||
TUICallingViewManager *manager = [[TUICallKit createInstance] valueForKey:@"callingViewManager"];
|
||||
manager.addUserDelegate = self;
|
||||
}
|
||||
if ([self.tfNew integerValue] == 1) {
|
||||
[ESCTUIManager sendGroupVideo:self.chatID withUserIdList:self.member];
|
||||
}
|
||||
//主动发送一条消息
|
||||
//如果点击跳过进入 不操作 非跳过 发送健康档案 2=非跳过
|
||||
if (self.JumpType == 2 && self.questionType == 2) {
|
||||
@@ -313,8 +322,7 @@
|
||||
#pragma mark - TUICallingViewManagerDelegate
|
||||
|
||||
- (BOOL)callingViewManagerDidTapAddUser:(TUICallingViewManager *)manager {
|
||||
[self moreAction];
|
||||
return YES;
|
||||
return NO;
|
||||
}
|
||||
|
||||
#pragma mark: 右上角更多(群成员侧滑面板)
|
||||
@@ -454,6 +462,7 @@
|
||||
}
|
||||
|
||||
- (void)loadGroupMembers {
|
||||
[self showMBProgressHUDWithString:@"加载中..." autoHidden:NO];
|
||||
self.memberList = [NSMutableArray array];
|
||||
NSMutableDictionary *params = [NSMutableDictionary dictionary];
|
||||
[params setObject:self.chatID forKey:@"sessionId"];
|
||||
@@ -941,6 +950,7 @@
|
||||
}
|
||||
}
|
||||
if ([tag isEqualToString:@"GROUPMEMBERLIST"]) {
|
||||
[self hiddenAllMBProgressHUD];
|
||||
[self.memberList removeAllObjects];
|
||||
NSArray *list = [response isKindOfClass:[NSDictionary class]] ? response[@"result"] : response;
|
||||
if ([list isKindOfClass:[NSArray class]]) {
|
||||
|
||||
Reference in New Issue
Block a user