|
|
@@ -41,7 +41,7 @@
|
|
|
__weak typeof(self) weakself = self;
|
|
|
UIAlertAction *action = [UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
|
|
|
|
|
|
- [weakself.navigationController popViewControllerAnimated:YES];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
}];
|
|
|
[alertVC addAction:action];
|
|
|
@@ -370,6 +370,8 @@
|
|
|
-(void) download_success
|
|
|
{
|
|
|
// 用于处理不同child,在成功去的数据后,需要附加的操作。
|
|
|
+ NSString *title = [self.content_data_download objectForKey:@"title"];
|
|
|
+ self.title = title;
|
|
|
|
|
|
self.have_tail=[[self.content_data_download valueForKey:@"has_reItem"] boolValue];
|
|
|
|
|
|
@@ -378,7 +380,7 @@
|
|
|
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
appDelegate.order_customer_id = order_customerid;
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
- (void)viewDidLoad {
|
|
|
[super viewDidLoad];
|
|
|
@@ -1120,6 +1122,10 @@
|
|
|
NSMutableDictionary* upparams = [self check_cancommit:true];
|
|
|
if(self.cancommit==false)
|
|
|
return;
|
|
|
+ // ------
|
|
|
+ [self.params enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
|
|
+ [upparams setObject:obj forKey:key];
|
|
|
+ }];
|
|
|
|
|
|
if(upparams[@"shipping"]==nil)
|
|
|
goto commit_order;
|
|
|
@@ -1223,7 +1229,7 @@
|
|
|
}
|
|
|
[self prepareReturn:nil];
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
if(pdf_url.length>0)
|
|
|
{
|
|
|
@@ -1315,7 +1321,7 @@
|
|
|
//
|
|
|
// NSDictionary * customerinfo = appDelegate.customerInfo;
|
|
|
[self prepareReturn:nil];
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
// [self.navigationController dismissViewControllerAnimated:true completion:^{
|
|
|
//
|
|
|
//
|
|
|
@@ -1456,7 +1462,7 @@
|
|
|
|
|
|
[self prepareReturn:value];
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
|
|
|
if(pdf_url.length>0)
|
|
|
@@ -1566,7 +1572,7 @@
|
|
|
//
|
|
|
// ;
|
|
|
// }];
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
}
|
|
|
else
|
|
|
@@ -1644,7 +1650,7 @@
|
|
|
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
if (self.resumeOrder) {
|
|
|
- [appDelegate.main_vc.navigationController popViewControllerAnimated:YES];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -1815,6 +1821,11 @@
|
|
|
// if(self.cancommit==false)
|
|
|
// return;
|
|
|
|
|
|
+ [self.params enumerateKeysAndObjectsUsingBlock:^(id _Nonnull key, id _Nonnull obj, BOOL * _Nonnull stop) {
|
|
|
+ [upparams setObject:obj forKey:key];
|
|
|
+ }];
|
|
|
+
|
|
|
+
|
|
|
if([upparams[@"shipping"] isEqualToString:@"Shipping To Be Quoted"]||[upparams[@"shipping"] isEqualToString:@"To Be Quoted"])
|
|
|
upparams[@"shipping"] = nil;
|
|
|
|
|
|
@@ -1853,7 +1864,7 @@
|
|
|
{
|
|
|
[((MainViewController*)appDelegate.main_vc) Loginout:false];
|
|
|
[self prepareReturn:nil];
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
}
|
|
|
|
|
|
if (appDelegate.user_type == USER_ROLE_CUSTOMER) {
|
|
|
@@ -2260,7 +2271,7 @@
|
|
|
}
|
|
|
[self prepareReturn:nil];
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
if(pdf_url.length>0)
|
|
|
{
|
|
|
@@ -2352,7 +2363,7 @@
|
|
|
//
|
|
|
// NSDictionary * customerinfo = appDelegate.customerInfo;
|
|
|
[self prepareReturn:nil];
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
// [self.navigationController dismissViewControllerAnimated:true completion:^{
|
|
|
//
|
|
|
//
|
|
|
@@ -2486,7 +2497,7 @@
|
|
|
}
|
|
|
[self prepareReturn:nil];
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
|
|
|
if(pdf_url.length>0)
|
|
|
@@ -2596,7 +2607,7 @@
|
|
|
//
|
|
|
// ;
|
|
|
// }];
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
}
|
|
|
else
|
|
|
@@ -2634,7 +2645,7 @@
|
|
|
else if(buttonIndex==3)
|
|
|
{
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:false];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
|
|
|
|
|
|
AppDelegate *appDelegate = (AppDelegate*)[[UIApplication sharedApplication] delegate];
|
|
|
@@ -2673,7 +2684,7 @@
|
|
|
[self prepareReturn:nil];
|
|
|
|
|
|
|
|
|
- [self.navigationController popViewControllerAnimated:true];
|
|
|
+ [self.navigationController popToRootViewControllerAnimated:true];
|
|
|
// [self.navigationController dismissViewControllerAnimated:true completion:^{
|
|
|
// ;
|
|
|
// }];
|