|
@@ -102,6 +102,10 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(reloadWebView) name:kReloadWebVIew object:nil];
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loginOut:) name:kLoginOut object:nil];
|
|
|
|
|
|
+ [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshMine:) name:@"refreshMine" object:nil];
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
[[AFNetworkReachabilityManager sharedManager] startMonitoring];
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(netReachChanged:) name:AFNetworkingReachabilityDidChangeNotification object:nil];
|
|
|
|
|
@@ -113,6 +117,8 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
[self clearWeb];
|
|
|
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
-(void)moveViewWithX:(float)x
|
|
@@ -247,6 +253,10 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
}
|
|
|
|
|
|
+//刷新我的
|
|
|
+-(void)refreshMine:(NSNotification *)notification{
|
|
|
+ [self webViewFirstRequest];
|
|
|
+}
|
|
|
// 点击通知 跳转到通知内url
|
|
|
-(void)requestWebView:(NSNotification *)notification{
|
|
|
NSDictionary * infoDict = [notification object];
|
|
@@ -256,6 +266,12 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
NSString * urlStr = [NSString stringWithFormat:@"%@",infoDict[@"url"]];
|
|
|
|
|
|
if (urlStr) {
|
|
|
+ if(self.tabBarController.selectedIndex != 3) {
|
|
|
+ return;
|
|
|
+ }else {
|
|
|
+ [self webViewFirstRequest];
|
|
|
+ }
|
|
|
+
|
|
|
[[LXViewControllerManager shareViewControllerManager] showHudText:nil];
|
|
|
self.afterOpenPushMessage = YES;
|
|
|
|