future 1 năm trước cách đây
mục cha
commit
2d76a2827b

+ 2 - 2
assets/resources/ui/gameplay_view.prefab

@@ -140,7 +140,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -813,7 +813,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1080,
-      "height": 1920.0000000000002
+      "height": 1920
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 1135 - 139
assets/resources/ui/home.prefab


+ 32 - 23
assets/resources/ui/rank.prefab

@@ -1779,7 +1779,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": -38.113,
+      "y": -44.113,
       "z": 0
     },
     "_lrot": {
@@ -1950,8 +1950,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
+      "x": 0.25,
+      "y": 0.25,
       "z": 1
     },
     "_mobility": 0,
@@ -1978,8 +1978,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 170,
-      "height": 168
+      "width": 634,
+      "height": 632
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2015,9 +2015,9 @@
       "a": 255
     },
     "_spriteFrame": null,
-    "_type": 1,
+    "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -2515,7 +2515,7 @@
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": -0.976,
-      "y": -38,
+      "y": -47,
       "z": 0
     },
     "_lrot": {
@@ -2686,8 +2686,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
+      "x": 0.23,
+      "y": 0.23,
       "z": 1
     },
     "_mobility": 0,
@@ -2714,8 +2714,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 150,
-      "height": 148
+      "width": 634,
+      "height": 632
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2753,7 +2753,7 @@
     "_spriteFrame": null,
     "_type": 1,
     "_fillType": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -3422,8 +3422,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
+      "x": 0.21,
+      "y": 0.21,
       "z": 1
     },
     "_mobility": 0,
@@ -3450,8 +3450,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 132,
-      "height": 130
+      "width": 634,
+      "height": 632
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -3489,7 +3489,7 @@
     "_spriteFrame": null,
     "_type": 1,
     "_fillType": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,
@@ -3681,6 +3681,9 @@
     "__prefab": {
       "__id__": 153
     },
+    "one_node": {
+      "__id__": 58
+    },
     "one_lab_name": {
       "__id__": 59
     },
@@ -3693,6 +3696,9 @@
     "one_img_car": {
       "__id__": 77
     },
+    "two_node": {
+      "__id__": 88
+    },
     "two_lab_name": {
       "__id__": 89
     },
@@ -3705,6 +3711,9 @@
     "two_img_car": {
       "__id__": 107
     },
+    "three_node": {
+      "__id__": 118
+    },
     "three_lab_name": {
       "__id__": 119
     },
@@ -5864,8 +5873,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
+      "x": 0.21,
+      "y": 0.21,
       "z": 1
     },
     "_mobility": 0,
@@ -5892,8 +5901,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 132,
-      "height": 130
+      "width": 634,
+      "height": 632
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -5931,7 +5940,7 @@
     "_spriteFrame": null,
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,

+ 9 - 6
assets/resources/ui/rank_list_item.prefab

@@ -889,8 +889,8 @@
     },
     "_lscale": {
       "__type__": "cc.Vec3",
-      "x": 1,
-      "y": 1,
+      "x": 0.2,
+      "y": 0.2,
       "z": 1
     },
     "_mobility": 0,
@@ -917,8 +917,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 132,
-      "height": 130
+      "width": 634,
+      "height": 632
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -953,10 +953,13 @@
       "b": 255,
       "a": 255
     },
