|
@@ -52,10 +52,11 @@ JSExportAs(backUrl, -(void)jsBackUrl:(NSString*)str);
|
|
|
//测试支付
|
|
|
JSExportAs(payment, -(void)jsPayment:(NSString*)str);
|
|
|
|
|
|
-JSExportAs(hideRedSpotOnMenu, -(void)jsHideRedSpotOnMenu:(NSString*)str);
|
|
|
|
|
|
JSExportAs(clearPushMessage, -(void)jsClearPushMessage:(NSString*)type);
|
|
|
|
|
|
+JSExportAs(hideRedSpotOnMenu, -(void)jsHideRedSpotOnMenu:(NSString*)str);
|
|
|
+JSExportAs(showRedSpotOnMenu, -(void)jsShowRedSpotOnMenu:(NSString*)str);
|
|
|
|
|
|
|
|
|
@end
|
|
@@ -142,6 +143,13 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(refreshAllVC:) name:@"refreshAllVC" object:nil];
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+ /*
|
|
|
+ 账号:centuo
|
|
|
+ 密码:
|
|
|
+
|
|
|
+ */
|
|
|
}
|
|
|
|
|
|
-(void)newsRedPoint:(NSNotification *)notificaition
|
|
@@ -182,7 +190,7 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
}
|
|
|
|
|
|
// NSString *current_url = self.webView.request.URL.absoluteString;
|
|
|
- if([current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/free/me",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/index",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/wxkeyset/keyset/index",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/mainSearch",kHost]]){
|
|
|
+ if([current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/free/me",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/index",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/swordfish/historypush",kHost]]||[current_url isEqualToString:[NSString stringWithFormat:@"%@jyapp/jylab/mainSearch",kHost]]){
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -279,7 +287,7 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
-(void)requestWebTime:(NSDictionary *)infoDict
|
|
|
{
|
|
|
- NSString * urlStr = [NSString stringWithFormat:@"%@",infoDict[@"url"]];
|
|
|
+ NSString * urlStr = [NSString stringWithFormat:@"%@",infoDict[@"info"][@"url"]];
|
|
|
|
|
|
if([infoDict[@"type"] isEqualToString:@"message"]) {
|
|
|
NSString *url = [NSString stringWithFormat:@"%@",urlStr];
|
|
@@ -1007,10 +1015,36 @@ NSString *const AesKey_3 = @"mGlAgnIBB8bx2nch";
|
|
|
|
|
|
-(void)jsHideRedSpotOnMenu:(NSString*)str
|
|
|
{
|
|
|
- NSLog(@"wd:%@",str);
|
|
|
- kMainQueue(^{
|
|
|
- [self.tabBarController.tabBar hideBadgeOnItemIndex:3];
|
|
|
- });
|
|
|
+ NSLog(@"wd隐藏:%@",str);
|
|
|
+ if([str isEqualToString:@"subscribe"]) {
|
|
|
+ kMainQueue(^{
|
|
|
+ [self.tabBarController.tabBar hideBadgeOnItemIndex:1];
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if([str isEqualToString:@"my"]) {
|
|
|
+ kMainQueue(^{
|
|
|
+ [self.tabBarController.tabBar hideBadgeOnItemIndex:3];
|
|
|
+ });
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+-(void)jsShowRedSpotOnMenu:(NSString*)str
|
|
|
+{
|
|
|
+ NSLog(@"wd展示:%@",str);
|
|
|
+ if([str isEqualToString:@"subscribe"]) {
|
|
|
+ kMainQueue(^{
|
|
|
+ [self.tabBarController.tabBar showBadgeOnItemIndex:1];
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ if([str isEqualToString:@"my"]) {
|
|
|
+ kMainQueue(^{
|
|
|
+ [self.tabBarController.tabBar showBadgeOnItemIndex:3];
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|