From de88ae127e305e0b153c327b073645f9353cace5 Mon Sep 17 00:00:00 2001 From: 单军华 <WindShan@danjunhuas-MacBook-Pro.local> Date: Wed, 18 Apr 2018 16:51:07 +0800 Subject: [PATCH] 新功能修改 --- pregnancy_guard/BaseProject/Controller/Mine/FeedBackPage.m | 76 +++++++++++++++++++------------------- 1 files changed, 38 insertions(+), 38 deletions(-) diff --git a/pregnancy_guard/BaseProject/Controller/Mine/FeedBackPage.m b/pregnancy_guard/BaseProject/Controller/Mine/FeedBackPage.m index e885e9e..56d22dc 100644 --- a/pregnancy_guard/BaseProject/Controller/Mine/FeedBackPage.m +++ b/pregnancy_guard/BaseProject/Controller/Mine/FeedBackPage.m @@ -82,44 +82,44 @@ } else { - // ������������������ - MBProgressHUD *HUD = nil; - HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; - HUD.labelText = @"���������������������..."; - // ��������������������������������� - HUD.removeFromSuperViewOnHide = YES; - // YES������������������������ - HUD.dimBackground = YES; - - NSString *path = [[NSString alloc] initWithFormat:@"%@",[NSString stringWithFormat:[_loginUser[@"opt"] intValue] == 1?USER_FEEDBACK:WAITER_FEEDBACK,_loginUser[@"_id"]]]; - - NSMutableDictionary *param = [[NSMutableDictionary alloc] init]; - [param setObject:feedbackTextView.text forKey:@"feedback"]; - - MPWeakSelf(self); - [NetworkSingleton networkingPostMethod:param urlName:path success:^(id responseBody) - { - HUD.hidden = YES; - - MPStrongSelf(self); - BaseResModel * resModel = [Global toBaseModel:responseBody]; - if(resModel.code == 0) - { - feedbackTextView.text = @""; - feedbackTextView.limitLength = [[NSNumber alloc] initWithInt:200]; // ������������ - [Global alertMessageEx:@"������������������������������������������������������!" title:@"������������" okTtitle:nil cancelTitle:@"OK" delegate:self]; - [self.navigationController popViewControllerAnimated:YES]; - } - else - { - [Global alertMessageEx:resModel.desc title:@"������������" okTtitle:nil cancelTitle:@"������" delegate:self]; - } - } - failure:^(NSString *error) - { - HUD.hidden = YES; - [Global alertMessageEx:error title:@"������������" okTtitle:nil cancelTitle:@"OK" delegate:self]; - }]; +// // ������������������ +// MBProgressHUD *HUD = nil; +// HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; +// HUD.labelText = @"���������������������..."; +// // ��������������������������������� +// HUD.removeFromSuperViewOnHide = YES; +// // YES������������������������ +// HUD.dimBackground = YES; +// +// NSString *path = [[NSString alloc] initWithFormat:@"%@",[NSString stringWithFormat:[_loginUser[@"opt"] intValue] == 1?USER_FEEDBACK:WAITER_FEEDBACK,_loginUser[@"_id"]]]; +// +// NSMutableDictionary *param = [[NSMutableDictionary alloc] init]; +// [param setObject:feedbackTextView.text forKey:@"feedback"]; +// +// MPWeakSelf(self); +// [NetworkSingleton networkingPostMethod:param urlName:path success:^(id responseBody) +// { +// HUD.hidden = YES; +// +// MPStrongSelf(self); +// BaseResModel * resModel = [Global toBaseModel:responseBody]; +// if(resModel.code == 0) +// { +// feedbackTextView.text = @""; +// feedbackTextView.limitLength = [[NSNumber alloc] initWithInt:200]; // ������������ +// [Global alertMessageEx:@"������������������������������������������������������!" title:@"������������" okTtitle:nil cancelTitle:@"OK" delegate:self]; +// [self.navigationController popViewControllerAnimated:YES]; +// } +// else +// { +// [Global alertMessageEx:resModel.desc title:@"������������" okTtitle:nil cancelTitle:@"������" delegate:self]; +// } +// } +// failure:^(NSString *error) +// { +// HUD.hidden = YES; +// [Global alertMessageEx:error title:@"������������" okTtitle:nil cancelTitle:@"OK" delegate:self]; +// }]; } } -- Gitblit v1.8.0