|
@@ -490,7 +490,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
|
|
|
-(void)bottomThreeListening {
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
[self judgeIsHiddenBottom];
|
|
|
}
|
|
|
}
|
|
@@ -740,7 +740,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
}
|
|
|
|
|
|
-(void)jsHiddenBottom:(NSDictionary *)dict{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
if([[NSString stringWithFormat:@"%@",dict[@"hidden"]] integerValue]==0) {
|
|
|
[self hideTabBar];
|
|
|
[self hiddenMethodTabBar];
|
|
@@ -810,7 +810,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
}
|
|
|
if([menu isEqualToString:@"my"]) {
|
|
|
kMainQueue(^{
|
|
|
- [self.tabBarController.tabBar hideBadgeOnItemIndex:3];
|
|
|
+ [self.tabBarController.tabBar hideBadgeOnItemIndex:4];
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -824,7 +824,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
}
|
|
|
if([menu isEqualToString:@"my"]) {
|
|
|
kMainQueue(^{
|
|
|
- [self.tabBarController.tabBar showBadgeOnItemIndex:3];
|
|
|
+ [self.tabBarController.tabBar showBadgeOnItemIndex:4];
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -1146,7 +1146,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
//切换模块
|
|
|
-(void)jsSkipAppointTab:(NSDictionary *)dict {
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
AppDelegate *delegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
|
|
|
JYTabBarController *tab = (JYTabBarController *)delegate.window.rootViewController;
|
|
|
NSString *name = [NSString stringWithFormat:@"%@",dict[@"name"]];
|
|
@@ -1166,7 +1166,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
//刷新模块页面
|
|
|
-(void)jsRefreshAppointTab:(NSDictionary *)dict {
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
[[NSNotificationCenter defaultCenter] postNotificationName:JYRefreshMenusView object:nil userInfo:dict];
|
|
|
}
|
|
|
}
|
|
@@ -1174,7 +1174,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
#pragma mark *****其他方法
|
|
|
-(void)judgeIsHiddenBottom {
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSString *current_url = [self stringByEvaluatingJavaScriptFromString:@"document.location.href"];
|
|
|
|
|
|
if([current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/index",kHost]]
|
|
@@ -1445,7 +1445,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
#pragma mark **** 通知相关方法
|
|
|
-(void)openPushUrlOtherMethods:(NSNotification *)notification{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSDictionary *infoDict = notification.userInfo;
|
|
|
NSLog(@"%@",infoDict);
|
|
|
if (!infoDict) {return;}
|
|
@@ -1469,13 +1469,13 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
if (!infoDict) {return;}
|
|
|
NSString * urlStr = [NSString stringWithFormat:@"%@",infoDict[@"url"]];
|
|
|
if ([urlStr isEqualToString:kHost]) {return;}
|
|
|
- if (self.tabBarController.selectedIndex == 2) {
|
|
|
+ if (self.tabBarController.selectedIndex == 3) {
|
|
|
[self JsOpenExternalLink:@{@"url":urlStr,@"title":@"消息通知"}];
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-(void)alipayWXpayStatus:(NSNotification *)notification{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSString * status = [notification object];
|
|
|
[self performSelector:@selector(payStatus:) withObject:status afterDelay:2];
|
|
|
}
|
|
@@ -1484,7 +1484,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
{
|
|
|
//目前延时两秒
|
|
|
NSLog(@"支付状态:%@",status);
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
[self isExitCallToJS:[NSString stringWithFormat:@"payCallBack('%@')", status] withMethodName:@"payCallBack"];
|
|
|
}
|
|
|
|
|
@@ -1492,7 +1492,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
// 再次加载页面
|
|
|
-(void)notNetReloadWebVIew:(NSNotification *)notification{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
if (![self.webView canGoBack]) {
|
|
|
[self webViewFirstRequest];
|
|
|
}else{
|
|
@@ -1505,7 +1505,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
// 返回上一页面- 防止
|
|
|
-(void)popWebView:(NSNotification *)notification{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
if ([self.webView canGoBack]) {
|
|
|
[self.webView goBack];
|
|
|
}
|
|
@@ -1542,7 +1542,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
-(void)jyReceiveNewsRedPoint:(NSNotification *)notificaition {
|
|
|
NSDictionary *dict = notificaition.userInfo;
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSString *textJS = [NSString stringWithFormat:@"afterReceivePushMessage('%@','%@')",dict[@"typeMsg"],dict[@"url"]];
|
|
|
[self isExitCallToJS:textJS withMethodName:@"afterReceivePushMessage"];
|
|
|
}
|
|
@@ -1564,7 +1564,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
//刷新页面相关
|
|
|
-(void)refreshNonCurVC:(NSNotification *)notificaition{
|
|
|
- if(self.tabBarController.selectedIndex != 2) {
|
|
|
+ if(self.tabBarController.selectedIndex != 3) {
|
|
|
[self webViewFirstRequest];
|
|
|
}
|
|
|
}
|
|
@@ -1578,7 +1578,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
//内购相关
|
|
|
-(void)receiptData:(NSNotification *)notificaition{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSDictionary *infoDict = notificaition.userInfo;
|
|
|
if (infoDict) {
|
|
|
NSString *receipt = [NSString stringWithFormat:@"%@", infoDict[@"receipt"]];
|
|
@@ -1589,7 +1589,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
#pragma mark ****粘贴板相关-梳理
|
|
|
-(void)updateClipboard:(NSNotification *)notificaition{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSString *current_url = [self stringByEvaluatingJavaScriptFromString:@"document.location.href"];
|
|
|
NSDictionary *dict = notificaition.userInfo;
|
|
|
NSString *content = [NSString stringWithFormat:@"%@",dict[@"content"]];
|
|
@@ -1602,7 +1602,7 @@ NSString *const new_AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
}
|
|
|
|
|
|
-(void)openTheClipboard:(NSNotification *)notificaition{
|
|
|
- if(self.tabBarController.selectedIndex == 2) {
|
|
|
+ if(self.tabBarController.selectedIndex == 3) {
|
|
|
NSLog(@"菜单三打开指定粘贴板url");
|
|
|
NSDictionary *dict = notificaition.userInfo;
|
|
|
NSString *tmpUrl = [NSString stringWithFormat:@"%@%@", kHost, dict[@"url"]];
|