-    "_spriteFrame": null,
+    "_spriteFrame": {
+      "__uuid__": "5eb1145a-7c33-447f-bc30-83fe23f76e80@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
     "_type": 0,
     "_fillType": 0,
-    "_sizeMode": 0,
+    "_sizeMode": 1,
     "_fillCenter": {
       "__type__": "cc.Vec2",
       "x": 0,

+ 1535 - 0
assets/resources/ui/user_info_view.prefab

@@ -0,0 +1,1535 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "user_info_view",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "user_info_view",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 10
+      },
+      {
+        "__id__": 52
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 58
+      },
+      {
+        "__id__": 60
+      },
+      {
+        "__id__": 62
+      }
+    ],
+    "_prefab": {
+      "__id__": 64
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "public_bg",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      }
+    ],
+    "_prefab": {
+      "__id__": 9
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 4
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1080,
+      "height": 1920
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9f6mRZ30NMM5xNorh/gNye"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 6
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "433b4378-f731-459b-be68-93cd8b0899a6@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "21Dvw7R0NFO7y1RQm/V6MA"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 8
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 1080,
+    "_originalHeight": 1920,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "56k063xzlC6aDKnB0x1FGc"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "f5qLAXKqdF67DyMsr66s99",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "img_bg",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 11
+      },
+      {
+        "__id__": 17
+      },
+      {
+        "__id__": 23
+      },
+      {
+        "__id__": 29
+      },
+      {
+        "__id__": 35
+      },
+      {
+        "__id__": 41
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 47
+      },
+      {
+        "__id__": 49
+      }
+    ],
+    "_prefab": {
+      "__id__": 51
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 100,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "img_head",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 12
+      },
+      {
+        "__id__": 14
+      }
+    ],
+    "_prefab": {
+      "__id__": 16
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -396.375,
+      "y": 515.262,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 13
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 222,
+      "height": 236
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "5exWyMSnZI8bdpSAvj0q43"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 11
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 15
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "e1a9bdc5-d395-425d-ac86-6389b9fc4c65@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "71XS/i415BJLMut1H9GfGA"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "1ee4zWNh1B2r0Uag4a0I3C",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "lab_region",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 18
+      },
+      {
+        "__id__": 20
+      }
+    ],
+    "_prefab": {
+      "__id__": 22
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 32.829,
+      "y": 613.818,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 17
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 19
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 400,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "eapsY11L1Mz5rXlmkXpdOB"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 17
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 21
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "地区",
+    "_horizontalAlign": 0,
+    "_verticalAlign": 1,
+    "_actualFontSize": 41,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 2,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a3MLP3VX5KloyzqPE8pK32"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "468i8gWtpD9bcuCAbwM8Q4",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "lab_nickname",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 24
+      },
+      {
+        "__id__": 26
+      }
+    ],
+    "_prefab": {
+      "__id__": 28
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 31.999,
+      "y": 497.902,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 25
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 580,
+      "height": 60
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "2dhyp5hKdHrLrnyNRTvSIG"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 27
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "",
+    "_horizontalAlign": 0,
+    "_verticalAlign": 1,
+    "_actualFontSize": 60,
+    "_fontSize": 60,
+    "_fontFamily": "Arial",
+    "_lineHeight": 60,
+    "_overflow": 2,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e25gA4S9dCJ4EKWDiAV4bc"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "59xAaVjDhKJJa+adLM6Zs8",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "img_car",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 30
+      },
+      {
+        "__id__": 32
+      }
+    ],
+    "_prefab": {
+      "__id__": 34
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -17,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 29
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 31
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 634,
+      "height": 632
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e8FOkBnL9JbrzaBHxAKDAd"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 29
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 33
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": null,
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "cbmCK4QFpBeYbZfQ+mu6xt"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "edLMKFeptAl5CMujrcOdpK",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "img_number",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 36
+      },
+      {
+        "__id__": 38
+      }
+    ],
+    "_prefab": {
+      "__id__": 40
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -264.556,
+      "y": -375.993,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 37
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 80,
+      "height": 80
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "28wR+qazlD4qoPBi18E7ST"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 35
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 39
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": null,
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "fbsltRRMRF8qA50S59DJBn"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "f0x3Ni06ZDaKEPrXJemjqR",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "lab_score",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 10
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 42
+      },
+      {
+        "__id__": 44
+      }
+    ],
+    "_prefab": {
+      "__id__": 46
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 207.804,
+      "y": -375.722,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 41
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 43
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 300,
+      "height": 37.8
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "795Z2MI/pJsqPw2QygnCpb"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 41
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 45
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "",
+    "_horizontalAlign": 0,
+    "_verticalAlign": 1,
+    "_actualFontSize": 37,
+    "_fontSize": 40,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 2,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": false,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": false,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_outlineWidth": 2,
+    "_enableShadow": false,
+    "_shadowColor": {
+      "__type__": "cc.Color",
+      "r": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_shadowOffset": {
+      "__type__": "cc.Vec2",
+      "x": 2,
+      "y": 2
+    },
+    "_shadowBlur": 2,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "83tm8aedJCmbLmCWBR0UQF"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "09r1WM+VxAgqYJvD9dK7CN",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 48
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1060,
+      "height": 1313
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "4fvr7Q9h9CZoUPWr3EPz15"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 10
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 50
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "98919cbb-068e-4fdc-8bbd-a3387a62c146@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "04cLs0kZ1M3YSD+8pqVsLW"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b84XHdUqBElpcdScNMh6oN",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btn_close",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 53
+      },
+      {
+        "__id__": 55
+      }
+    ],
+    "_prefab": {
+      "__id__": 57
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -654,
+      "z": 0
+    },
+    "_lrot": {
+      "__type__": "cc.Quat",
+      "x": 0,
+      "y": 0,
+      "z": 0,
+      "w": 1
+    },
+    "_lscale": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": 1,
+      "z": 1
+    },
+    "_mobility": 0,
+    "_layer": 33554432,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 52
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 54
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 99,
+      "height": 101
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "76hhd3EolC7o3OwMn3uGZk"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 52
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 56
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "da183f68-0bf6-4ff1-98b2-e3ead70f6b96@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 0,
+    "_fillType": 0,
+    "_sizeMode": 1,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c4OwnU7GNOi66xXRmsf5/a"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "11E332NQZKjLr5JR3FZ3FG",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 59
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1080,
+      "height": 1920
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "314Pl2A4tJeLCpz/m88mMe"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 61
+    },
+    "_alignFlags": 45,
+    "_target": null,
+    "_left": 0,
+    "_right": 0,
+    "_top": 0,
+    "_bottom": 0,
+    "_horizontalCenter": 0,
+    "_verticalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 100,
+    "_originalHeight": 100,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "41ofYZtuNAUZV3oXFvPvo5"
+  },
+  {
+    "__type__": "8211dcWp2dIRrPXKp1oJZAK",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 63
+    },
+    "btn_close": {
+      "__id__": 52
+    },
+    "img_head": {
+      "__id__": 11
+    },
+    "lab_region": {
+      "__id__": 17
+    },
+    "lab_nickname": {
+      "__id__": 23
+    },
+    "img_car": {
+      "__id__": 29
+    },
+    "img_number": {
+      "__id__": 35
+    },
+    "lab_score": {
+      "__id__": 41
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "45A/rwpcpLFb1jKVDIbLDg"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "c46/YsCPVOJYA4mWEpNYRx",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/resources/ui/user_info_view.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "ee479555-18c0-43d9-a923-ce207caab546",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "user_info_view"
+  }
+}

