Commit 2427676f authored by jz's avatar jz

update

parents 94b6f4ff dd553d6b
PODS: PODS:
- AFNetworking (3.1.0): - AFNetworking (4.0.1):
- AFNetworking/NSURLSession (= 3.1.0) - AFNetworking/NSURLSession (= 4.0.1)
- AFNetworking/Reachability (= 3.1.0) - AFNetworking/Reachability (= 4.0.1)
- AFNetworking/Security (= 3.1.0) - AFNetworking/Security (= 4.0.1)
- AFNetworking/Serialization (= 3.1.0) - AFNetworking/Serialization (= 4.0.1)
- AFNetworking/UIKit (= 3.1.0) - AFNetworking/UIKit (= 4.0.1)
- AFNetworking/NSURLSession (3.1.0): - AFNetworking/NSURLSession (4.0.1):
- AFNetworking/Reachability - AFNetworking/Reachability
- AFNetworking/Security - AFNetworking/Security
- AFNetworking/Serialization - AFNetworking/Serialization
- AFNetworking/Reachability (3.1.0) - AFNetworking/Reachability (4.0.1)
- AFNetworking/Security (3.1.0) - AFNetworking/Security (4.0.1)
- AFNetworking/Serialization (3.1.0) - AFNetworking/Serialization (4.0.1)
- AFNetworking/UIKit (3.1.0): - AFNetworking/UIKit (4.0.1):
- AFNetworking/NSURLSession - AFNetworking/NSURLSession
- Alamofire (4.7.0) - Alamofire (4.7.0)
- AlipaySDK-iOS (15.6.8) - AlipaySDK-iOS (15.6.8)
...@@ -87,49 +87,56 @@ PODS: ...@@ -87,49 +87,56 @@ PODS:
- lottie-ios (= 2.5.2) - lottie-ios (= 2.5.2)
- MBProgressHUD (= 0.9.2) - MBProgressHUD (= 0.9.2)
- GMJSONModel (1.7.4) - GMJSONModel (1.7.4)
- GMKit (1.2.7): - GMKit (1.2.8):
- GMKit/Category (= 1.2.7) - GMKit/Category (= 1.2.8)
- GMKit/Color (= 1.2.7) - GMKit/Color (= 1.2.8)
- GMKit/Constant (= 1.2.7) - GMKit/Constant (= 1.2.8)
- GMKit/FDFullscreenPopGesture (= 1.2.7) - GMKit/FDFullscreenPopGesture (= 1.2.8)
- GMKit/Kit (= 1.2.7) - GMKit/Kit (= 1.2.8)
- GMKit/Protocol (= 1.2.7) - GMKit/Protocol (= 1.2.8)
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMKit/Category (1.2.7): - GMKit/Category (1.2.8):
- GMKit/Color (= 1.2.7) - GMKit/Color (= 1.2.8)
- GMKit/Constant (= 1.2.7) - GMKit/Constant (= 1.2.8)
- GMKit/Protocol (= 1.2.7) - GMKit/Protocol (= 1.2.8)
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMKit/Color (1.2.7): - GMKit/Color (1.2.8):
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMKit/Constant (1.2.7): - GMKit/Constant (1.2.8):
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMKit/FDFullscreenPopGesture (1.2.7): - GMKit/FDFullscreenPopGesture (1.2.8):
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMKit/Kit (1.2.7): - GMKit/Kit (1.2.8):
- GMKit/Category (= 1.2.7) - GMKit/Category (= 1.2.8)
- GMKit/Color (= 1.2.7) - GMKit/Color (= 1.2.8)
- GMKit/Constant (= 1.2.7) - GMKit/Constant (= 1.2.8)
- GMKit/Protocol (= 1.2.7) - GMKit/Protocol (= 1.2.8)
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMKit/Protocol (1.2.7): - GMKit/Protocol (1.2.8):
- GMPhobos
- Masonry - Masonry
- SDWebImage - SDWebImage
- SnapKit - SnapKit
- GMNetService (1.0.2): - GMNetService (1.0.3):
- AFNetworking (= 3.1.0) - AFNetworking
- GMNetworking (4.0.7): - GMNetworking (4.0.7):
- Alamofire (= 4.7.0) - Alamofire (= 4.7.0)
- GMPhobos (2.0.7): - GMPhobos (2.0.7):
...@@ -160,7 +167,7 @@ PODS: ...@@ -160,7 +167,7 @@ PODS:
- MagicalRecord/Core (2.3.2) - MagicalRecord/Core (2.3.2)
- Masonry (1.1.0) - Masonry (1.1.0)
- MBProgressHUD (0.9.2) - MBProgressHUD (0.9.2)
- MJExtension (3.2.1) - MJExtension (3.2.2)
- MJRefresh (3.4.3) - MJRefresh (3.4.3)
- NIMSDK (7.5.0) - NIMSDK (7.5.0)
- PLMediaStreamingKit (3.0.0): - PLMediaStreamingKit (3.0.0):
...@@ -170,9 +177,9 @@ PODS: ...@@ -170,9 +177,9 @@ PODS:
- PLPlayerKit/iphoneos (= 3.4.3) - PLPlayerKit/iphoneos (= 3.4.3)
- PLPlayerKit/iphoneos (3.4.3) - PLPlayerKit/iphoneos (3.4.3)
- Qiniu (7.2.6) - Qiniu (7.2.6)
- SDWebImage (5.8.1): - SDWebImage (5.8.3):
- SDWebImage/Core (= 5.8.1) - SDWebImage/Core (= 5.8.3)
- SDWebImage/Core (5.8.1) - SDWebImage/Core (5.8.3)
- SnapKit (4.0.0) - SnapKit (4.0.0)
- TMCache (2.1.0) - TMCache (2.1.0)
- "UITableView+FDTemplateLayoutCell (1.4)" - "UITableView+FDTemplateLayoutCell (1.4)"
...@@ -238,7 +245,7 @@ EXTERNAL SOURCES: ...@@ -238,7 +245,7 @@ EXTERNAL SOURCES:
:path: "../" :path: "../"
SPEC CHECKSUMS: SPEC CHECKSUMS:
AFNetworking: 5e0e199f73d8626b11e79750991f5d173d1f8b67 AFNetworking: 7864c38297c79aaca1500c33288e429c3451fdce
Alamofire: 907e0a98eb68cdb7f9d1f541a563d6ac5dc77b25 Alamofire: 907e0a98eb68cdb7f9d1f541a563d6ac5dc77b25
AlipaySDK-iOS: 703a55774a37f412410ab04af96c011b91ec58cb AlipaySDK-iOS: 703a55774a37f412410ab04af96c011b91ec58cb
BDOpenSDKKit: 3fb530ce73f85a7d6ee69e7fd3d9158444c5bd09 BDOpenSDKKit: 3fb530ce73f85a7d6ee69e7fd3d9158444c5bd09
...@@ -254,8 +261,8 @@ SPEC CHECKSUMS: ...@@ -254,8 +261,8 @@ SPEC CHECKSUMS:
GMFoundation: e9f7fd9c6e5f133e09009b0ee5de4fce60ac5682 GMFoundation: e9f7fd9c6e5f133e09009b0ee5de4fce60ac5682
GMHud: feca48b3eda4f3a6f617f4bbaa3657316a245c1f GMHud: feca48b3eda4f3a6f617f4bbaa3657316a245c1f
GMJSONModel: 5e81a98de668e9f93cf6ff77869f77b0d1a806be GMJSONModel: 5e81a98de668e9f93cf6ff77869f77b0d1a806be
GMKit: 410f4a2da98698ffe2e1e97043ea8f97ab8adb17 GMKit: bfb96afc614ed15404c5893f864e83cedaf7c839
GMNetService: 7c69e7981b4fac29657fad5fc86a0c453196b862 GMNetService: 78d729467b99b6ce9814d51efa4dcfa3ddebafe3
GMNetworking: 592b9b71f2a7d92203483276158ce3139ac789d2 GMNetworking: 592b9b71f2a7d92203483276158ce3139ac789d2
GMPhobos: ae8ecc3c1fc4e94e0fa4fd093da46e4f6bce580e GMPhobos: ae8ecc3c1fc4e94e0fa4fd093da46e4f6bce580e
GMRefresh: 11497a660eb14b1fda443bfe682910e0cc6031f4 GMRefresh: 11497a660eb14b1fda443bfe682910e0cc6031f4
...@@ -267,13 +274,13 @@ SPEC CHECKSUMS: ...@@ -267,13 +274,13 @@ SPEC CHECKSUMS:
MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755 MagicalRecord: 53bed74b4323b930992a725be713e53b37d19755
Masonry: 678fab65091a9290e40e2832a55e7ab731aad201 Masonry: 678fab65091a9290e40e2832a55e7ab731aad201
MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1 MBProgressHUD: 1569cf7ace17a8bac47aabfbb8580a49690386d1
MJExtension: 635f2c663dcb1bf76fa4b715b2570a5710aec545 MJExtension: d9b9c74cbdeb724c1e9ecbb157b318276e62e876
MJRefresh: 53e3e3219f204425ee6d3e62e8733d3295944cd6 MJRefresh: 53e3e3219f204425ee6d3e62e8733d3295944cd6
NIMSDK: a43eb9b8bf83ddb0338c51ae2d756b683edc0cb8 NIMSDK: a43eb9b8bf83ddb0338c51ae2d756b683edc0cb8
PLMediaStreamingKit: 3f4fafe3535de54a02c219f40331afa2b47592e0 PLMediaStreamingKit: 3f4fafe3535de54a02c219f40331afa2b47592e0
PLPlayerKit: a44734dc78c1f8f9fb22c537fa1916612fa46b06 PLPlayerKit: a44734dc78c1f8f9fb22c537fa1916612fa46b06
Qiniu: 9d1f20dcc348919972b4ee1b1272f9b9d4a7e69e Qiniu: 9d1f20dcc348919972b4ee1b1272f9b9d4a7e69e
SDWebImage: e3eae2eda88578db0685a0c88597fdadd9433f05 SDWebImage: 112503ec94a5a2a41869503844a15e8d8f1ead5c
SnapKit: a42d492c16e80209130a3379f73596c3454b7694 SnapKit: a42d492c16e80209130a3379f73596c3454b7694
TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed TMCache: 95ebcc9b3c7e90fb5fd8fc3036cba3aa781c9bed
"UITableView+FDTemplateLayoutCell": 234e1582bcc4e18461af91155123bb96538ed030 "UITableView+FDTemplateLayoutCell": 234e1582bcc4e18461af91155123bb96538ed030
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
[self.collectView performBatchUpdates:^{ [self.collectView performBatchUpdates:^{
[weakSelf.collectView layoutIfNeeded]; [weakSelf.collectView layoutIfNeeded];
} completion:^(BOOL finished) { } completion:^(BOOL finished) {
if (finished) { if (finished && dataArray.count > 0) {
NSIndexPath *firstIndexPath = [NSIndexPath indexPathForItem: 0 inSection:0]; NSIndexPath *firstIndexPath = [NSIndexPath indexPathForItem: 0 inSection:0];
[self.collectView scrollToItemAtIndexPath:firstIndexPath atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally animated:YES]; [self.collectView scrollToItemAtIndexPath:firstIndexPath atScrollPosition:UICollectionViewScrollPositionCenteredHorizontally animated:YES];
_layout.currentIndex = 0; _layout.currentIndex = 0;
......
...@@ -15,6 +15,8 @@ ...@@ -15,6 +15,8 @@
@property (nonatomic, strong) GMToFaceOrderInfoModel *infoModel; @property (nonatomic, strong) GMToFaceOrderInfoModel *infoModel;
/// 面诊订单列表页可以关闭界面,面诊结束弹起的界面不可以 /// 面诊订单列表页可以关闭界面,面诊结束弹起的界面不可以
@property (nonatomic, assign) BOOL isCloseBtnHidden; @property (nonatomic, assign) BOOL isCloseBtnHidden;
@property (nonatomic, assign) BOOL isNotShowStarView; // 接通<=30s不弹评价弹窗
/** /**
* 确认订单完成(评价或者投诉也操作过),回传给h5,更改订单列表该订单的状态 * 确认订单完成(评价或者投诉也操作过),回传给h5,更改订单列表该订单的状态
* 目前只有面诊订单列表才用到此回调 * 目前只有面诊订单列表才用到此回调
......
...@@ -224,32 +224,37 @@ ...@@ -224,32 +224,37 @@
} }
#pragma mark - 星级评价弹框 #pragma mark - 星级评价弹框
- (void)starMethod { - (void)starMethod {
//是面诊师直接弹评价弹框 //是面诊师直接弹评价弹框
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
[[GMToFaceNetworking shareInstance] excuteToFaceEvaluateItemDiagnosis_id:self.infoModel.consultationRecordId SuccessBlock:^(id response) { [[GMToFaceNetworking shareInstance] excuteToFaceEvaluateItemDiagnosis_id:self.infoModel.consultationRecordId SuccessBlock:^(id response) {
GMStarWithContentObject *starContentModel = [[GMStarWithContentObject alloc] initWithDictionary:response error:nil]; if (self.isNotShowStarView) {
GMEndConsultView *view = [[GMEndConsultView alloc] initWithType:(GMEndConsultViewTypeGrayStar) starNum:0]; [weakSelf hide];
[weakSelf hide]; } else {
//投诉弹框右上角的×的点击,原因是订单列表会用到这个值,目的是回传给h5改订单列表的状态 GMStarWithContentObject *starContentModel = [[GMStarWithContentObject alloc] initWithDictionary:response error:nil];
view.hideFinish = ^{ GMEndConsultView *view = [[GMEndConsultView alloc] initWithType:(GMEndConsultViewTypeGrayStar) starNum:0];
if (weakSelf.completeCallBack) { [weakSelf hide];
weakSelf.completeCallBack(0, @"", 0); //投诉弹框右上角的×的点击,原因是订单列表会用到这个值,目的是回传给h5改订单列表的状态
} view.hideFinish = ^{
};
//星级评价,原因是订单列表会用到这个值,目的是回传给h5改订单列表的状态
view.evaluateFinish = ^(NSInteger type, NSInteger starNum, NSString * _Nonnull evaluateStr) {
[self hide];
if (type == 0) {
//type = 0 是填写评价,所以只有这种情况才是需要回传给h5
if (weakSelf.completeCallBack) { if (weakSelf.completeCallBack) {
weakSelf.completeCallBack(2, evaluateStr, starNum); weakSelf.completeCallBack(0, @"", 0);
} }
} };
}; //星级评价,原因是订单列表会用到这个值,目的是回传给h5改订单列表的状态
view.showComplaint = NO; view.evaluateFinish = ^(NSInteger type, NSInteger starNum, NSString * _Nonnull evaluateStr) {
view.recordId = self.infoModel.consultationRecordId; [self hide];
view.starContentArray = starContentModel.evaluates; if (type == 0) {
[[GMBaseTool getCurrentViewController].view addSubview:view]; //type = 0 是填写评价,所以只有这种情况才是需要回传给h5
if (weakSelf.completeCallBack) {
weakSelf.completeCallBack(2, evaluateStr, starNum);
}
}
};
view.showComplaint = NO;
view.recordId = self.infoModel.consultationRecordId;
view.starContentArray = starContentModel.evaluates;
[[GMBaseTool getCurrentViewController].view addSubview:view];
}
} failureBlock:^(NSInteger errorCode, NSString *message) { } failureBlock:^(NSInteger errorCode, NSString *message) {
[self hide]; [self hide];
}]; }];
......
...@@ -33,10 +33,12 @@ ...@@ -33,10 +33,12 @@
- (void)excuteToFacePayCompleteBlock:(HttpSuccessBlock)successBlock failedBlock:(HttpFailedBlock)failedBlock { - (void)excuteToFacePayCompleteBlock:(HttpSuccessBlock)successBlock failedBlock:(HttpFailedBlock)failedBlock {
if (self.payType == GMToFacePayTypeAlipay && ![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"alipay://"]]) { if (self.payType == GMToFacePayTypeAlipay && ![[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"alipay://"]]) {
[[GMBaseTool getCurrentViewController] toast:@"请安装支付宝"]; [[GMBaseTool getCurrentViewController] toast:@"请安装支付宝"];
failedBlock(@"");
return; return;
} }
if (self.payType == GMToFacePayTypeWechat && ![WXApi isWXAppInstalled]) { if (self.payType == GMToFacePayTypeWechat && ![WXApi isWXAppInstalled]) {
[[GMBaseTool getCurrentViewController] toast:@"请安装微信"]; [[GMBaseTool getCurrentViewController] toast:@"请安装微信"];
failedBlock(@"");
return; return;
} }
NSString *channel; NSString *channel;
......
...@@ -38,9 +38,9 @@ static id _manager; ...@@ -38,9 +38,9 @@ static id _manager;
{ {
self = [super init]; self = [super init];
if (self) { if (self) {
_rtcEngine = [TTTRtcEngineKit sharedEngineWithAppId:TTTAppID delegate:nil]; _rtcEngine = [TTTRtcEngineKit sharedEngineWithAppId:TTTAppID delegate:nil];
[_rtcEngine setSignalTimeout:30]; [_rtcEngine setSignalTimeout:30];
[_rtcEngine setPreferAudioCodec:TTTRtc_AudioCodec_ISAC_WB bitrate:32 channels:1];
_me = [[GMTTTUser alloc] initWith:0]; _me = [[GMTTTUser alloc] initWith:0];
_localProfile = TTTRtc_VideoProfile_Default; _localProfile = TTTRtc_VideoProfile_Default;
_cdnProfile = TTTRtc_VideoProfile_Default; _cdnProfile = TTTRtc_VideoProfile_Default;
......
...@@ -273,6 +273,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil; ...@@ -273,6 +273,7 @@ static GMUserVideoTelephoneLogin *loginManager = nil;
GMToFaceOrderInfoModel *infoModel = [[GMToFaceOrderInfoModel alloc] initWithDictionary:response error:nil]; GMToFaceOrderInfoModel *infoModel = [[GMToFaceOrderInfoModel alloc] initWithDictionary:response error:nil];
infoModel.consultationRecordId = TTManager.consultationRecordId; infoModel.consultationRecordId = TTManager.consultationRecordId;
GMSureOrderPopView *popView = [[GMSureOrderPopView alloc] init]; GMSureOrderPopView *popView = [[GMSureOrderPopView alloc] init];
popView.isNotShowStarView = TTManager.totalTime <= 30; // 视频面诊接通<=30s 不弹出评价弹窗
popView.isCloseBtnHidden = YES; popView.isCloseBtnHidden = YES;
popView.infoModel = infoModel; popView.infoModel = infoModel;
[popView clickConfireBtnPhobo:counsellorType consultationType:consultationType doctorId:doctorId]; [popView clickConfireBtnPhobo:counsellorType consultationType:consultationType doctorId:doctorId];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment