Forráskód Böngészése

1.我的页面以及其他修改

huangxiaodong 1 éve%!(EXTRA string=óta)
szülő
commit
a10afbf085
41 módosított fájl, 937 hozzáadás és 32 törlés
  1. 40 0
      创维盒子/双子星云手机.xcodeproj/project.pbxproj
  2. 6 3
      创维盒子/双子星云手机/AppDelegate/SceneDelegate.m
  3. 6 0
      创维盒子/双子星云手机/Assets.xcassets/mine/Contents.json
  4. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_Privacy_icon.imageset/Contents.json
  5. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_Privacy_icon.imageset/mine_Privacy_icon@2x.png
  6. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_Privacy_icon.imageset/mine_Privacy_icon@3x.png
  7. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_cancell_icon.imageset/Contents.json
  8. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_cancell_icon.imageset/mine_cancell_icon@2x.png
  9. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_cancell_icon.imageset/mine_cancell_icon@3x.png
  10. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_changePhone_icon.imageset/Contents.json
  11. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_changePhone_icon.imageset/mine_changePhone_icon@2x.png
  12. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_changePhone_icon.imageset/mine_changePhone_icon@3x.png
  13. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_clear_icon.imageset/Contents.json
  14. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_clear_icon.imageset/mine_clear_icon@2x.png
  15. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_clear_icon.imageset/mine_clear_icon@3x.png
  16. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_customer_icon.imageset/Contents.json
  17. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_customer_icon.imageset/mine_customer_icon@2x.png
  18. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_customer_icon.imageset/mine_customer_icon@3x.png
  19. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_head_icon.imageset/Contents.json
  20. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_head_icon.imageset/mine_head_icon@2x.png
  21. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_head_icon.imageset/mine_head_icon@3x.png
  22. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_help_icon.imageset/Contents.json
  23. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_help_icon.imageset/mine_help_icon@2x.png
  24. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_help_icon.imageset/mine_help_icon@3x.png
  25. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_net_icon.imageset/Contents.json
  26. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_net_icon.imageset/mine_net_icon@2x.png
  27. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_net_icon.imageset/mine_net_icon@3x.png
  28. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_newUser_icon.imageset/Contents.json
  29. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_newUser_icon.imageset/mine_newUser_icon@2x.png
  30. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_newUser_icon.imageset/mine_newUser_icon@3x.png
  31. 22 0
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_version_icon.imageset/Contents.json
  32. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_version_icon.imageset/mine_version_icon@2x.png
  33. BIN
      创维盒子/双子星云手机/Assets.xcassets/mine/mine_version_icon.imageset/mine_version_icon@3x.png
  34. 34 29
      创维盒子/双子星云手机/NAS/view/NASCommonUsedView.m
  35. 2 0
      创维盒子/双子星云手机/cloudPhone/webSocketManager.h
  36. 9 0
      创维盒子/双子星云手机/cloudPhone/webSocketManager.m
  37. 16 0
      创维盒子/双子星云手机/mine/mineViewController.h
  38. 437 0
      创维盒子/双子星云手机/mine/mineViewController.m
  39. 16 0
      创维盒子/双子星云手机/mine/view/MineCommonUsedView.h
  40. 146 0
      创维盒子/双子星云手机/mine/view/MineCommonUsedView.m
  41. 5 0
      创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

+ 40 - 0
创维盒子/双子星云手机.xcodeproj/project.pbxproj

@@ -544,6 +544,14 @@
 		6B679DF12C252ED000D0DC03 /* NASMySpaceTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B679DEF2C252ED000D0DC03 /* NASMySpaceTableViewCell.m */; };
 		6B679DF22C252ED000D0DC03 /* NASMySpaceTableViewCell.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B679DEE2C252ED000D0DC03 /* NASMySpaceTableViewCell.h */; };
 		6B679DF32C252ED000D0DC03 /* NASMySpaceTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B679DEF2C252ED000D0DC03 /* NASMySpaceTableViewCell.m */; };
+		6B679DF72C25595700D0DC03 /* mineViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B679DF52C25595700D0DC03 /* mineViewController.h */; };
+		6B679DF82C25595700D0DC03 /* mineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B679DF62C25595700D0DC03 /* mineViewController.m */; };
+		6B679DF92C25595700D0DC03 /* mineViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B679DF52C25595700D0DC03 /* mineViewController.h */; };
+		6B679DFA2C25595700D0DC03 /* mineViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B679DF62C25595700D0DC03 /* mineViewController.m */; };
+		6B679DFE2C255DC900D0DC03 /* MineCommonUsedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B679DFC2C255DC900D0DC03 /* MineCommonUsedView.h */; };
+		6B679DFF2C255DC900D0DC03 /* MineCommonUsedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B679DFD2C255DC900D0DC03 /* MineCommonUsedView.m */; };
+		6B679E002C255DC900D0DC03 /* MineCommonUsedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B679DFC2C255DC900D0DC03 /* MineCommonUsedView.h */; };
+		6B679E012C255DC900D0DC03 /* MineCommonUsedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B679DFD2C255DC900D0DC03 /* MineCommonUsedView.m */; };
 		6B6ABEDA2BFF3AA400480BAC /* receiveView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B6ABED82BFF3AA400480BAC /* receiveView.h */; };
 		6B6ABEDB2BFF3AA400480BAC /* receiveView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B6ABED92BFF3AA400480BAC /* receiveView.m */; };
 		6B6ABEDC2BFF3AA400480BAC /* receiveView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B6ABED82BFF3AA400480BAC /* receiveView.h */; };
