Ver Fonte

1.修改UWA Hang Tag按钮在未登陆状态也能显示。

Pen Li há 7 anos atrás
pai
commit
7146de4781

+ 3 - 3
RedAnt ERP Mobile/common/Functions/modelDetail/DetailViewController.m

@@ -447,11 +447,11 @@ self.isrefreshing=false;
     
     
     self.navigationItem.leftBarButtonItem = backButton;
     self.navigationItem.leftBarButtonItem = backButton;
     
     
-    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
+//    AppDelegate *appDelegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
     
     
 #ifdef BUILD_UWAVER
 #ifdef BUILD_UWAVER
     
     
-    if (appDelegate.bLogin) {
+//    if (appDelegate.bLogin) {
 //        UIBarButtonItem *hangTagItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(hanTagBtnClick:)];
 //        UIBarButtonItem *hangTagItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemBookmarks target:self action:@selector(hanTagBtnClick:)];
         
         
         UIBarButtonItem *hangTagItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"btn_print_order"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
         UIBarButtonItem *hangTagItem = [[UIBarButtonItem alloc] initWithImage:[[UIImage imageNamed:@"btn_print_order"] imageWithRenderingMode:UIImageRenderingModeAutomatic]
@@ -461,7 +461,7 @@ self.isrefreshing=false;
         
         
         
         
         self.navigationItem.rightBarButtonItem = hangTagItem;
         self.navigationItem.rightBarButtonItem = hangTagItem;
-    }
+//    }
 #endif
 #endif
     
     
 }
 }