Explorar el Código

1.首页部分UI

huangxiaodong hace 1 año
padre
commit
f2f6f19a57
Se han modificado 43 ficheros con 747 adiciones y 1 borrados
  1. 32 0
      创维盒子/双子星云手机.xcodeproj/project.pbxproj
  2. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_add_icon.imageset/Contents.json
  3. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_add_icon.imageset/nas_add_icon@2x.png
  4. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_add_icon.imageset/nas_add_icon@3x.png
  5. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_audio_icon.imageset/Contents.json
  6. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_audio_icon.imageset/nas_audio_icon@2x.png
  7. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_audio_icon.imageset/nas_audio_icon@3x.png
  8. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_backups_icon.imageset/Contents.json
  9. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_backups_icon.imageset/nas_backups_icon@2x.png
  10. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_backups_icon.imageset/nas_backups_icon@3x.png
  11. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_file_icon.imageset/Contents.json
  12. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_file_icon.imageset/nas_file_icon@2x.png
  13. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_file_icon.imageset/nas_file_icon@3x.png
  14. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_picture_icon.imageset/Contents.json
  15. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_picture_icon.imageset/nas_picture_icon@2x.png
  16. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_picture_icon.imageset/nas_picture_icon@3x.png
  17. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_set_icon.imageset/Contents.json
  18. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_set_icon.imageset/nas_set_icon@2x.png
  19. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_set_icon.imageset/nas_set_icon@3x.png
  20. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_share_icon.imageset/Contents.json
  21. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_share_icon.imageset/nas_share_icon@2x.png
  22. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_share_icon.imageset/nas_share_icon@3x.png
  23. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_video_icon.imageset/Contents.json
  24. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_video_icon.imageset/nas_video_icon@2x.png
  25. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_video_icon.imageset/nas_video_icon@3x.png
  26. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_cs.imageset/Contents.json
  27. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_cs.imageset/nas_welcome_cs@2x.png
  28. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_cs.imageset/nas_welcome_cs@3x.png
  29. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_ct.imageset/Contents.json
  30. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_ct.imageset/nas_welcome_ct@2x.png
  31. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_ct.imageset/nas_welcome_ct@3x.png
  32. 22 0
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_en.imageset/Contents.json
  33. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_en.imageset/nas_welcome_en@2x.png
  34. BIN
      创维盒子/双子星云手机/Assets.xcassets/NAS/nas_welcome_en.imageset/nas_welcome_en@3x.png
  35. 22 0
      创维盒子/双子星云手机/Assets.xcassets/common/common_right_arrow.imageset/Contents.json
  36. BIN
      创维盒子/双子星云手机/Assets.xcassets/common/common_right_arrow.imageset/common_right_arrow@2x.png
  37. BIN
      创维盒子/双子星云手机/Assets.xcassets/common/common_right_arrow.imageset/common_right_arrow@3x.png
  38. 88 1
      创维盒子/双子星云手机/NAS/NASViewController.m
  39. 16 0
      创维盒子/双子星云手机/NAS/view/NASCommonUsedView.h
  40. 127 0
      创维盒子/双子星云手机/NAS/view/NASCommonUsedView.m
  41. 16 0
      创维盒子/双子星云手机/NAS/view/NASMySpaceView.h
  42. 200 0
      创维盒子/双子星云手机/NAS/view/NASMySpaceView.m
  43. 4 0
      创维盒子/双子星云手机/zh-Hans.lproj/Localizable.strings

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

@@ -520,6 +520,14 @@
 		6B5D86672C227C71008D25EA /* NASViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5D86642C227C71008D25EA /* NASViewController.h */; };
 		6B5D86682C227C71008D25EA /* NASViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5D86642C227C71008D25EA /* NASViewController.h */; };
 		6B5D86692C227C71008D25EA /* NASViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5D86652C227C71008D25EA /* NASViewController.m */; };
