|
@@ -40,7 +40,7 @@
|
|
|
#import "lastFileManager.h"
|
|
|
#import "customDownloadManager.h"
|
|
|
|
|
|
-@interface SceneDelegate ()<SetUsePWDViewControllerDelegate,GuideViewControllerDelegate>
|
|
|
+@interface SceneDelegate ()<SetUsePWDViewControllerDelegate,GuideViewControllerDelegate,UITabBarControllerDelegate>
|
|
|
@property(nonatomic, strong) CalculatorViewController *calculatorVC;
|
|
|
@property(nonatomic, strong) HWWebViewController *webVC;
|
|
|
@property(nonatomic, strong) inputPWDViewController *inputVC;
|
|
@@ -285,6 +285,8 @@
|
|
|
|
|
|
[self initMainTabbarFun];
|
|
|
|
|
|
+ //数据埋点
|
|
|
+ [[netWorkManager shareInstance] DataEmbeddingPointBy:1 withEventValue:@"Nas"];
|
|
|
return;
|
|
|
|
|
|
// if(_curPlayerVC){
|
|
@@ -377,6 +379,7 @@
|
|
|
- (void)initMainTabbarFun
|
|
|
{
|
|
|
UITabBarController *tabBarController = [[UITabBarController alloc] init];
|
|
|
+ tabBarController.delegate = self;
|
|
|
|
|
|
NASViewController *NASVC = [[NASViewController alloc] init];
|
|
|
BaseNavigationController *NasNav = [[BaseNavigationController alloc] initWithRootViewController:NASVC];
|
|
@@ -1197,9 +1200,13 @@
|
|
|
{
|
|
|
if([type isEqualToString:@"save"]){
|
|
|
[self saveFileToBoxFunBy:model];
|
|
|
+ //数据埋点
|
|
|
+ [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"Share_save"];
|
|
|
}
|
|
|
else if([type isEqualToString:@"download"]){
|
|
|
[self downloadFileToAppFunBy:model];
|
|
|
+ //数据埋点
|
|
|
+ [[netWorkManager shareInstance] DataEmbeddingPointBy:3 withEventValue:@"Share_download"];
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1298,8 +1305,28 @@
|
|
|
[mainNav pushViewController:vc animated:YES];
|
|
|
[[UIApplication sharedApplication] setStatusBarHidden:NO];
|
|
|
}
|
|
|
+}
|
|
|
+
|
|
|
+#pragma mark UITabBarControllerDelegate
|
|
|
+- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
|
|
|
+{
|
|
|
+ NSInteger index = tabBarController.selectedIndex;
|
|
|
+ //HLog(@"hxd %ld",index);
|
|
|
|
|
|
+ int eventType = 1;
|
|
|
+ NSString* eventValue = @"Nas";
|
|
|
+ if(index == 0){
|
|
|
+ eventValue = @"Nas";
|
|
|
+ }
|
|
|
+ else if(index == 1){
|
|
|
+ eventValue = @"Cloud";
|
|
|
+ }
|
|
|
+ else if(index == 1){
|
|
|
+ eventValue = @"Home";
|
|
|
+ }
|
|
|
|
|
|
+ //数据埋点
|
|
|
+ [[netWorkManager shareInstance] DataEmbeddingPointBy:eventType withEventValue:eventValue];
|
|
|
|
|
|
}
|
|
|
@end
|