Commit fb6308c6 authored by 朱璇's avatar 朱璇

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

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