+		6B5D866D2C22AE2B008D25EA /* NASMySpaceView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5D866C2C22AE2B008D25EA /* NASMySpaceView.m */; };
+		6B5D866E2C22AE2B008D25EA /* NASMySpaceView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5D866B2C22AE2B008D25EA /* NASMySpaceView.h */; };
+		6B5D866F2C22AE2B008D25EA /* NASMySpaceView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5D866B2C22AE2B008D25EA /* NASMySpaceView.h */; };
+		6B5D86702C22AE2B008D25EA /* NASMySpaceView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5D866C2C22AE2B008D25EA /* NASMySpaceView.m */; };
+		6B5D86732C22C63F008D25EA /* NASCommonUsedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5D86722C22C63F008D25EA /* NASCommonUsedView.m */; };
+		6B5D86742C22C63F008D25EA /* NASCommonUsedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5D86712C22C63F008D25EA /* NASCommonUsedView.h */; };
+		6B5D86752C22C63F008D25EA /* NASCommonUsedView.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B5D86712C22C63F008D25EA /* NASCommonUsedView.h */; };
+		6B5D86762C22C63F008D25EA /* NASCommonUsedView.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B5D86722C22C63F008D25EA /* NASCommonUsedView.m */; };
 		6B63179C2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 6B63179B2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.m */; };
 		6B63179D2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B63179A2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.h */; };
 		6B63179E2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 6B63179A2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.h */; };
@@ -1586,6 +1594,10 @@
 		6B5D40422B4CF04C000965CF /* PlayerViewController+downloadFile.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "PlayerViewController+downloadFile.m"; sourceTree = "<group>"; };
 		6B5D86642C227C71008D25EA /* NASViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASViewController.h; sourceTree = "<group>"; };
 		6B5D86652C227C71008D25EA /* NASViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASViewController.m; sourceTree = "<group>"; };
+		6B5D866B2C22AE2B008D25EA /* NASMySpaceView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASMySpaceView.h; sourceTree = "<group>"; };
+		6B5D866C2C22AE2B008D25EA /* NASMySpaceView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASMySpaceView.m; sourceTree = "<group>"; };
+		6B5D86712C22C63F008D25EA /* NASCommonUsedView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = NASCommonUsedView.h; sourceTree = "<group>"; };
+		6B5D86722C22C63F008D25EA /* NASCommonUsedView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = NASCommonUsedView.m; sourceTree = "<group>"; };
 		6B63179A2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = videoPlayByAVPlayerViewController.h; sourceTree = "<group>"; };
 		6B63179B2BFD8CA000FF4FB4 /* videoPlayByAVPlayerViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = videoPlayByAVPlayerViewController.m; sourceTree = "<group>"; };
 		6B6317A02BFD9DB500FF4FB4 /* ZFCustomControlView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ZFCustomControlView.h; sourceTree = "<group>"; };
@@ -2766,12 +2778,24 @@
 		6B5D86632C227C4A008D25EA /* NAS */ = {
 			isa = PBXGroup;
 			children = (
+				6B5D866A2C22AE0B008D25EA /* view */,
 				6B5D86642C227C71008D25EA /* NASViewController.h */,
 				6B5D86652C227C71008D25EA /* NASViewController.m */,
 			);
 			path = NAS;
 			sourceTree = "<group>";
 		};
