Commit fb6308c6 authored by 朱璇's avatar 朱璇

【视频面诊】到店预约功能

parent cd4e02d5
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
} }
// 弹授权弹窗(视频面诊评价弹窗关闭后/视频面诊结束之后(通话时长小于30s,不弹弹窗)) // 弹授权弹窗(视频面诊评价弹窗关闭后/视频面诊结束之后(通话时长小于30s,不弹弹窗))
[GMBookConsultViewModel bookConsultInfoWithSuccessBlock:^(id responseObject) { [GMBookConsultViewModel bookConsultInfoWithWithRecordId:self.infoModel.consultationRecordId successBlock:^(id responseObject) {
GMResponseOC *response = (GMResponseOC *)responseObject; GMResponseOC *response = (GMResponseOC *)responseObject;
NSDictionary *data = response.data; NSDictionary *data = response.data;
GMBookConsultInfoModel *info = [[GMBookConsultInfoModel alloc] initWithDictionary:data error:NULL]; GMBookConsultInfoModel *info = [[GMBookConsultInfoModel alloc] initWithDictionary:data error:NULL];
......
...@@ -153,7 +153,7 @@ ...@@ -153,7 +153,7 @@
} }
- (void)authClicked { - (void)authClicked {
[GMBookReachStoreConsultView on_click_buttonWithButtonName:@"appointment"] [GMBookReachStoreConsultView on_click_buttonWithButtonName:@"appointment"];
if (self.isHadPhone) { if (self.isHadPhone) {
__weak typeof(self) weakSelf = self; __weak typeof(self) weakSelf = self;
[GMBookConsultViewModel bookConsultWithRecordId:SafeString(self.recordId) successBlock:^(id responseObject) { [GMBookConsultViewModel bookConsultWithRecordId:SafeString(self.recordId) successBlock:^(id responseObject) {
...@@ -173,7 +173,7 @@ ...@@ -173,7 +173,7 @@
} }
- (void)cancelClicked { - (void)cancelClicked {
[GMBookReachStoreConsultView on_click_buttonWithButtonName:@"close"] [GMBookReachStoreConsultView on_click_buttonWithButtonName:@"close"];
[self removeFromSuperview]; [self removeFromSuperview];
} }
......
...@@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -15,7 +15,7 @@ NS_ASSUME_NONNULL_BEGIN
@interface GMBookConsultViewModel : WMFetchDataViewModel @interface GMBookConsultViewModel : WMFetchDataViewModel
// 获取弹窗 // 获取弹窗
+ (void)bookConsultInfoWithSuccessBlock:(HttpSuccessBlock)successBlock failBlock:(HttpFailedBlock)failBlock; + (void)bookConsultInfoWithWithRecordId:(NSString *)recordId successBlock:(HttpSuccessBlock)successBlock failBlock:(HttpFailedBlock)failBlock;
+ (void)bookConsultWithRecordId:(NSString *)recordId successBlock:(HttpSuccessBlock)successBlock failBlock:(HttpFailedBlock)failBlock; + (void)bookConsultWithRecordId:(NSString *)recordId successBlock:(HttpSuccessBlock)successBlock failBlock:(HttpFailedBlock)failBlock;
@end @end
......
...@@ -8,8 +8,10 @@ ...@@ -8,8 +8,10 @@
#import "GMBookConsultViewModel.h" #import "GMBookConsultViewModel.h"
@implementation GMBookConsultViewModel @implementation GMBookConsultViewModel
+ (void)bookConsultInfoWithSuccessBlock:(HttpSuccessBlock)successBlock failBlock:(HttpFailedBlock)failBlock { + (void)bookConsultInfoWithWithRecordId:(NSString *)recordId successBlock:(HttpSuccessBlock)successBlock failBlock:(HttpFailedBlock)failBlock {
[GMNetworking requestOCWithApi:@"/api/consultation_counsel/conuslt_user_appointment" method:GMHTTPMethodGet parameters:nil completion:^(GMResponseOC *responseObject) { NSMutableDictionary *params = [NSMutableDictionary dictionary];
[params setObject:SafeString(recordId) forKey:@"record_id"];
[GMNetworking requestOCWithApi:@"/api/consultation_counsel/conuslt_user_appointment" method:GMHTTPMethodGet parameters:params completion:^(GMResponseOC *responseObject) {
if (responseObject.isSuccess) { if (responseObject.isSuccess) {
successBlock(responseObject); successBlock(responseObject);
} else { } else {
......
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