|
@@ -272,8 +272,6 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
|
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
|
JYTabBarController *tab = (JYTabBarController *)delegate.window.rootViewController;
|
|
JYTabBarController *tab = (JYTabBarController *)delegate.window.rootViewController;
|
|
tab.selectedIndex = 1;
|
|
tab.selectedIndex = 1;
|
|
-
|
|
|
|
-
|
|
|
|
[self performSelector:@selector(pushDY:) withObject:self.notiDict[@"info"] afterDelay:1];
|
|
[self performSelector:@selector(pushDY:) withObject:self.notiDict[@"info"] afterDelay:1];
|
|
|
|
|
|
}else {
|
|
}else {
|
|
@@ -438,7 +436,19 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
url = [array.firstObject stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
url = [array.firstObject stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
|
|
[self.webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:url]]];
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:@"kNewWebControllerDismiss" object:nil];
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:@"kNewWebControllerDismiss" object:nil];
|
|
- //
|
|
|
|
|
|
+
|
|
|
|
+ }else if ([infoDict[@"type"] isEqualToString:@"titleMessage"]) {
|
|
|
|
+ //新增支付 后台唤起
|
|
|
|
+
|
|
|
|
+ NSArray * array = [urlStr componentsSeparatedByString:@"=="];
|
|
|
|
+ urlStr = [array.firstObject stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
|
|
+ NSString * titleStr = @"消息通知";
|
|
|
|
+ titleStr = [NSString stringWithFormat:@"%@",infoDict[@"info"][@"title"]];
|
|
|
|
+ if (urlStr) {
|
|
|
|
+ if(self.tabBarController.selectedIndex == 0) {
|
|
|
|
+ [self jsOpenExternalLink:urlStr title:titleStr];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}else {
|
|
}else {
|
|
NSString *url = [NSString stringWithFormat:@"%@%@", kHost, urlStr];
|
|
NSString *url = [NSString stringWithFormat:@"%@%@", kHost, urlStr];
|
|
url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
url = [url stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLQueryAllowedCharacterSet]];
|
|
@@ -724,8 +734,7 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
#pragma mark webView代理方法
|
|
#pragma mark webView代理方法
|
|
- (void)webViewDidFinishLoad:(UIWebView *)webView{
|
|
- (void)webViewDidFinishLoad:(UIWebView *)webView{
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
NSLog(@"加载完成:%@",[self.webView stringByEvaluatingJavaScriptFromString:@"document.location.href"]);
|
|
NSLog(@"加载完成:%@",[self.webView stringByEvaluatingJavaScriptFromString:@"document.location.href"]);
|
|
|
|
|
|
if(!notiFinish) {
|
|
if(!notiFinish) {
|
|
@@ -739,8 +748,6 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
[self judgeIsHidden];//是否隐藏
|
|
[self judgeIsHidden];//是否隐藏
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
[self removeNoNetViews];
|
|
[self removeNoNetViews];
|
|
[[LXViewControllerManager shareViewControllerManager] hideHud];
|
|
[[LXViewControllerManager shareViewControllerManager] hideHud];
|
|
JSContext *context = [webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"];
|
|
JSContext *context = [webView valueForKeyPath:@"documentView.webView.mainFrame.javaScriptContext"];
|
|
@@ -757,12 +764,7 @@ NSString *const AesKey_0 = @"mGlAgnIBB8bx2nch";
|
|
// [context evaluateScript:@"afterOpenPushMessage()"];
|
|
// [context evaluateScript:@"afterOpenPushMessage()"];
|
|
[context evaluateScript:[NSString stringWithFormat:@"afterOpenPushMessage('%d')", [self jsIsCanBack:nil]]];
|
|
[context evaluateScript:[NSString stringWithFormat:@"afterOpenPushMessage('%d')", [self jsIsCanBack:nil]]];
|
|
}
|
|
}
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
|
|
+
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|