+		6B5D866A2C22AE0B008D25EA /* view */ = {
+			isa = PBXGroup;
+			children = (
+				6B5D866B2C22AE2B008D25EA /* NASMySpaceView.h */,
+				6B5D866C2C22AE2B008D25EA /* NASMySpaceView.m */,
+				6B5D86712C22C63F008D25EA /* NASCommonUsedView.h */,
+				6B5D86722C22C63F008D25EA /* NASCommonUsedView.m */,
+			);
+			path = view;
+			sourceTree = "<group>";
+		};
 		6B6ABED72BFF3A6600480BAC /* receiveView */ = {
 			isa = PBXGroup;
 			children = (
@@ -3309,6 +3333,7 @@
 				6B0582802B01C67400D37290 /* uploadFileRecordViewController.h in Headers */,
 				6BEA31752BB65606005167AA /* clearCacheAlretViewController.h in Headers */,
 				6B4C0F842C0315880070EF2E /* audioPlayerViewController.h in Headers */,
+				6B5D866E2C22AE2B008D25EA /* NASMySpaceView.h in Headers */,
 				6B467BB32BC7E4360039A6A6 /* addLogObject.h in Headers */,
 				183AE6D12A8CA98C00B11CB0 /* CloudPhoneAPI.h in Headers */,
 				6B07AC252BF85859005C2B0E /* ShareRecordModel.h in Headers */,
@@ -3464,6 +3489,7 @@
 				18963B462AB84398006E7C50 /* GuideView.h in Headers */,
 				6B1FBD322B455DBD00926382 /* PlayerViewController+upLoadFile.h in Headers */,
 				6B2C1E742C070ADE00FDCF82 /* ZFLandscapeViewController.h in Headers */,
+				6B5D86742C22C63F008D25EA /* NASCommonUsedView.h in Headers */,
 				6B72725B2B0E22D000C03F87 /* uploadFileRecordBgScorllView.h in Headers */,
 				6B1F7FD62C00772500954720 /* boxDownloadFileManager.h in Headers */,
 				18A909982ABC4A3300E6D2BE /* ComontAlretViewController.h in Headers */,
@@ -3530,6 +3556,7 @@
 				6BD506A82B9576A4006E7CB0 /* uploadFileRecordViewController.h in Headers */,
 				6BEA31782BB65606005167AA /* clearCacheAlretViewController.h in Headers */,
 				6B4C0F872C0315880070EF2E /* audioPlayerViewController.h in Headers */,
+				6B5D866F2C22AE2B008D25EA /* NASMySpaceView.h in Headers */,
 				6B467BB52BC7E4360039A6A6 /* addLogObject.h in Headers */,
 				6BD506A92B9576A4006E7CB0 /* CloudPhoneAPI.h in Headers */,
 				6B07AC282BF85859005C2B0E /* ShareRecordModel.h in Headers */,
@@ -3685,6 +3712,7 @@
 				6BD506FB2B9576A4006E7CB0 /* GuideView.h in Headers */,
 				6BD506FC2B9576A4006E7CB0 /* PlayerViewController+upLoadFile.h in Headers */,
 				6B2C1E752C070ADE00FDCF82 /* ZFLandscapeViewController.h in Headers */,
+				6B5D86752C22C63F008D25EA /* NASCommonUsedView.h in Headers */,
 				6BD506FD2B9576A4006E7CB0 /* uploadFileRecordBgScorllView.h in Headers */,
 				6B1F7FD82C00772500954720 /* boxDownloadFileManager.h in Headers */,
 				6BD506FE2B9576A4006E7CB0 /* ComontAlretViewController.h in Headers */,
@@ -4144,6 +4172,7 @@
 				6BD5072B2B9576A4006E7CB0 /* fileTransfeSetViewController.m in Sources */,
 				6BD5072C2B9576A4006E7CB0 /* UIButton+AFNetworking.m in Sources */,
 				6B7EA7B32BF73DEB002D5CC2 /* addShareModel.m in Sources */,
+				6B5D86702C22AE2B008D25EA /* NASMySpaceView.m in Sources */,
 				6BD5072D2B9576A4006E7CB0 /* backupsFilerecordTableView.m in Sources */,
 				6B2C1E1F2C070ADE00FDCF82 /* ZFAVPlayerManager.m in Sources */,
 				6B7EA79B2BF5B4A6002D5CC2 /* NASFilePicModel.m in Sources */,
@@ -4249,6 +4278,7 @@
 				6B5BE5942BFCA5FA00A1B9B3 /* videoPlayViewController.m in Sources */,
 				6B4C0F6D2C0314BA0070EF2E /* DFPlayerRequestManager.m in Sources */,
 				6BD507742B9576A4006E7CB0 /* extraMediaEventModel.m in Sources */,
+				6B5D86762C22C63F008D25EA /* NASCommonUsedView.m in Sources */,
 				6BD507752B9576A4006E7CB0 /* couldPhoneFolderListModel.m in Sources */,
 				6BD507762B9576A4006E7CB0 /* backupsFileManager.m in Sources */,
 				6BD507772B9576A4006E7CB0 /* forgetSecretKeyViewController.m in Sources */,
@@ -4447,6 +4477,7 @@
 				6B5B60662B3D5FD8009A2AE2 /* fileTransfeSetViewController.m in Sources */,
 				183AE6502A8A2CF000B11CB0 /* UIButton+AFNetworking.m in Sources */,
 				6B7EA7B12BF73DEB002D5CC2 /* addShareModel.m in Sources */,
+				6B5D866D2C22AE2B008D25EA /* NASMySpaceView.m in Sources */,
 				6B1FBD3B2B467A8000926382 /* backupsFilerecordTableView.m in Sources */,
 				6B2C1E1E2C070ADE00FDCF82 /* ZFAVPlayerManager.m in Sources */,
 				6B7EA7992BF5B4A6002D5CC2 /* NASFilePicModel.m in Sources */,
@@ -4552,6 +4583,7 @@
 				6B5BE5922BFCA5FA00A1B9B3 /* videoPlayViewController.m in Sources */,
 				6B4C0F6C2C0314BA0070EF2E /* DFPlayerRequestManager.m in Sources */,
 				6B1CC2C72B677F3E00AD4217 /* extraMediaEventModel.m in Sources */,
+				6B5D86732C22C63F008D25EA /* NASCommonUsedView.m in Sources */,
 				6B5D401B2B4A9850000965CF /* couldPhoneFolderListModel.m in Sources */,
 				6B1FBD2B2B452B3800926382 /* backupsFileManager.m in Sources */,
 				6BFF269A2AFA16DA00FCB4F7 /* forgetSecretKeyViewController.m in Sources */,

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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


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

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

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


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


+ 88 - 1
创维盒子/双子星云手机/NAS/NASViewController.m

@@ -6,9 +6,12 @@
 //
 
 #import "NASViewController.h"
+#import "NASMySpaceView.h"
+#import "NASCommonUsedView.h"
 
 @interface NASViewController ()
-
+@property (nonatomic, strong) NASMySpaceView* NASMySpaceV;
+@property (nonatomic, strong) NASCommonUsedView* NASCommonUsedV;
 @end
 
 @implementation NASViewController
@@ -27,6 +30,7 @@
 }
 
 - (void)drawAnyView{
+    //顶底底部图片
     UIImageView *topImageV = [UIImageView new];
     topImageV.image = [UIImage imageNamed:@"Nas_top_img"];
     [self.view addSubview:topImageV];
@@ -37,6 +41,89 @@
         make.right.mas_equalTo(0);
         make.height.mas_equalTo(280.0*AUTOSCALE);
     }];