+ 1 - 0
assets/script/config.ts

@@ -94,6 +94,7 @@ export class config  {
         ui_gameplay_view:"ui/gameplay_view",
         ui_select_area:"ui/select_area",
         ui_unLock_view:"ui/unLock_view",
+        ui_user_info_view:"ui/user_info_view",
         loading_view:"ui/loading_view",
         home:"ui/home",
         rank:"ui/rank",

+ 2 - 0
assets/script/data.ts

@@ -68,6 +68,8 @@ export class rankData{
     public license_code:string = "" //车牌号
     public car_id:number = 1 // 当前汽车图片id
     public car_url:string = "" //	当前汽车图片
+    public province_name:string = ""//省名字
+    public city_name:string = ""//市名字
 }
 
 export class user_car_list{

+ 0 - 14
assets/script/tools.ts

@@ -89,20 +89,6 @@ export class tools  {
                 console.log("rankList err",err)
             }
         })
-        // let opt = {'stype': stype}
-        // http.post(config.API.user_ranking, opt, (err,d)=>{
-        //     if(!err){
-        //         console.log('排行=',d)
-        //         let data = JSON.parse(d)
-        //         if(data.code===config.status.SUCCESS){
-        //             if(cb!=null) {
-        //                 cb(data.content)
-        //             }
-        //         }
-        //     } else{
-        //         console.log("user rank Data err",err)
-        //     }
-        // })
     }
 }
 

