Просмотр исходного кода

RedAnt Mobile 添加测试数据

Ray Zhang 8 лет назад
Родитель
Сommit
93de959b74

+ 4 - 0
RedAnt Mobile/RedAnt Mobile.xcodeproj/project.pbxproj

@@ -100,6 +100,8 @@
 		42DFAE781F9B2CBD009AFCCC /* Phone_Signature_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Phone_Signature_Cell.xib; sourceTree = "<group>"; };
 		42DFAE781F9B2CBD009AFCCC /* Phone_Signature_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Phone_Signature_Cell.xib; sourceTree = "<group>"; };
 		42DFAE7A1F9B2CE6009AFCCC /* Phone_Switch_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Phone_Switch_Cell.xib; sourceTree = "<group>"; };
 		42DFAE7A1F9B2CE6009AFCCC /* Phone_Switch_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Phone_Switch_Cell.xib; sourceTree = "<group>"; };
 		42DFAE7C1F9B2D02009AFCCC /* Phone_TextView_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Phone_TextView_Cell.xib; sourceTree = "<group>"; };
 		42DFAE7C1F9B2D02009AFCCC /* Phone_TextView_Cell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = Phone_TextView_Cell.xib; sourceTree = "<group>"; };
+		71CB70B01FA1BA5E009FDCB7 /* data.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = data.json; sourceTree = "<group>"; };
+		71CB70B11FA1BA5E009FDCB7 /* layout.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = layout.json; sourceTree = "<group>"; };
 		71E9F6C61F8C5CCA0052C78E /* NetworkUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = NetworkUtils.m; path = ../../common/NetworkUtils.m; sourceTree = "<group>"; };
 		71E9F6C61F8C5CCA0052C78E /* NetworkUtils.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = NetworkUtils.m; path = ../../common/NetworkUtils.m; sourceTree = "<group>"; };
 		71E9F6C71F8C5CCA0052C78E /* NetworkUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = NetworkUtils.h; path = ../../common/NetworkUtils.h; sourceTree = "<group>"; };
 		71E9F6C71F8C5CCA0052C78E /* NetworkUtils.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = NetworkUtils.h; path = ../../common/NetworkUtils.h; sourceTree = "<group>"; };
 		71F3A99D1F5F8E22001036C8 /* RedAnt Mobile.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RedAnt Mobile.app"; sourceTree = BUILT_PRODUCTS_DIR; };
 		71F3A99D1F5F8E22001036C8 /* RedAnt Mobile.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "RedAnt Mobile.app"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -410,6 +412,8 @@
 			children = (
 			children = (
 				71F3A9B71F5F8E73001036C8 /* ResultViewController.h */,
 				71F3A9B71F5F8E73001036C8 /* ResultViewController.h */,
 				71F3A9B81F5F8E73001036C8 /* ResultViewController.m */,
 				71F3A9B81F5F8E73001036C8 /* ResultViewController.m */,
+				71CB70B01FA1BA5E009FDCB7 /* data.json */,
+				71CB70B11FA1BA5E009FDCB7 /* layout.json */,
 				71F3A9BB1F5F8EAE001036C8 /* FullyShowViewController.h */,
 				71F3A9BB1F5F8EAE001036C8 /* FullyShowViewController.h */,
 				71F3A9BC1F5F8EAE001036C8 /* FullyShowViewController.m */,
 				71F3A9BC1F5F8EAE001036C8 /* FullyShowViewController.m */,
 			);
 			);

BIN
RedAnt Mobile/RedAnt Mobile.xcodeproj/project.xcworkspace/xcuserdata/ray.xcuserdatad/UserInterfaceState.xcuserstate


+ 31 - 0
RedAnt Mobile/RedAnt Mobile/data.json

@@ -0,0 +1,31 @@
+ {
+    "count": 4,
+    "item_0": [
+               "1",
+               "8533-UPK",
+               "$ 123.45",
+               "43",
+               "metal table with 4 chairs"
+               ],
+     "item_1": [
+                "2",
+                "315318",
+                "$ 99.49",
+                "13",
+                "WOOD table with 4 chairs"
+                ],
+     "item_2": [
+                "3",
+                "7033566",
+                "$ 13.45",
+                "57",
+                "bed"
+                ],
+     "item_3": [
+                "4",
+                "8533-UVR",
+                "$ 1123.45",
+                "143",
+                "Desk & chair UILongPressGestureRecognizer *longPress"
+                ]
+}

+ 91 - 0
RedAnt Mobile/RedAnt Mobile/layout.json

@@ -0,0 +1,91 @@
+{
+    "header": {
+        "width": 810,
+        "height": 44,
+        "margin_r":10,
+        "margin_l":10,
+        "margin_t":10,
+        "margin_b":10,
+        "bg_color": "0x123456",
+        "f_color": "0x987654",
+        "col": [
+                {
+                "width": 100,
+                "name": "id",
+                "h_align": "center",
+                "v_center": "center",
+
+                },
+                {
+                "width": 160,
+                "name": "model",
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "width": 180,
+                "name": "price",
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "width": 120,
+                "name": "stock",
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "width": 250,
+                "name": "description",
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                }
+                ]
+    },
+    "row": {
+        "height": 44,
+        "f_color": "0x654321",
+        "color_0": "0xffffff",
+        "color_1": "0x666666",
+        "val": [
+                {
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                },
+                {
+                "h_align": "center",
+                "v_center": "center",
+                "bg_color": "0x123456",
+                "f_color": "0x654321"
+                }
+                ]
+    }
+}