+    
+    NSString *welcomeImageStr = @"nas_welcome_cs";
+    //欢迎
+    //en-US 英文 ja-JP 日文
+    NSArray *arLanguages = [[NSUserDefaults standardUserDefaults] objectForKey:@"AppleLanguages"];
+    NSLog(@"arLanguages:%@",arLanguages);
+    ///获取设备当前地区的代码和APP语言环境
+    NSString *languageCode = [NSLocale preferredLanguages][0];
+  
+    //目前支持 中文(简体 繁体) 英文 日语
+    if([languageCode rangeOfString:@"zh-Hans"].location != NSNotFound)
+    {
+        welcomeImageStr = @"nas_welcome_cs";
+    }
+    else if([languageCode rangeOfString:@"zh-Hant"].location != NSNotFound)
+    {
+        welcomeImageStr = @"nas_welcome_ct";
+    }
+    else{
+        welcomeImageStr = @"nas_welcome_en";
+    }
+    
+    CGFloat imageTopY =  54.0;
+    UIImageView *welcomeImageV = [UIImageView new];
+    welcomeImageV.image = [UIImage imageNamed:welcomeImageStr];
+    [self.view addSubview:welcomeImageV];
+    
+    [welcomeImageV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(imageTopY);
+        make.left.mas_equalTo(16);
+        make.width.mas_equalTo(210);
+        make.height.mas_equalTo(24);
+    }];
+    
+    
+    //添加按钮
+    UIButton *addButton = [[UIButton alloc] init];
+    [addButton setBackgroundImage:[UIImage imageNamed:@"nas_add_icon"] forState:UIControlStateNormal];
+    [self.view addSubview:addButton];
+    
+    [addButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(imageTopY);
+        make.right.mas_equalTo(-16);
+        make.width.mas_equalTo(24);
+        make.height.mas_equalTo(24);
+    }];
+    
+    UIButton *rightTransferListButton = [[UIButton alloc] init];
+    //[rightTransferListButton setImage:[UIImage imageNamed:@"icon_file_transfer"] forState:UIControlStateNormal];
+    [rightTransferListButton setBackgroundImage:[UIImage imageNamed:@"icon_file_transfer"] forState:UIControlStateNormal];
+    //[rightTransferListButton addTarget:self action:@selector(didiClikRightButGotoTransferListFun:) forControlEvents:UIControlEventTouchUpInside];
+    [self.view addSubview:rightTransferListButton];
+    
+    [rightTransferListButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(imageTopY);
+        make.right.equalTo(addButton.mas_left).offset(-24);
+        make.width.mas_equalTo(24);
+        make.height.mas_equalTo(24);
+    }];
+    
+    //我的空间
+    _NASMySpaceV = [[NASMySpaceView alloc] init];
+    [self.view addSubview:_NASMySpaceV];
+    
+    [_NASMySpaceV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.equalTo(welcomeImageV.mas_bottom).offset(20);
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(165);
+    }];
+    
+    //常用功能
+    _NASCommonUsedV = [[NASCommonUsedView alloc] init];
+    [self.view addSubview:_NASCommonUsedV];
+    
+    [_NASCommonUsedV mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.equalTo(_NASMySpaceV.mas_bottom).offset(15);
+        make.left.mas_equalTo(0);
+        make.right.mas_equalTo(0);
+        make.height.mas_equalTo(120);
+    }];
+    
+    
 }
 
 

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