@@ -1630,6 +1638,10 @@
 		6B679DE92C252A4E00D0DC03 /* NASMySpaceViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASMySpaceViewController.m; sourceTree = "<group>"; };
 		6B679DEE2C252ED000D0DC03 /* NASMySpaceTableViewCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASMySpaceTableViewCell.h; sourceTree = "<group>"; };
 		6B679DEF2C252ED000D0DC03 /* NASMySpaceTableViewCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASMySpaceTableViewCell.m; sourceTree = "<group>"; };
+		6B679DF52C25595700D0DC03 /* mineViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = mineViewController.h; sourceTree = "<group>"; };
+		6B679DF62C25595700D0DC03 /* mineViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = mineViewController.m; sourceTree = "<group>"; };
+		6B679DFC2C255DC900D0DC03 /* MineCommonUsedView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MineCommonUsedView.h; sourceTree = "<group>"; };
+		6B679DFD2C255DC900D0DC03 /* MineCommonUsedView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = MineCommonUsedView.m; sourceTree = "<group>"; };
 		6B6ABED82BFF3AA400480BAC /* receiveView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = receiveView.h; sourceTree = "<group>"; };
 		6B6ABED92BFF3AA400480BAC /* receiveView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = receiveView.m; sourceTree = "<group>"; };
 		6B6ABEDE2BFF3DD000480BAC /* receiveHeadView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = receiveHeadView.h; sourceTree = "<group>"; };
@@ -2837,6 +2849,25 @@
 			path = view;
 			sourceTree = "<group>";
 		};
+		6B679DF42C25593800D0DC03 /* mine */ = {
+			isa = PBXGroup;
+			children = (
+				6B679DFB2C255D9900D0DC03 /* view */,
+				6B679DF52C25595700D0DC03 /* mineViewController.h */,
+				6B679DF62C25595700D0DC03 /* mineViewController.m */,
+			);
+			path = mine;
+			sourceTree = "<group>";
+		};
+		6B679DFB2C255D9900D0DC03 /* view */ = {
+			isa = PBXGroup;
+			children = (
+				6B679DFC2C255DC900D0DC03 /* MineCommonUsedView.h */,
+				6B679DFD2C255DC900D0DC03 /* MineCommonUsedView.m */,
+			);
+			path = view;
+			sourceTree = "<group>";
+		};
 		6B6ABED72BFF3A6600480BAC /* receiveView */ = {
 			isa = PBXGroup;
 			children = (
@@ -3293,6 +3324,7 @@
 		A02FF69827D7054200D59D3F /* 双子星云手机 */ = {
 			isa = PBXGroup;
 			children = (
+				6B679DF42C25593800D0DC03 /* mine */,
 				183AE6812A8C9ACA00B11CB0 /* CloudPlayer */,
 				6BC741372C23C8210049BA8D /* cloudPhone */,
 				6B5D86632C227C4A008D25EA /* NAS */,
@@ -3462,11 +3494,13 @@
 				18C4754F2A8E0DB5006129C0 /* MySetViewController.h in Headers */,
 				6B4C0F6E2C0314BA0070EF2E /* DFPlayerResourceLoader.h in Headers */,
 				18FCE53F2AD136670020F623 /* PlayerViewController+TouchPointXD.h in Headers */,
+				6B679DFE2C255DC900D0DC03 /* MineCommonUsedView.h in Headers */,
 				18FCE53E2AD136670020F623 /* PlayerViewController+AdjustBtnFrame.h in Headers */,
 				6B5BE5812BFC81E300A1B9B3 /* NASFileAndFolderModel.h in Headers */,
 				6B7EA7BC2BF759AC002D5CC2 /* shareSecretTableViewCell.h in Headers */,
 				6B2C1E362C070ADE00FDCF82 /* ZFPlayerControlView.h in Headers */,
 				6BA08F472C01D05B00A2242D /* CWFileManager.h in Headers */,
+				6B679DF72C25595700D0DC03 /* mineViewController.h in Headers */,
 				6B05815B2AFC851E00D37290 /* mySetHeadView.h in Headers */,
 				6BF52CAD2AD82EA500A617DB /* PlayerControlButTipView.h in Headers */,
 				6B1FBD2A2B452B3800926382 /* backupsFileManager.h in Headers */,
@@ -3692,11 +3726,13 @@
 				6BD506C92B9576A4006E7CB0 /* MySetViewController.h in Headers */,
 				6B4C0F6F2C0314BA0070EF2E /* DFPlayerResourceLoader.h in Headers */,
 				6BD506CA2B9576A4006E7CB0 /* PlayerViewController+TouchPointXD.h in Headers */,
+				6B679E002C255DC900D0DC03 /* MineCommonUsedView.h in Headers */,
 				6BD506CB2B9576A4006E7CB0 /* PlayerViewController+AdjustBtnFrame.h in Headers */,
 				6B5BE5832BFC81E300A1B9B3 /* NASFileAndFolderModel.h in Headers */,
 				6B7EA7BE2BF759AC002D5CC2 /* shareSecretTableViewCell.h in Headers */,
 				6B2C1E372C070ADE00FDCF82 /* ZFPlayerControlView.h in Headers */,
 				6BA08F482C01D05B00A2242D /* CWFileManager.h in Headers */,
+				6B679DF92C25595700D0DC03 /* mineViewController.h in Headers */,
 				6BD506CC2B9576A4006E7CB0 /* mySetHeadView.h in Headers */,
 				6BD506CD2B9576A4006E7CB0 /* PlayerControlButTipView.h in Headers */,
 				6BD506CE2B9576A4006E7CB0 /* backupsFileManager.h in Headers */,
@@ -4221,6 +4257,7 @@
 				6B8661D92BBA53B600B19846 /* noticeModel.m in Sources */,
 				6B7EA7AD2BF72D3B002D5CC2 /* queryShareModel.m in Sources */,
 				6B2C1E932C070ADE00FDCF82 /* ZFPlayerLogManager.m in Sources */,
+				6B679E012C255DC900D0DC03 /* MineCommonUsedView.m in Sources */,
 				6BD507172B9576A4006E7CB0 /* fileTransferPopView.m in Sources */,
 				6BD507182B9576A4006E7CB0 /* Reachability.m in Sources */,
 				6BD507192B9576A4006E7CB0 /* ModifyPWDFirstViewController.m in Sources */,
@@ -4306,6 +4343,7 @@
 				6BD507482B9576A4006E7CB0 /* SetUsePWDViewController.m in Sources */,
 				6BD507492B9576A4006E7CB0 /* cloudPhoneCommonModel.m in Sources */,
 				6B2C1E452C070ADE00FDCF82 /* ZFSliderView.m in Sources */,
+				6B679DFA2C25595700D0DC03 /* mineViewController.m in Sources */,
 				6B679DF32C252ED000D0DC03 /* NASMySpaceTableViewCell.m in Sources */,
 				6B6317A52BFD9DB500FF4FB4 /* ZFCustomControlView.m in Sources */,
 				6BD5074A2B9576A4006E7CB0 /* UIView+View.m in Sources */,
@@ -4533,6 +4571,7 @@
 				6B8661D62BBA53B600B19846 /* noticeModel.m in Sources */,
 				6B7EA7AB2BF72D3B002D5CC2 /* queryShareModel.m in Sources */,
 				6B2C1E922C070ADE00FDCF82 /* ZFPlayerLogManager.m in Sources */,
+				6B679DFF2C255DC900D0DC03 /* MineCommonUsedView.m in Sources */,
 				6B5B60612B3BC8DE009A2AE2 /* fileTransferPopView.m in Sources */,
 				6BF52C962AD5546500A617DB /* Reachability.m in Sources */,
 				18F9CAFB2ABD35C4003FF71A /* ModifyPWDFirstViewController.m in Sources */,
@@ -4618,6 +4657,7 @@
 				18E557262A3C6088005CC84B /* SetUsePWDViewController.m in Sources */,
 				6B3A4B162B6F69A500F74679 /* cloudPhoneCommonModel.m in Sources */,
 				6B2C1E442C070ADE00FDCF82 /* ZFSliderView.m in Sources */,
+				6B679DF82C25595700D0DC03 /* mineViewController.m in Sources */,
 				6B679DF12C252ED000D0DC03 /* NASMySpaceTableViewCell.m in Sources */,
 				6B6317A42BFD9DB500FF4FB4 /* ZFCustomControlView.m in Sources */,
 				183AE6D52A8CAFAE00B11CB0 /* UIView+View.m in Sources */,

+ 6 - 3
创维盒子/双子星云手机/AppDelegate/SceneDelegate.m

@@ -36,6 +36,7 @@
 #import "boxDownloadFileManager.h"
 #import "NASViewController.h"
 #import "cloudPhoneViewController.h"
+#import "mineViewController.h"
 
 @interface SceneDelegate ()<SetUsePWDViewControllerDelegate,GuideViewControllerDelegate>
 @property(nonatomic, strong)   CalculatorViewController *calculatorVC;
@@ -369,15 +370,17 @@
 {
     UITabBarController *tabBarController = [[UITabBarController alloc] init];
     
-    UIViewController *NASVC = [[NASViewController alloc] init];
+    NASViewController *NASVC = [[NASViewController alloc] init];
     BaseNavigationController *NasNav = [[BaseNavigationController alloc] initWithRootViewController:NASVC];
     
     cloudPhoneViewController *cloudVC = [[cloudPhoneViewController alloc] init];
     BaseNavigationController *cloudPhoneNav = [[BaseNavigationController alloc] initWithRootViewController:cloudVC];
 
-    UIViewController *viewController3 = [[UIViewController alloc] init];
+    mineViewController *mineVC = [[mineViewController alloc] init];
+    BaseNavigationController *mineNav = [[BaseNavigationController alloc] initWithRootViewController:mineVC];
+    
 
-    NSArray *viewControllers = @[NasNav, cloudPhoneNav,viewController3]; // 添加更多视图控制器
+    NSArray *viewControllers = @[NasNav, cloudPhoneNav,mineNav]; // 添加更多视图控制器
     tabBarController.viewControllers = viewControllers;
     
 

+ 6 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/Contents.json

@@ -0,0 +1,6 @@
+{
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_Privacy_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_Privacy_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_Privacy_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_Privacy_icon.imageset/mine_Privacy_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_Privacy_icon.imageset/mine_Privacy_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_cancell_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_cancell_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_cancell_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_cancell_icon.imageset/mine_cancell_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_cancell_icon.imageset/mine_cancell_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_changePhone_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_changePhone_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_changePhone_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_changePhone_icon.imageset/mine_changePhone_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_changePhone_icon.imageset/mine_changePhone_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_clear_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_clear_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_clear_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_clear_icon.imageset/mine_clear_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_clear_icon.imageset/mine_clear_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_customer_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_customer_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_customer_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_customer_icon.imageset/mine_customer_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_customer_icon.imageset/mine_customer_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_head_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_head_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_head_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_head_icon.imageset/mine_head_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_head_icon.imageset/mine_head_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_help_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_help_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_help_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_help_icon.imageset/mine_help_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_help_icon.imageset/mine_help_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_net_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_net_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_net_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_net_icon.imageset/mine_net_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_net_icon.imageset/mine_net_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_newUser_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_newUser_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_newUser_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_newUser_icon.imageset/mine_newUser_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_newUser_icon.imageset/mine_newUser_icon@3x.png


+ 22 - 0
创维盒子/双子星云手机/Assets.xcassets/mine/mine_version_icon.imageset/Contents.json

@@ -0,0 +1,22 @@
+{
+  "images" : [
+    {
+      "idiom" : "universal",
+      "scale" : "1x"
+    },
+    {
+      "filename" : "mine_version_icon@2x.png",
+      "idiom" : "universal",
+      "scale" : "2x"
+    },
+    {
+      "filename" : "mine_version_icon@3x.png",
+      "idiom" : "universal",
+      "scale" : "3x"
+    }
+  ],
+  "info" : {
+    "author" : "xcode",
+    "version" : 1
+  }
+}

BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_version_icon.imageset/mine_version_icon@2x.png


BIN
创维盒子/双子星云手机/Assets.xcassets/mine/mine_version_icon.imageset/mine_version_icon@3x.png


+ 34 - 29
创维盒子/双子星云手机/NAS/view/NASCommonUsedView.m

@@ -56,32 +56,48 @@
     
     NSArray *titleArr = @[NSLocalizedString(@"my_set_no_File_backups",nil),
                           NSLocalizedString(@"set_file_Transfer_WWAN_title",nil),
-                          NSLocalizedString(@"my_set_no_share",nil)];
+                          NSLocalizedString(@"my_set_no_share",nil)
+                          //,NSLocalizedString(@"my_set_no_share",nil)
+    ];
     
     NSArray *imageArr = @[@"nas_backups_icon",
                           @"nas_set_icon",
-                          @"nas_share_icon"];
+                          @"nas_share_icon"
+                          //,@"nas_share_icon"
+    ];
     
     CGFloat butTopY = 50.0;
-    CGFloat butWidth = 32.0;
-    CGFloat butHeight = 32.0 +20 +5;
-    CGFloat leftSpace = 26.0;
-    CGFloat butSpace = (SCREEN_W -16*2 -leftSpace*2 - butWidth*4)/3.0;
-    
-    CGFloat LabelWidth = 60.0;
+    CGFloat imageWH = 32.0;
+    CGFloat butHeight = imageWH +20 +5;
+    CGFloat butWidth = 70.0;
+    CGFloat butSpace = (SCREEN_W -16*2 - butWidth*4)/5.0;
     
     for (int i=0; i<titleArr.count; i++) {
+        
+        UIButton *but = [[UIButton alloc] init];
+        but.tag = 10+i;
+        [but addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+        [whiteBgView addSubview:but];
+       // but.backgroundColor = [UIColor greenColor];
+        
+        [but mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(butSpace + (butWidth+butSpace)*(i%4));
+            make.width.mas_equalTo(butWidth);
+            make.height.mas_equalTo(butHeight);
+            make.top.mas_equalTo(butTopY + (i/4)* (butHeight + 25) );
+        }];
+        
         UIImageView *imageV = [[UIImageView alloc] init];
         imageV.image = [UIImage imageNamed:imageArr[i]];
-        imageV.layer.cornerRadius = 10;
-        imageV.layer.masksToBounds = YES;
-        [whiteBgView addSubview:imageV];
+//        imageV.layer.cornerRadius = 10;
+//        imageV.layer.masksToBounds = YES;
+        [but addSubview:imageV];
         
         [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
-            make.left.mas_equalTo(leftSpace + (butWidth+butSpace)*i);
-            make.width.mas_equalTo(butWidth);
-            make.height.mas_equalTo(butWidth);
-            make.top.mas_equalTo(butTopY);
+            make.centerX.mas_equalTo(0);
+            make.width.mas_equalTo(imageWH);
+            make.height.mas_equalTo(imageWH);
+            make.top.mas_equalTo(0);
         }];
         
         UILabel *textLabel = [[UILabel alloc] init];
@@ -89,27 +105,16 @@
         textLabel.font = [UIFont systemFontOfSize:14.0];
         textLabel.textColor = [UIColor hwColor:@"#0A132B"];
         textLabel.text = titleArr[i];
-        [whiteBgView addSubview:textLabel];
+        [but addSubview:textLabel];
         //textLabel.backgroundColor = [UIColor redColor];
         
         [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
-            make.left.mas_equalTo(leftSpace + (butWidth+butSpace)*i - (LabelWidth -butWidth)/2.0);
-            make.width.mas_equalTo(LabelWidth);
+            make.centerX.mas_equalTo(0);
+            make.width.mas_equalTo(butWidth);
             make.height.mas_equalTo(20);
             make.top.equalTo(imageV.mas_bottom).offset(5);
         }];
         
-        UIButton *but = [[UIButton alloc] init];
-        but.tag = 10+i;
-        [but addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
-        [whiteBgView addSubview:but];
-        
-        [but mas_makeConstraints:^(MASConstraintMaker *make) {
-            make.left.mas_equalTo(leftSpace + (butWidth+butSpace)*i);
-            make.width.mas_equalTo(butWidth);
-            make.height.mas_equalTo(butHeight);
-            make.top.mas_equalTo(butTopY);
-        }];
     }
     
 }

+ 2 - 0
创维盒子/双子星云手机/cloudPhone/webSocketManager.h

@@ -75,6 +75,8 @@ NS_ASSUME_NONNULL_BEGIN
 - (void)getBaseInfoFun;
 #pragma mark 获取云机剩余空间(包含外挂磁盘)
 - (void)getExtraFilesListFun;
+#pragma mark 获取云机系统镜像等信息
+- (void)getSysInfoFun;
 
 //上传
 - (void)beginGotoUploadFileFunBy:(uploadFileDataModel *)uploadFileDataMod;

+ 9 - 0
创维盒子/双子星云手机/cloudPhone/webSocketManager.m

@@ -860,4 +860,13 @@ static webSocketManager *webSocketManagerInstance = nil;
     NSString *commondStr  = @"{\"type\":\"getBaseInfo\"}";
     [self send_data:commondStr];
 }
+
+#pragma mark 获取云机系统镜像等信息
+- (void)getSysInfoFun
+{
+    NSString *commondStr  = @"{\"type\":\"getSysInfo\"}";
+    [self send_data:commondStr];
+}
+
+
 @end

+ 16 - 0
创维盒子/双子星云手机/mine/mineViewController.h

@@ -0,0 +1,16 @@
+//
+//  mineViewController.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/21.
+//
+
+#import "BaseViewController.h"
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface mineViewController : BaseViewController
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 437 - 0
创维盒子/双子星云手机/mine/mineViewController.m

@@ -0,0 +1,437 @@
+//
+//  mineViewController.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/21.
+//
+
+#import "mineViewController.h"
+#import "MineCommonUsedView.h"
+#import "privacyModeViewController.h"
+#import "TipsQRCodeForChangeDeviceViewController.h"
+#import "AboutViewController.h"
+#import "clearCacheAlretViewController.h"
+
+@interface mineViewController ()
+@property(nonatomic,strong)UIButton *netButton;
+@property(nonatomic,strong)UILabel *snLabel;
+@property(nonatomic,strong)MineCommonUsedView *MineCommonUsedV;
+@end
+
+@implementation mineViewController
+
+- (void)viewDidLoad {
+    [super viewDidLoad];
+    // Do any additional setup after loading the view.
+
+    [self.view setBackgroundColor:HWF5F7FAColor];
+    
+    [self.toolBar setHidden:YES];
+    [self.navigationBar setHidden:YES];
+    [self.navBarBGView setHidden:YES];
+    
+    [self drawAnyView];
+}
+
+- (void)drawAnyView{
+    //顶底底部图片
+    UIImageView *topImageV = [UIImageView new];
+    topImageV.image = [UIImage imageNamed:@"Nas_top_img"];
+    [self.view addSubview:topImageV];
+    
+    [topImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(0);
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(280.0*AUTOSCALE);
+    }];
+    
+    //商标图片
+    UIImageView *TipImageV = [UIImageView new];
+    TipImageV.image = [UIImage imageNamed:@"mine_head_icon"];
+    [self.view addSubview:TipImageV];
+    
+    [TipImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(68);
+        make.left.mas_equalTo(16);
+        make.width.mas_equalTo(48);
+        make.height.mas_equalTo(48);
+    }];
+    
+    
+    _netButton = [[UIButton alloc] init];
+    [_netButton setImage:[UIImage imageNamed:@"mine_net_icon"] forState:UIControlStateNormal];
+    [_netButton setTitleColor:[UIColor hwColor:@"#058DFB"] forState:UIControlStateNormal];
+    _netButton.titleLabel.font = [UIFont systemFontOfSize:12.0];
+    //_netButton.tag = 1;
+    //[_netButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+    _netButton.userInteractionEnabled = NO;
+    [self.view addSubview:_netButton];
+
+    _netButton.layer.cornerRadius = 12;
+    _netButton.layer.borderWidth = 1.5;
+    _netButton.layer.borderColor = [UIColor hwColor:@"#058DFB"].CGColor;
+    _netButton.layer.masksToBounds = YES;
+    
+    
+    [_netButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.width.mas_equalTo(58);
+        make.height.mas_equalTo(24);
+        make.right.mas_equalTo(-16);
+        make.centerY.mas_equalTo(TipImageV.mas_centerY).offset(0);
+    }];
+    
+    _snLabel = [[UILabel alloc] init];
+    _snLabel.font = [UIFont boldSystemFontOfSize:14.0];
+    _snLabel.textColor = [UIColor hwColor:@"#0A132B"];
+    //_fileNamelabel.backgroundColor = [UIColor greenColor];
+    [self.view addSubview:_snLabel];
+    
+    [_snLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.equalTo(TipImageV.mas_right).offset(5);
+        make.right.equalTo(_netButton.mas_left).offset(-5);
+        make.centerY.mas_equalTo(TipImageV.mas_centerY).offset(0);
+    }];
+    
+ 
+    //常用功能
+    _MineCommonUsedV = [[MineCommonUsedView alloc] init];
+    [self.view addSubview:_MineCommonUsedV];
+    
+    [_MineCommonUsedV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.equalTo(TipImageV.mas_bottom).offset(15);
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(210);
+    }];
+    
+    
+    KWeakSelf
+    _MineCommonUsedV.didClickButtonFun = ^(NSInteger tag) {
+        [weakSelf didClickCommonUsedFunBy:tag];
+    };
+}
+
+#pragma mark 点击常用模块模块
+- (void)didClickCommonUsedFunBy:(NSInteger)tag
+{
+    switch (tag)
+    {
+        case 10:{
+            privacyModeViewController *vc = [privacyModeViewController new];
+            [self pushViewController:vc animated:YES];
+        }
+            break;
+        case 11:{
+            TipsQRCodeForChangeDeviceViewController *nextVC = [TipsQRCodeForChangeDeviceViewController new];
+            [self pushViewController:nextVC animated:YES];
+        }
+            break;
+        case 12:{
+            [[iToast makeText:@"点击了帮助与反馈"] show];
+//            shareRecordViewController *vc = [shareRecordViewController new];
+//            [self pushViewController:vc animated:YES];
+        }
+            break;
+        case 13:{
+            [[iToast makeText:@"点击了联系客服"] show];
+        }
+            break;
+            
+            
+        case 14:{
+            [[iToast makeText:@"点击了新手引导"] show];
+        }
+            break;
+        case 15:{
+            [self clickClearCacheButtonFun];
+        }
+            break;
+        case 16:{
+            AboutViewController *nextVC = [[AboutViewController alloc] init];
+            nextVC.getSysInfo = ^{
+                [[webSocketManager shareInstance] getSysInfoFun];
+            };
+            [self pushViewController:nextVC animated:YES];
+        }
+            break;
+        case 17:{
+            [[iToast makeText:@"点击了注销"] show];
+        }
+            break;
+        default:
+            break;
+    }
+}
+
+
+#pragma mark 清理缓存相关
+- (void)clickClearCacheButtonFun
+{
+    KWeakSelf
+    /*弹窗提示清除缓存*/
+    clearCacheAlretViewController *nextVC = [[clearCacheAlretViewController alloc] initWithTiTle:NSLocalizedString(@"my_set_no_clear_cache",nil)
+                                                                                     msg:NSLocalizedString(@"clear_cache_tip",nil)
+                                                                                imageStr:nil
+                                                                             cancelTitle:NSLocalizedString(@"other_cancel",nil)
+                                                                                 okTitle:NSLocalizedString(@"other_clear",nil) isOkBtnHighlight:YES
+                                                                                      didClickOk:^(BOOL isSelect) {
+        [weakSelf handleClearCacheFunWith:isSelect];
+    } didClickCancel:^{
+        
+    }];
+    nextVC.modalPresentationStyle = UIModalPresentationCustom;
+    [self presentViewController:nextVC animated:YES completion:^{
+        nextVC.view.superview.backgroundColor = [UIColor clearColor];
+    }];
+    
+}
+
+
+- (void)handleClearCacheFunWith:(BOOL)isSelectFileTransfer
+{
+    [self ClearCommonCacheFun:isSelectFileTransfer];
+}
+
+- (void)ClearCommonCacheFun:(BOOL)isSelectFileTransfer
+{
+    NSString *ruiyunLogPath = [NSString stringWithFormat:@"%@/logs/debug_0.log",CachesPatch];
+    long logSize1 = [iTools fileSizeAtPath:ruiyunLogPath];
+    [[NSFileManager defaultManager] removeItemAtPath:ruiyunLogPath error:nil];
+    
+    NSString *appLogPath = [NSString stringWithFormat:@"%@/logs/app.log",CachesPatch];
+    long logSize2 = [iTools fileSizeAtPath:appLogPath];
+   
+    [[NSFileManager defaultManager] removeItemAtPath:appLogPath error:nil];
+    
+    //
+    NSString *downLoadThumbnailPath = [NSString stringWithFormat:@"%@/DownLoadThumbnail",CachesPatch];
+    long logSize3 = [iTools folderSizeAtPath:downLoadThumbnailPath];
+    
+    [[NSFileManager defaultManager] removeItemAtPath:downLoadThumbnailPath error:nil];
+    
+    long clearTotal = logSize1 + logSize2 + logSize3;
+    
+    if(isSelectFileTransfer){
+        [self clearCacheByFileTransferFun:clearTotal];
+    }
+    else{
+        [self showClearAllTipBy:clearTotal];
+    }
+    
+}
+
+- (void)showClearAllTipBy:(long)clearTotal
+{
+    long clearTotalK = clearTotal /1024;
+    
+    NSString *tipStr1 = NSLocalizedString(@"my_set_no_clear_finish",nil);
+    NSString *tipStr2 = @"";
+    
+    if(clearTotalK > 1024*1024){
+        tipStr2 = [[NSString alloc] initWithFormat:@"%.02fGB",clearTotalK/1024.0/1024.0];
+    }
+    else if(clearTotalK > 1024){
+        tipStr2 = [[NSString alloc] initWithFormat:@"%.02fMB",clearTotalK/1024.0];
+    }
+    else //if(clearTotalK > 0)
+    {
+        tipStr2 = [[NSString alloc] initWithFormat:@"%ldKB",clearTotalK];
+    }
+    
+    NSString *tipfullStr = [[NSString alloc] initWithFormat:@"%@%@",tipStr1,tipStr2];
+    //提示语
+    [[iToast makeText:tipfullStr] show];
+}
+
+- (void)clearCacheByFileTransferFun:(long)clearTotal
+{
+    //清理图片
+    BOOL needReUploadingType = NO;
+    NSString *ImagePath = [NSString stringWithFormat:@"%@/Image",CachesPatch];
+    long imageAllSize = [iTools folderSizeAtPath:ImagePath];
+    
+    if([uploadFileManager shareInstance].curUploadFileDataModel
+       && [uploadFileManager shareInstance].curUploadFileDataModel.curUploadFileType == uploadFileTypeImage
+       && [uploadFileManager shareInstance].curUploadFileDataModel.curUploadStateType == uploadStateUploading){
+        
+        [uploadFileManager shareInstance].curUploadFileDataModel.curUploadStateType = uploadStateSuspend;
+        needReUploadingType  = YES;
+    }
+    
+    [[NSFileManager defaultManager] removeItemAtPath:ImagePath error:nil];
+    
+    if(needReUploadingType){
+        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(3 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+            [uploadFileManager shareInstance].curUploadFileDataModel.curUploadStateType = uploadStateUploading;
+        });
+    }
+    
+    //清理视频文件
+    NSString *videoPath = [NSString stringWithFormat:@"%@/Video",CachesPatch];
+    long vide0AllSizeBeforeClear = [iTools folderSizeAtPath:videoPath];
+    
+    NSString *backupsingVideoName = nil;
+    if([backupsFileManager shareInstance].curPhotosBackupsTaskMod
+       && [backupsFileManager shareInstance].curPhotosBackupsTaskMod.curUploadFileType == uploadFileTypeVideo){
+        backupsingVideoName = [backupsFileManager shareInstance].curPhotosBackupsTaskMod.filename;
+    }
+    
+    NSString *uploadingVideoName = nil;
+    if([uploadFileManager shareInstance].curUploadFileDataModel
+       && [uploadFileManager shareInstance].curUploadFileDataModel.curUploadFileType == uploadFileTypeVideo){
+        uploadingVideoName = [uploadFileManager shareInstance].curUploadFileDataModel.filename;
+    }
+    
+    if(backupsingVideoName || uploadingVideoName){
+        
+        NSMutableString *fileName = [NSMutableString new];
+        
+        if(backupsingVideoName){
+            [fileName appendString:backupsingVideoName];
+        }
+        
+        if(uploadingVideoName){
+            if(fileName.length > 0){
+                [fileName appendString:@"|"];
+            }
+            
+            [fileName appendString:uploadingVideoName];
+        }
+        
+        [self deleteFilesInDirectoryAtPath:videoPath withOutFileName:fileName];
+    }
+    else{
+        [[NSFileManager defaultManager] removeItemAtPath:videoPath error:nil];
+    }
+    
+    long vide0AllSizeAfterClear = [iTools folderSizeAtPath:videoPath];
+    
+    
+    //清理下载中
+    NSString *downLoadingPath = [NSString stringWithFormat:@"%@/DownLoadFlie",CachesPatch];
+    long downLoadingSizeBeforeClear = [iTools folderSizeAtPath:downLoadingPath];
+    
+    NSString *downLoadingFileName = nil;
+    if([downloadManager shareInstance].curDownloadFileModel
+       && ([downloadManager shareInstance].curDownloadFileModel.curDownloadStateType == downloadStateUploading
+           ||[downloadManager shareInstance].curDownloadFileModel.curDownloadStateType == downloadStateSuspend)){
+        downLoadingFileName = [[downloadManager shareInstance].curDownloadFileModel getFileNameFun];
+        
+        [self deleteFilesInDirectoryAtPath:downLoadingPath withOutFileName:downLoadingFileName];
+    }
+    else{
+        [[NSFileManager defaultManager] removeItemAtPath:downLoadingPath error:nil];
+    }
+    
+    long downLoadingSizeAfterClear = [iTools folderSizeAtPath:downLoadingPath];
+    
+    
+    //清理数据库表 完成的
+    
+    //下载完成
+    NSMutableString* where = [[NSMutableString alloc] initWithString:@"where "];
+    NSString *curStr =  [NSString stringWithFormat:@"%@=%@ or %@=%@ ",bg_sqlKey(@"curDownloadStateType"),bg_sqlValue([NSNumber numberWithInt:downloadStateDone]),bg_sqlKey(@"curDownloadStateType"),bg_sqlValue([NSNumber numberWithInt:downloadStateFail])];
+    [where appendString:curStr];
+    [couldPhoneFileModel bg_deleteAsync:download_tableName where:where complete:^(BOOL isSuccess) {
+    }];
+    
+    //上传完成
+    NSMutableString* where2 = [[NSMutableString alloc] initWithString:@"where "];
+    NSString *curStr2 =  [NSString stringWithFormat:@"%@=%@ or %@=%@ ",bg_sqlKey(@"curUploadStateType"),bg_sqlValue([NSNumber numberWithInt:uploadStateDone]),
+                          bg_sqlKey(@"curUploadStateType"),bg_sqlValue([NSNumber numberWithInt:uploadStateFail])];
+    [where2 appendString:curStr2];
+    
+    [uploadFileDataModel bg_deleteAsync:upLoadFile_image_tableName where:where2 complete:^(BOOL isSuccess) {
+    }];
+    
+    long curTotolSize = (downLoadingSizeBeforeClear - downLoadingSizeAfterClear) + (vide0AllSizeBeforeClear - vide0AllSizeAfterClear) + imageAllSize + clearTotal;
+    
+    [self showClearAllTipBy:curTotolSize];
+}
+
+- (BOOL)deleteFilesInDirectoryAtPath:(NSString *)path withOutFileName:(NSString*)fileNames {
+    NSFileManager *fileManager = [NSFileManager defaultManager];
+    
+    NSArray *fileNameArr = [fileNames componentsSeparatedByString:@"|"];
+    
+    
+    // 使用NSDirectoryEnumerator遍历目录
+    NSDirectoryEnumerator *directoryEnumerator = [fileManager enumeratorAtPath:path];
+    NSString *fileName;
+    while ((fileName = [directoryEnumerator nextObject])) {
+        
+        BOOL canDelType = YES;
+        
+        for (NSString*noDelfileName in fileNameArr) {
+            if([noDelfileName isEqualToString:fileName]){
+                canDelType = NO;
+                break;
+            }
+        }
+        
+        if(canDelType){
+            NSString *filePath = [path stringByAppendingPathComponent:fileName];
+              
+            // 如果是文件,则删除它
+            if ([fileManager fileExistsAtPath:filePath]) {
+                BOOL success = [fileManager removeItemAtPath:filePath error:nil];
+                if (!success) {
+                    // 如果删除失败,返回NO并处理错误
+                    return NO;
+                }
+            }
+        }
+        
+    }
+      
+    // 所有文件都成功删除,返回YES
+    return YES;
+}
+
+
+
+#pragma mark 数据设置
+- (void)setDataFun
+{
+    NSString *fullSNStr = [[NSString alloc] initWithFormat:@"SN:%@",[connectDeviceManager shareInstance].DeviceThirdIdMod.data.changeSn];
+    _snLabel.text = fullSNStr;
+    
+    NSString *NetButText = NSLocalizedString(@"mine_net_LAN",nil);
+    if(![connectDeviceManager shareInstance].isPingOk){
+        NetButText = NSLocalizedString(@"mine_net_WAN",nil);
+    }
+
+    [_netButton setTitle:NetButText forState:UIControlStateNormal];
+}
+
+- (void)viewWillAppear:(BOOL)animated
+{
+    [super viewWillAppear:animated];
+    [self setDataFun];
+    [self showTabbarFun];
+}
+
+- (void)viewWillDisappear:(BOOL)animated{
+    [super viewWillDisappear:animated];
+    
+    //[self hideTabbarFun];
+}
+
+- (void)pushViewController:(UIViewController*)vc animated:(BOOL)animated
+{
+    [self.navigationController pushViewController:vc animated:animated];
+    [self hideTabbarFun];
+}
+- (void)showTabbarFun
+{
+    // 显示 tab bar
+    self.tabBarController.tabBar.hidden = NO;
+}
+
+- (void)hideTabbarFun
+{
+    // 隐藏 tab bar
+    self.tabBarController.tabBar.hidden = YES;
+}
+@end