+ 27 - 13
assets/script/ui/home/home_bottom.ts

@@ -2,7 +2,8 @@ import { _decorator, Component, Node, Sprite } from 'cc';
 import { uiManager } from '../../manager/uiManager';
 import { config } from '../../config';
 import { tools } from '../../tools';
-import { imageCacheManager } from '../../manager/imageCacheManager';
+import { user_info_view } from '../user_info_view/user_info_view';
+import { home_bottom_rank_item } from './home_bottom_rank_item';
 const { ccclass, property } = _decorator;
 
 @ccclass('home_bottom')
@@ -10,40 +11,53 @@ export class home_bottom extends Component {
     @property(Node) btn_up_rank:Node = null
     @property(Node) btn_wenhao:Node = null
     @property(Node) btn_gengduo:Node = null
-    @property(Node) img_rank_car_1:Node = null
-    @property(Node) img_rank_car_2:Node = null
-    @property(Node) img_rank_car_3:Node = null
+    @property(Node) rank1_node:Node = null
+    @property(Node) rank2_node:Node = null
+    @property(Node) rank3_node:Node = null
+    @property(Node) btn_wuxiancishu:Node = null
     start() {
         uiManager.Instance().onButtonListen(this.btn_up_rank, ()=>{
             uiManager.Instance().showUi(config.UI.rank)
         })
         uiManager.Instance().onButtonListen(this.btn_wenhao, ()=>{
-            uiManager.Instance().showUi(config.UI.ui_unLock_view)
+            uiManager.Instance().showUi(config.UI.ui_gameplay_view)
         })
         uiManager.Instance().onButtonListen(this.btn_gengduo, ()=>{
             uiManager.Instance().showUi(config.UI.rank)
         })
+        uiManager.Instance().onButtonListen(this.btn_wuxiancishu, ()=>{
+            uiManager.Instance().showUi(config.UI.ui_unLock_view)
+        })
     }
 
     public init() {
-
+        
     }
     
     public reloadCountryRankData(){
         tools.requestRankList(0, (d_content)=>{
-            let data = null
             if(d_content.length>0) {
-                data = d_content[0]
-                this.img_rank_car_1.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.car_id)
+                let rank_data = d_content[0]
+                this.rank1_node.getComponent(home_bottom_rank_item).initView(rank_data, this.onClickRankGotoUserInfo.bind(this))
             } else if(d_content.length>1) {
-                data = d_content[1]
-                this.img_rank_car_2.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.car_id)
+                let rank_data = d_content[1]
+                this.rank2_node.getComponent(home_bottom_rank_item).initView(rank_data, this.onClickRankGotoUserInfo.bind(this))
             } else if(d_content.length>2) {
-                data = d_content[2]
-                this.img_rank_car_3.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.car_id)
+                let rank_data = d_content[2]
+                this.rank3_node.getComponent(home_bottom_rank_item).initView(rank_data, this.onClickRankGotoUserInfo.bind(this))
             }
         })
     }
+
+    private onClickRankGotoUserInfo(item:home_bottom_rank_item) {
+        let data = item.getData()
+        if(data == null) {
+            return
+        }
+        uiManager.Instance().showUi(config.UI.ui_user_info_view, null, (node:Node)=>{
+            node.getComponent(user_info_view).initView(data)
+        })
+    }
 }
 
 

+ 34 - 0
assets/script/ui/home/home_bottom_rank_item.ts