@@ -0,0 +1,16 @@
+//
+//  NASCommonUsedView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/19.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface NASCommonUsedView : UIView
+
+@end
+
+NS_ASSUME_NONNULL_END

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

@@ -0,0 +1,127 @@
+//
+//  NASCommonUsedView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/19.
+//
+
+#import "NASCommonUsedView.h"
+
+
+@interface NASCommonUsedView ()
+@property(nonatomic,strong) UILabel*titleLabel;
+
+
+@end
+
+@implementation NASCommonUsedView
+
+- (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_no_File_backups",nil),
+                          NSLocalizedString(@"set_file_Transfer_WWAN_title",nil),
+                          NSLocalizedString(@"my_set_no_share",nil)];
+    
+    NSArray *imageArr = @[NSLocalizedString(@"nas_backups_icon",nil),
+                          NSLocalizedString(@"nas_set_icon",nil),
+                          NSLocalizedString(@"nas_share_icon",nil)];
+    
+    CGFloat butTopY = 50.0;
+    CGFloat butWidth = 32.0;
+    CGFloat butHeight = 32.0 +20 +5;
+    CGFloat leftSpace = 26.0;
+    CGFloat butSpace = (SCREEN_W -26*2 - butWidth*4)/5.0;
+    
+    CGFloat LabelWidth = 60.0;
+    
+    for (int i=0; i<titleArr.count; i++) {
+        UIImageView *imageV = [[UIImageView alloc] init];
+        imageV.image = [UIImage imageNamed:imageArr[i]];
+        imageV.layer.cornerRadius = 10;
+        imageV.layer.masksToBounds = YES;
+        [whiteBgView 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);
+        }];
+        
+        UILabel *textLabel = [[UILabel alloc] init];
+        textLabel.textAlignment = NSTextAlignmentCenter;
+        textLabel.font = [UIFont systemFontOfSize:14.0];
+        textLabel.textColor = [UIColor hwColor:@"#0A132B"];
+        textLabel.text = titleArr[i];
+        [whiteBgView 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.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);
+        }];
+    }
+    
+}
+
+
+
+
+#pragma mark 按钮事件
+- (void)didClickButtonFun:(UIButton*)but
+{
+    NSInteger tag = but.tag;
+    HLog(@"%ld",tag);
+}
+@end
+

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