+ 16 - 0
创维盒子/双子星云手机/mine/view/MineCommonUsedView.h

@@ -0,0 +1,16 @@
+//
+//  MineCommonUsedView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/21.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface MineCommonUsedView : UIView
+@property (nonatomic,copy) void (^didClickButtonFun)(NSInteger tag);
+@end
+
+NS_ASSUME_NONNULL_END

+ 146 - 0
创维盒子/双子星云手机/mine/view/MineCommonUsedView.m

@@ -0,0 +1,146 @@
+//
+//  MineCommonUsedView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/21.
+//
+
+#import "MineCommonUsedView.h"
+
+@interface MineCommonUsedView ()
+@property(nonatomic,strong) UILabel*titleLabel;
+
+
+@end
+
+@implementation MineCommonUsedView
+
+- (id)initWithFrame:(CGRect)frame{
+    self = [super initWithFrame:frame];
+    
+    //self.backgroundColor = [UIColor clearColor];
+    [self drawAnyView];
+    
+    return self;
+}
+
+-(void)drawAnyView
+{
+    UIView *whiteBgView = [[UIView alloc] init];
+    whiteBgView.backgroundColor = [UIColor whiteColor];
+    [self addSubview:whiteBgView];
+    whiteBgView.layer.cornerRadius = 12;
+    whiteBgView.layer.masksToBounds = YES;
+    
+    [whiteBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(0);
+        make.left.mas_equalTo(16);
+        make.right.mas_equalTo(-16);
+        make.bottom.mas_equalTo(0);
+    }];
+    
+    _titleLabel = [[UILabel alloc] init];
+    _titleLabel.font = [UIFont boldSystemFontOfSize:16.0];
+    _titleLabel.textColor = [UIColor hwColor:@"#0A132B"];
+    _titleLabel.text = NSLocalizedString(@"NAS_common_used",nil);
+    [whiteBgView addSubview:_titleLabel];
+    
+    [_titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(16);
+        make.left.mas_equalTo(16);
+        make.right.mas_equalTo(-24-12-10);
+        make.height.mas_equalTo(20);
+    }];
+
+    
+    NSArray *titleArr = @[NSLocalizedString(@"my_set_Privacy_Model",nil),
+                          NSLocalizedString(@"my_set_no_change_phone",nil),
+                          NSLocalizedString(@"mine_help_title",nil),
+                          NSLocalizedString(@"my_set_no_connect_kefu",nil),
+                          
+                          NSLocalizedString(@"mine_newuser_title",nil),
+                          NSLocalizedString(@"my_set_no_clear_cache",nil),
+                          NSLocalizedString(@"my_set_no_check_update",nil),
+                          //NSLocalizedString(@"mine_sn_cancel_title",nil)
+    ];
+    
+    NSArray *imageArr = @[@"mine_Privacy_icon",
+                          @"mine_changePhone_icon",
+                          @"mine_help_icon",
+                          @"mine_customer_icon",
+                          
+                          @"mine_newUser_icon",
+                          @"mine_clear_icon",
+                          @"mine_version_icon",
+                          //@"mine_cancell_icon",
+    ];
+    
+    CGFloat butTopY = 50.0;
+    CGFloat imageWH = 28.0;
+    
+    CGFloat butHeight = imageWH +20 +5;
+    CGFloat butWidth = 70.0;
+    CGFloat butSpace = (SCREEN_W -16*2  - butWidth*4)/5.0;
+    
+    for (int i=0; i<titleArr.count; i++) {
+        
+        UIButton *but = [[UIButton alloc] init];
+        but.tag = 10+i;
+        [but addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+        [whiteBgView addSubview:but];
+        //but.backgroundColor = [UIColor greenColor];
+        
+        [but mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(butSpace + (butWidth+butSpace)*(i%4));
+            make.width.mas_equalTo(butWidth);
+            make.height.mas_equalTo(butHeight);
+            make.top.mas_equalTo(butTopY + (i/4)* (butHeight + 25) );
+        }];
+        
+        UIImageView *imageV = [[UIImageView alloc] init];
+        imageV.image = [UIImage imageNamed:imageArr[i]];
+//        imageV.layer.cornerRadius = 10;
+//        imageV.layer.masksToBounds = YES;
+        [but addSubview:imageV];
+        
+        [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.centerX.mas_equalTo(0);
+            make.width.mas_equalTo(imageWH);
+            make.height.mas_equalTo(imageWH);
+            make.top.mas_equalTo(0);
+        }];
+        
+        UILabel *textLabel = [[UILabel alloc] init];
+        textLabel.textAlignment = NSTextAlignmentCenter;
+        textLabel.font = [UIFont systemFontOfSize:13.0];
+        textLabel.textColor = [UIColor hwColor:@"#828D9A"];
+        textLabel.text = titleArr[i];
+        [but addSubview:textLabel];
+        //textLabel.backgroundColor = [UIColor redColor];
+        
+        [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.centerX.mas_equalTo(0);
+            make.width.mas_equalTo(butWidth);
+            make.height.mas_equalTo(20);
+            make.top.equalTo(imageV.mas_bottom).offset(5);
+        }];
+        
+    }
+    
+}
+
+
+
+
+#pragma mark 按钮事件
+- (void)didClickButtonFun:(UIButton*)but
+{
+    NSInteger tag = but.tag;
+    HLog(@"%ld",tag);
+    
+    if(_didClickButtonFun){
+        _didClickButtonFun(tag);
+    }
+}
+@end
+

+ 5 - 0
创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

@@ -543,3 +543,8 @@
 "NAS_bottom_tip"   = "已经到底了";
 "NAS_last_file_not_data_tip"   = "暂无最近使用记录";
 "cloudPhone_enter_tip"   = "进入云机";
+"mine_net_LAN"   = "内网";
+"mine_net_WAN"   = "外网";
+"mine_help_title"   = "帮助与反馈";
+"mine_newuser_title"   = "新手引导";
+"mine_sn_cancel_title"   = "注销";