@@ -0,0 +1,34 @@
+import { _decorator, Component, Label, Node, Sprite } from 'cc';
+import { uiManager } from '../../manager/uiManager';
+import { rankData } from '../../data';
+import { imageCacheManager } from '../../manager/imageCacheManager';
+const { ccclass, property } = _decorator;
+
+@ccclass('home_bottom_rank_item')
+export class home_bottom_rank_item extends Component {
+    @property(Node) img_car:Node = null
+    @property(Node) lab_nickname:Node = null
+    @property(Node) lab_score:Node = null
+    private m_data:rankData = null
+    private m_cb = null
+    protected start(): void {
+        uiManager.Instance().onButtonListen(this.node, ()=>{
+            if(this.m_cb!=null) {
+                this.m_cb(this)
+            }
+        })
+    }
+
+    public initView(data:rankData, cb) {
+        this.m_data = data
+        this.m_cb = cb
+        this.img_car.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.car_id)
+        this.lab_nickname.getComponent(Label).string = data.nickName
+        this.lab_score.getComponent(Label).string = data.score + '分'
+    }
+
+    public getData():rankData {
+        return this.m_data
+    }
+}
+

+ 9 - 0
assets/script/ui/home/home_bottom_rank_item.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "64d3d1bc-1416-4795-80ad-a299e9c8a7d8",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 1 - 1
assets/script/ui/home/home_top.ts