@@ -0,0 +1,16 @@
+//
+//  NASMySpaceView.h
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/19.
+//
+
+#import <UIKit/UIKit.h>
+
+NS_ASSUME_NONNULL_BEGIN
+
+@interface NASMySpaceView : UIView
+
+@end
+
+NS_ASSUME_NONNULL_END

+ 200 - 0
创维盒子/双子星云手机/NAS/view/NASMySpaceView.m

@@ -0,0 +1,200 @@
+//
+//  NASMySpaceView.m
+//  双子星云手机
+//
+//  Created by xd h on 2024/6/19.
+//
+
+#import "NASMySpaceView.h"
+
+@interface NASMySpaceView ()
+@property(nonatomic,strong) UILabel*titleLabel;
+
+//渐变色进度条
+@property(nonatomic,strong) UIView *progressBgView;
+@property(nonatomic,strong) UIView *progressSelectView;
+@property(nonatomic,strong) CAGradientLayer *glayer;
+
+
+@end
+
+@implementation NASMySpaceView
+
+- (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 systemFontOfSize:12.0];
+    _titleLabel.textColor = [UIColor hwColor:@"#818CA2"];
+    [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);
+    }];
+    
+    [self setTitleLabelTextFun];
+    
+    //添加按钮
+    UIButton *rightButton = [[UIButton alloc] init];
+    [rightButton setBackgroundImage:[UIImage imageNamed:@"common_right_arrow"] forState:UIControlStateNormal];
+    rightButton.tag = 1;
+    [rightButton addTarget:self action:@selector(didClickButtonFun:) forControlEvents:UIControlEventTouchUpInside];
+    [whiteBgView addSubview:rightButton];
+    
+    [rightButton mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.top.mas_equalTo(16);
+        make.right.mas_equalTo(-12);
+        make.width.mas_equalTo(24);
+        make.height.mas_equalTo(24);
+    }];
+    
+    _progressBgView = [[UIView alloc] init];
+    _progressBgView.backgroundColor = [UIColor hwColor:@"#E7EFFA" alpha:1.0];
+    _progressBgView.layer.cornerRadius = 5;
+    _progressBgView.layer.masksToBounds = YES;
+    [whiteBgView addSubview:_progressBgView];
+    
+    [_progressBgView mas_makeConstraints:^(MASConstraintMaker *make) {
+        make.left.mas_equalTo(16);
+        make.right.mas_equalTo(-16);
+        make.height.mas_equalTo(10);
+        make.top.equalTo(_titleLabel.mas_bottom).offset(12);
+    }];
+    
+    _progressSelectView = [[UIView alloc] init];
+    _progressSelectView.layer.cornerRadius = 5;
+    _progressSelectView.layer.masksToBounds = YES;
+    [_progressBgView addSubview:_progressSelectView];
+    
+    // gradient
+    _glayer = [CAGradientLayer layer];
+    _glayer.startPoint = CGPointMake(0, 0.5);
+    _glayer.endPoint = CGPointMake(0.97, 0.5);
+    _glayer.colors = @[(__bridge id)[UIColor hwColor:@"#0CDEFD" alpha:1.0].CGColor, (__bridge id)[UIColor hwColor:@"#058DFB" alpha:1.0].CGColor];
+    _glayer.locations = @[@(0), @(1.0f)];
+    [_progressSelectView.layer addSublayer:_glayer];
+    
+    dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
+        [self setProgressFun];
+    });
+    
+    NSArray *titleArr = @[NSLocalizedString(@"my_set_no_image_upload",nil),
+                          NSLocalizedString(@"my_set_no_video_upload",nil),
+                          NSLocalizedString(@"my_set_no_music",nil),
+                          NSLocalizedString(@"my_set_no_file",nil)];
+    
+    NSArray *imageArr = @[NSLocalizedString(@"nas_picture_icon",nil),
+                          NSLocalizedString(@"nas_video_icon",nil),
+                          NSLocalizedString(@"nas_audio_icon",nil),
+                          NSLocalizedString(@"nas_file_icon",nil)];
+    
+    CGFloat butTopY = 74.0;
+    CGFloat butWidth = 52.0;
+    CGFloat butHeight = 52.0 +20 +5;
+    CGFloat butSpace = (SCREEN_W -16*2 - butWidth*titleArr.count)/5.0;
+    
+    
+    for (int i=0; i<titleArr.count; i++) {
+        UIImageView *imageV = [[UIImageView alloc] init];
+        imageV.image = [UIImage imageNamed:imageArr[i]];
+        imageV.backgroundColor = [UIColor hwColor:@"#F5F6F7"];
+        imageV.layer.cornerRadius = 10;
+        imageV.layer.masksToBounds = YES;
+        [whiteBgView addSubview:imageV];
+        
+        [imageV mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(butSpace + (butWidth+butSpace)*i);
+            make.width.mas_equalTo(butWidth);
+            make.height.mas_equalTo(butWidth);
+            make.top.mas_equalTo(butTopY);
+        }];
+        
+        UILabel *textLabel = [[UILabel alloc] init];
+        textLabel.textAlignment = NSTextAlignmentCenter;
+        textLabel.font = [UIFont systemFontOfSize:14.0];
+        textLabel.textColor = [UIColor hwColor:@"#0A132B"];
+        textLabel.text = titleArr[i];
+        [whiteBgView addSubview:textLabel];
+        
+        [textLabel mas_makeConstraints:^(MASConstraintMaker *make) {
+            make.left.mas_equalTo(butSpace + (butWidth+butSpace)*i);
+            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(butSpace + (butWidth+butSpace)*i);
+            make.width.mas_equalTo(butWidth);
+            make.height.mas_equalTo(butHeight);
+            make.top.mas_equalTo(butTopY);
+        }];
+    }
+    
+}
+
+- (void)setTitleLabelTextFun
+{
+    NSString*title1 = NSLocalizedString(@"NAS_mySpace_title",nil);
+    NSString*title2 = NSLocalizedString(@"NAS_used_Space",nil);
+    NSString*title3 = @"100GB/1T";
+    
+    NSString *fullTitle = [[NSString alloc] initWithFormat:@"%@ %@%@",title1,title2,title3];
+    
+    NSMutableAttributedString *attrStr = [[NSMutableAttributedString alloc] initWithString:fullTitle];
+    NSRange redRange = NSMakeRange([fullTitle rangeOfString:title1].location, [fullTitle rangeOfString:title1].length);
+    UIColor *noteColor =[UIColor hwColor:@"#262626" alpha:1.0];
+    [attrStr addAttribute:NSForegroundColorAttributeName value:noteColor range:redRange];
+    [attrStr addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:16.0] range:redRange];
+    
+    _titleLabel.attributedText = attrStr;
+}
+
+- (void)setProgressFun
+{
+    CGRect frame = _progressBgView.bounds;
+    frame.size.width =  frame.size.width * 0.5;
+    
+    if (!isnan(frame.size.width))
+    {
+        _progressSelectView.frame = frame;
+        _glayer.frame = frame;
+    }
+}
+
+#pragma mark 按钮事件
+- (void)didClickButtonFun:(UIButton*)but
+{
+    NSInteger tag = but.tag;
+    HLog(@"%ld",tag);
+}
+@end

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

@@ -532,3 +532,7 @@
 //1.4.1
 "tabbar_cloud_phone"   = "云手机";
 "tabbar_my_title"   = "我的";
+"NAS_mySpace_title"   = "我的空间";
+"NAS_used_Space"   = "已用空间";
+"NAS_common_used"   = "常用功能";
+