@@ -22,7 +22,7 @@ export class home_top extends Component {
             })
         })
         uiManager.Instance().onButtonListen(this.btn_gong_gao,()=>{
-            uiManager.Instance().showUi(config.UI.ui_unLock_view)
+            uiManager.Instance().showUi(config.UI.ui_announcement)
         })
         uiManager.Instance().onButtonListen(this.btn_setting,()=>{
             uiManager.Instance().showUi(config.UI.ui_setting)

+ 15 - 1
assets/script/ui/rank/rank_list_item.ts

@@ -2,18 +2,32 @@ import { _decorator, Component, Label, Node, Sprite, UITransform } from 'cc';
 import { rankData } from '../../data';
 import { tools } from '../../tools';
 import { imageCacheManager } from '../../manager/imageCacheManager';
+import { uiManager } from '../../manager/uiManager';
+import { config } from '../../config';
+import { user_info_view } from '../user_info_view/user_info_view';
+import { base_ui } from '../../fw/base_ui';
 const { ccclass, property } = _decorator;
 
 @ccclass('rank_list_item')
-export class rank_list_item extends Component {
+export class rank_list_item extends base_ui {
     @property(Node) lab_number:Node = null;
     @property(Node) img_avatar:Node = null;
     @property(Node) lab_nickname:Node = null;
     @property(Node) lab_car_number:Node = null;
     @property(Node) lab_score:Node = null;
     @property(Node) img_car:Node = null;
+    private m_data:rankData = null
+
+    protected start(): void {
+        this.onButtonListen(this.node, ()=>{
+            uiManager.Instance().showUi(config.UI.ui_user_info_view, null, (node:Node)=>{
+                node.getComponent(user_info_view).initView(this.m_data)
+            })
+        })
+    }
 
     initView(data:rankData, index) {
+        this.m_data = data
         this.lab_number.getComponent(Label).string = index+1 + ''
         tools.loadRemoteImg(data.avatarUrl, (r)=>{
             this.img_avatar.getComponent(Sprite).spriteFrame = r.sf

+ 49 - 18
assets/script/ui/rank/rank_list_top.ts

@@ -1,46 +1,70 @@
 import { _decorator, Component, Label, Node, Sprite } from 'cc';
 import { rankData } from '../../data';
 import { tools } from '../../tools';
+import { imageCacheManager } from '../../manager/imageCacheManager';
+import { base_ui } from '../../fw/base_ui';
+import { uiManager } from '../../manager/uiManager';
+import { config } from '../../config';
+import { user_info_view } from '../user_info_view/user_info_view';
 const { ccclass, property } = _decorator;
 
 @ccclass('rank_list_top')
-export class rank_list_top extends Component {
+export class rank_list_top extends base_ui {
+    @property(Node) one_node = null;
     @property(Node) one_lab_name:Node = null;
     @property(Node) one_img_avatar:Node = null;
     @property(Node) one_lab_score:Node = null;
     @property(Node) one_img_car:Node = null;
 
+    @property(Node) two_node = null;
     @property(Node) two_lab_name:Node = null;
     @property(Node) two_img_avatar:Node = null;
     @property(Node) two_lab_score:Node = null;
     @property(Node) two_img_car:Node = null;
 
+    @property(Node) three_node = null;
     @property(Node) three_lab_name:Node = null;
     @property(Node) three_img_avatar:Node = null;
     @property(Node) three_lab_score:Node = null;
     @property(Node) three_img_car:Node = null;
 
+    private m_one_data:rankData = null
+    private m_two_data:rankData = null
+    private m_three_data:rankData = null
+
+    protected start(): void {
+        this.onButtonListen(this.one_node, ()=>{
+            this.onClickRankGotoUserInfo(this.m_one_data)
+        })
+        this.onButtonListen(this.two_node, ()=>{
+            this.onClickRankGotoUserInfo(this.m_two_data)
+        })
+        this.onButtonListen(this.three_node, ()=>{
+            this.onClickRankGotoUserInfo(this.m_three_data)
+        })
+    }
+
     initView(data_list:rankData[]) {
         if(data_list.length>0) {
-            let one_data = data_list[0]
-            this.setLabName(this.one_lab_name, one_data)
-            this.setImgAvatar(this.one_img_avatar, one_data)
-            this.setLabScore(this.one_lab_score, one_data)
-            this.setImgCar(this.one_img_car, one_data)
+            this.m_one_data = data_list[0]
+            this.setLabName(this.one_lab_name, this.m_one_data)
+            this.setImgAvatar(this.one_img_avatar, this.m_one_data)
+            this.setLabScore(this.one_lab_score, this.m_one_data)
+            this.setImgCar(this.one_img_car, this.m_one_data)
         } 
         if(data_list.length>1) {
-            let two_data = data_list[1]
-            this.setLabName(this.two_lab_name, two_data)
-            this.setImgAvatar(this.two_img_avatar, two_data)
-            this.setLabScore(this.two_lab_score, two_data)
-            this.setImgCar(this.two_img_car, two_data)
+            this.m_two_data = data_list[1]
+            this.setLabName(this.two_lab_name, this.m_two_data)
+            this.setImgAvatar(this.two_img_avatar, this.m_two_data)
+            this.setLabScore(this.two_lab_score, this.m_two_data)
+            this.setImgCar(this.two_img_car, this.m_two_data)
         }
         if(data_list.length>2) {
-            let three_data = data_list[2]
-            this.setLabName(this.three_lab_name, three_data)
-            this.setImgAvatar(this.three_img_avatar, three_data)
-            this.setLabScore(this.three_lab_score, three_data)
-            this.setImgCar(this.three_img_car, three_data)
+            this.m_three_data = data_list[2]
+            this.setLabName(this.three_lab_name, this.m_three_data)
+            this.setImgAvatar(this.three_img_avatar, this.m_three_data)
+            this.setLabScore(this.three_lab_score, this.m_three_data)
+            this.setImgCar(this.three_img_car, this.m_three_data)
         }
     }
 
@@ -59,8 +83,15 @@ export class rank_list_top extends Component {
     }
 
     private setImgCar(node:Node, data:rankData) {
-        tools.loadRemoteImg(data.car_url, (r)=>{
-            node.getComponent(Sprite).spriteFrame = r.sf
+        node.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.car_id)
+    }
+
+    private onClickRankGotoUserInfo(data:rankData) {
+        if(data == null) {
+            return
+        }
+        uiManager.Instance().showUi(config.UI.ui_user_info_view, null, (node:Node)=>{
+            node.getComponent(user_info_view).initView(data)
         })
     }
 }

+ 9 - 0
assets/script/ui/user_info_view.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "beef623e-ed17-4742-8aea-9055cf8c5555",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 34 - 0
assets/script/ui/user_info_view/user_info_view.ts

@@ -0,0 +1,34 @@
+import { _decorator, Component, Label, Node, Sprite } from 'cc';
+import { base_ui } from '../../fw/base_ui';
+import { rankData } from '../../data';
+import { tools } from '../../tools';
+import { imageCacheManager } from '../../manager/imageCacheManager';
+const { ccclass, property } = _decorator;
+
+@ccclass('user_info_view')
+export class user_info_view extends base_ui {
+    @property(Node) btn_close:Node = null
+    @property(Node) img_head:Node = null
+    @property(Node) lab_region:Node = null
+    @property(Node) lab_nickname:Node = null
+    @property(Node) img_car:Node = null
+    @property(Node) img_number:Node = null
+    @property(Node) lab_score:Node = null
+    start() {
+        this.btn_close.on(Node.EventType.TOUCH_END, ()=>{
+            this.close()
+        })
+    }
+
+    initView(data:rankData) {
+        tools.loadRemoteImg(data.avatarUrl, (d)=>{
+            this.img_head.getComponent(Sprite).spriteFrame = d.sf
+        })
+        this.lab_region.getComponent(Label).string = data.province_name + ' - ' + data.city_name
+        this.lab_nickname.getComponent(Label).string = data.nickName
+        this.img_car.getComponent(Sprite).spriteFrame = imageCacheManager.getRankCarImageById(data.car_id)
+        this.lab_score.getComponent(Label).string = data.score + '分'
+
+    }
+}
+

+ 9 - 0
assets/script/ui/user_info_view/user_info_view.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.23",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "8211d716-a767-4846-b3d7-2a9d6825900a",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 9 - 0
assets/texture/ui/user_info_view.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "b456c361-a79a-409b-9972-0d8ffba70a1a",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

BIN
assets/texture/ui/user_info_view/user_info_bg.png


+ 134 - 0
assets/texture/ui/user_info_view/user_info_bg.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.26",
+  "importer": "image",
+  "imported": true,
+  "uuid": "98919cbb-068e-4fdc-8bbd-a3387a62c146",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "98919cbb-068e-4fdc-8bbd-a3387a62c146@6c48a",
+      "displayName": "user_info_bg",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "98919cbb-068e-4fdc-8bbd-a3387a62c146",
+        "isUuid": true,
+        "visible": false,
+        "minfilter": "linear",
+        "magfilter": "linear",
+        "mipfilter": "none",
+        "anisotropy": 0
+      },
+      "ver": "1.0.22",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    },
+    "f9941": {
+      "importer": "sprite-frame",
+      "uuid": "98919cbb-068e-4fdc-8bbd-a3387a62c146@f9941",
+      "displayName": "user_info_bg",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimType": "auto",
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": -1,
+        "offsetY": -0.5,
+        "trimX": 2,
+        "trimY": 3,
+        "width": 1060,
+        "height": 1313,
+        "rawWidth": 1066,
+        "rawHeight": 1318,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -530,
+            -656.5,
+            0,
+            530,
+            -656.5,
+            0,
+            -530,
+            656.5,
+            0,
+            530,
+            656.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            2,
+            1315,
+            1062,
+            1315,
+            2,
+            2,
+            1062,
+            2
+          ],
+          "nuv": [
+            0.001876172607879925,
+            0.0015174506828528073,
+            0.9962476547842402,
+            0.0015174506828528073,
+            0.001876172607879925,
+            0.9977238239757208,
+            0.9962476547842402,
+            0.9977238239757208
+          ],
+          "minPos": [
+            -530,
+            -656.5,
+            0
+          ],
+          "maxPos": [
+            530,
+            656.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "98919cbb-068e-4fdc-8bbd-a3387a62c146@6c48a",
+        "atlasUuid": ""
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "hasAlpha": true,
+    "fixAlphaTransparencyArtifacts": false,
+    "redirect": "98919cbb-068e-4fdc-8bbd-a3387a62c146@f9941"
+  }
+}

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác