kob 1 месяц назад
Родитель
Сommit
f824fb0fa9

+ 207 - 101
assets/lobbyRes/ui/mail/Mail.prefab

@@ -28,20 +28,20 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 106
+        "__id__": 113
       },
       {
-        "__id__": 108
+        "__id__": 115
       },
       {
-        "__id__": 110
+        "__id__": 117
       },
       {
-        "__id__": 112
+        "__id__": 119
       }
     ],
     "_prefab": {
-      "__id__": 114
+      "__id__": 121
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -143,7 +143,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1624,
-      "height": 750
+      "height": 749.9999999999999
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -291,23 +291,23 @@
         "__id__": 33
       },
       {
-        "__id__": 73
+        "__id__": 80
       },
       {
-        "__id__": 87
+        "__id__": 94
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 101
+        "__id__": 108
       },
       {
-        "__id__": 103
+        "__id__": 110
       }
     ],
     "_prefab": {
-      "__id__": 105
+      "__id__": 112
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -824,17 +824,20 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 68
+        "__id__": 70
       },
       {
-        "__id__": 70
+        "__id__": 72
       },
       {
         "__id__": 49
+      },
+      {
+        "__id__": 74
       }
     ],
     "_prefab": {
-      "__id__": 72
+      "__id__": 79
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -894,7 +897,7 @@
       }
     ],
     "_prefab": {
-      "__id__": 67
+      "__id__": 69
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1241,23 +1244,23 @@
     "_children": [],
     "_active": true,
     "_components": [
-      {
-        "__id__": 60
-      },
       {
         "__id__": 62
       },
       {
         "__id__": 64
+      },
+      {
+        "__id__": 66
       }
     ],
     "_prefab": {
-      "__id__": 66
+      "__id__": 68
     },
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 224.45,
+      "y": 0,
       "z": 0
     },
     "_lrot": {
@@ -1306,15 +1309,18 @@
       },
       {
         "__id__": 57
+      },
+      {
+        "__id__": 59
       }
     ],
     "_prefab": {
-      "__id__": 59
+      "__id__": 61
     },
     "_lpos": {
       "__type__": "cc.Vec3",
       "x": 0,
-      "y": 0,
+      "y": 224.45,
       "z": 0
     },
     "_lrot": {
@@ -1360,7 +1366,7 @@
     "_anchorPoint": {
       "__type__": "cc.Vec2",
       "x": 0.5,
-      "y": 0.5
+      "y": 1
     },
     "_id": ""
   },
@@ -1380,7 +1386,7 @@
     "__prefab": {
       "__id__": 56
     },
-    "_type": 0,
+    "_type": 3,
     "_inverted": false,
     "_segments": 64,
     "_alphaThreshold": 0.1,
@@ -1391,7 +1397,7 @@
     "fileId": "c4ePg9KaFMipSAbzcIqd87"
   },
   {
-    "__type__": "cc.Graphics",
+    "__type__": "cc.Widget",
     "_name": "",
     "_objFlags": 0,
     "__editorExtras__": {},
@@ -1402,6 +1408,42 @@
     "__prefab": {
       "__id__": 58
     },
+    "_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": 105,
+    "_originalHeight": 448.9,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "127J9GBnBF8Jy2dneIqdcr"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 52
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 60
+    },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
     "_dstBlendFactor": 4,
@@ -1412,29 +1454,28 @@
       "b": 255,
       "a": 255
     },
-    "_lineWidth": 1,
-    "_strokeColor": {
-      "__type__": "cc.Color",
-      "r": 0,
-      "g": 0,
-      "b": 0,
-      "a": 255
+    "_spriteFrame": {
+      "__uuid__": "28ed5316-23a1-43be-b1cf-188791c21a8f@f9941",
+      "__expectedType__": "cc.SpriteFrame"
     },
-    "_lineJoin": 2,
-    "_lineCap": 0,
-    "_fillColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 0
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
     },
-    "_miterLimit": 10,
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
     "_id": ""
   },
   {
     "__type__": "cc.CompPrefabInfo",
-    "fileId": "b8YXntj+dD4JzwBL0tok4j"
+    "fileId": "39J/BpytlBe5yaIOF2AEFK"
   },
   {
     "__type__": "cc.PrefabInfo",
@@ -1459,7 +1500,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 61
+      "__id__": 63
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1487,7 +1528,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 63
+      "__id__": 65
     },
     "_alignFlags": 1,
     "_target": null,
@@ -1523,7 +1564,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 65
+      "__id__": 67
     },
     "_resizeMode": 1,
     "_layoutType": 2,
@@ -1587,7 +1628,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 69
+      "__id__": 71
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1615,7 +1656,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 71
+      "__id__": 73
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1650,6 +1691,75 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "eabTapv75D14gorxsLQIMX"
   },
+  {
+    "__type__": "0b9a35TwRxOObQOTJHba6W1",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 33
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 75
+    },
+    "templateType": 2,
+    "tmpNode": null,
+    "tmpPrefab": {
+      "__uuid__": "daa21997-cca8-4abf-925a-f5e72b853fbd",
+      "__expectedType__": "cc.Prefab"
+    },
+    "_slideMode": 1,
+    "pageDistance": 0.3,
+    "pageChangeEvent": {
+      "__id__": 76
+    },
+    "_virtual": true,
+    "cyclic": false,
+    "lackCenter": false,
+    "lackSlide": false,
+    "_updateRate": 0,
+    "frameByFrameRenderNum": 0,
+    "renderEvent": {
+      "__id__": 77
+    },
+    "selectedMode": 0,
+    "selectedEvent": {
+      "__id__": 78
+    },
+    "repeatEventSingle": false,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "5dF7g75q9OnYXAQy7k7tF8"
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": null,
+    "component": "",
+    "_componentId": "",
+    "handler": "",
+    "customEventData": ""
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": {
+      "__id__": 1
+    },
+    "component": "",
+    "_componentId": "82cfbCYFlNIuoooKLizdzZN",
+    "handler": "onRenderMailItem",
+    "customEventData": ""
+  },
+  {
+    "__type__": "cc.ClickEvent",
+    "target": null,
+    "component": "",
+    "_componentId": "",
+    "handler": "",
+    "customEventData": ""
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {
@@ -1673,23 +1783,23 @@
     },
     "_children": [
       {
-        "__id__": 74
+        "__id__": 81
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 80
+        "__id__": 87
       },
       {
-        "__id__": 82
+        "__id__": 89
       },
       {
-        "__id__": 84
+        "__id__": 91
       }
     ],
     "_prefab": {
-      "__id__": 86
+      "__id__": 93
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1726,20 +1836,20 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 73
+      "__id__": 80
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 75
+        "__id__": 82
       },
       {
-        "__id__": 77
+        "__id__": 84
       }
     ],
     "_prefab": {
-      "__id__": 79
+      "__id__": 86
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1776,11 +1886,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 74
+      "__id__": 81
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 76
+      "__id__": 83
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1804,11 +1914,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 74
+      "__id__": 81
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 78
+      "__id__": 85
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1885,11 +1995,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 73
+      "__id__": 80
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 81
+      "__id__": 88
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -1913,11 +2023,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 73
+      "__id__": 80
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 83
+      "__id__": 90
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -1958,11 +2068,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 73
+      "__id__": 80
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 85
+      "__id__": 92
     },
     "clickEvents": [],
     "_interactable": true,
@@ -2031,23 +2141,23 @@
     },
     "_children": [
       {
-        "__id__": 88
+        "__id__": 95
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 94
+        "__id__": 101
       },
       {
-        "__id__": 96
+        "__id__": 103
       },
       {
-        "__id__": 98
+        "__id__": 105
       }
     ],
     "_prefab": {
-      "__id__": 100
+      "__id__": 107
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -2084,20 +2194,20 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
-      "__id__": 87
+      "__id__": 94
     },
     "_children": [],
     "_active": true,
     "_components": [
       {
-        "__id__": 89
+        "__id__": 96
       },
       {
-        "__id__": 91
+        "__id__": 98
       }
     ],
     "_prefab": {
-      "__id__": 93
+      "__id__": 100
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -2134,11 +2244,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 88
+      "__id__": 95
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 90
+      "__id__": 97
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -2162,11 +2272,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 88
+      "__id__": 95
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 92
+      "__id__": 99
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -2243,11 +2353,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 87
+      "__id__": 94
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 95
+      "__id__": 102
     },
     "_contentSize": {
       "__type__": "cc.Size",
@@ -2271,11 +2381,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 87
+      "__id__": 94
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 97
+      "__id__": 104
     },
     "_customMaterial": null,
     "_srcBlendFactor": 2,
@@ -2316,11 +2426,11 @@
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 87
+      "__id__": 94
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 99
+      "__id__": 106
     },
     "clickEvents": [],
     "_interactable": true,
@@ -2389,12 +2499,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 102
+      "__id__": 109
     },
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1624,
-      "height": 750
+      "height": 749.9999999999999
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2417,7 +2527,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 104
+      "__id__": 111
     },
     "_alignFlags": 45,
     "_target": null,
@@ -2466,12 +2576,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 107
+      "__id__": 114
     },
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 1624,
-      "height": 750
+      "height": 749.9999999999999
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -2494,7 +2604,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 109
+      "__id__": 116
     },
     "_alignFlags": 45,
     "_target": null,
@@ -2530,7 +2640,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 111
+      "__id__": 118
     },
     "_id": ""
   },
@@ -2548,7 +2658,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 113
+      "__id__": 120
     },
     "popupMask": {
       "__id__": 9
@@ -2560,17 +2670,13 @@
       "__id__": 19
     },
     "btn_deleteAll": {
-      "__id__": 73
+      "__id__": 80
     },
     "btn_claimAll": {
-      "__id__": 87
-    },
-    "mail_item": {
-      "__uuid__": "daa21997-cca8-4abf-925a-f5e72b853fbd",
-      "__expectedType__": "cc.Prefab"
+      "__id__": 94
     },
-    "mail_content_layout": {
-      "__id__": 51
+    "scrollView": {
+      "__id__": 74
     },
     "_id": ""
   },

+ 28 - 1
assets/lobbyRes/ui/mail/MailItem.prefab

@@ -47,10 +47,13 @@
       },
       {
         "__id__": 106
+      },
+      {
+        "__id__": 108
       }
     ],
     "_prefab": {
-      "__id__": 108
+      "__id__": 110
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -2543,6 +2546,30 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "f13wUPOIFDuYQAEwnx+mJY"
   },
+  {
+    "__type__": "1b1a6QHv5BD47mctEEyV34I",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 109
+    },
+    "icon": null,
+    "title": null,
+    "selectedMode": 0,
+    "selectedFlag": null,
+    "selectedSpriteFrame": null,
+    "adaptiveSize": false,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "93lQ61KmtPAI1Gw/2fNJX9"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {

Разница между файлами не показана из-за своего большого размера
+ 145 - 323
assets/lobbyRes/ui/register/Register.prefab


+ 328 - 23
assets/lobbyRes/ui/resetPsd/ResetPsd.prefab

@@ -28,20 +28,20 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 194
+        "__id__": 206
       },
       {
-        "__id__": 196
+        "__id__": 208
       },
       {
-        "__id__": 198
+        "__id__": 210
       },
       {
-        "__id__": 200
+        "__id__": 212
       }
     ],
     "_prefab": {
-      "__id__": 202
+      "__id__": 214
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -142,8 +142,8 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1624,
-      "height": 749.9999999999999
+      "width": 1624.0000000000002,
+      "height": 750
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -292,19 +292,22 @@
       },
       {
         "__id__": 175
+      },
+      {
+        "__id__": 189
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 189
+        "__id__": 201
       },
       {
-        "__id__": 191
+        "__id__": 203
       }
     ],
     "_prefab": {
-      "__id__": 193
+      "__id__": 205
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -4288,7 +4291,7 @@
   },
   {
     "__type__": "cc.Node",
-    "_name": "btn_green",
+    "_name": "btn_reset",
     "_objFlags": 0,
     "__editorExtras__": {},
     "_parent": {
@@ -4644,22 +4647,321 @@
     "targetOverrides": null,
     "nestedPrefabInstanceRoots": null
   },
+  {
+    "__type__": "cc.Node",
+    "_name": "btn_grey",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [
+      {
+        "__id__": 190
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 196
+      },
+      {
+        "__id__": 198
+      }
+    ],
+    "_prefab": {
+      "__id__": 200
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -6,
+      "y": -237,
+      "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": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "label",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 189
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 191
+      },
+      {
+        "__id__": 193
+      }
+    ],
+    "_prefab": {
+      "__id__": 195
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 3.475,
+      "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": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
   {
     "__type__": "cc.UITransform",
     "_name": "",
     "_objFlags": 0,
     "__editorExtras__": {},
     "node": {
-      "__id__": 12
+      "__id__": 190
     },
     "_enabled": true,
     "__prefab": {
+      "__id__": 192
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 253.21875,
+      "height": 46.32
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "47UkGU2xhAj58PJWtnU8oH"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
       "__id__": 190
     },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 194
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_string": "Reset Password",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 32,
+    "_fontSize": 32,
+    "_fontFamily": "Arial",
+    "_lineHeight": 32,
+    "_overflow": 0,
+    "_enableWrapText": true,
+    "_font": null,
+    "_isSystemFontUsed": true,
+    "_spacingX": 0,
+    "_isItalic": false,
+    "_isBold": true,
+    "_isUnderline": false,
+    "_underlineHeight": 2,
+    "_cacheMode": 0,
+    "_enableOutline": true,
+    "_outlineColor": {
+      "__type__": "cc.Color",
+      "r": 50,
+      "g": 47,
+      "b": 47,
+      "a": 255
+    },
+    "_outlineWidth": 3,
+    "_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": "08f5Q7s2ZH8ZQsJBeAh02J"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "15DfOTGzpK97xG3fprTSxH",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 189
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 197
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 334,
+      "height": 94
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "2cvk6BZfxCtoxk6zsxucfc"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 189
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 199
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "08869bb6-3d15-4eca-a8e2-6c7bca4df725@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_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": "216zq9Z4ZIur1ZZBLedYZC"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "f116Zd2XBBHYK/BJtGZ52g",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 202
+    },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1624,
-      "height": 749.9999999999999
+      "width": 1624.0000000000002,
+      "height": 750
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4682,7 +4984,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 192
+      "__id__": 204
     },
     "_alignFlags": 45,
     "_target": null,
@@ -4731,12 +5033,12 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 195
+      "__id__": 207
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1624,
-      "height": 749.9999999999999
+      "width": 1624.0000000000002,
+      "height": 750
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -4759,7 +5061,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 197
+      "__id__": 209
     },
     "_alignFlags": 45,
     "_target": null,
@@ -4795,7 +5097,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 199
+      "__id__": 211
     },
     "_id": ""
   },
@@ -4813,7 +5115,7 @@
     },
     "_enabled": true,
     "__prefab": {
-      "__id__": 201
+      "__id__": 213
     },
     "popupMask": {
       "__id__": 9
@@ -4821,10 +5123,13 @@
     "popupRoot": {
       "__id__": 12
     },
-    "btnClose": {
+    "btn_close": {
       "__id__": 19
     },
-    "btnReset": {
+    "btn_grey": {
+      "__id__": 189
+    },
+    "btn_reset": {
       "__id__": 175
     },
     "account": {

Разница между файлами не показана из-за своего большого размера
+ 178 - 3948
assets/lobbyRes/ui/seasonPass/SeasonPassView.prefab


+ 28 - 1
assets/lobbyRes/ui/seasonPass/prize/NodeItem.prefab

@@ -35,10 +35,13 @@
       },
       {
         "__id__": 84
+      },
+      {
+        "__id__": 86
       }
     ],
     "_prefab": {
-      "__id__": 86
+      "__id__": 88
     },
     "_lpos": {
       "__type__": "cc.Vec3",
@@ -1978,6 +1981,30 @@
     "__type__": "cc.CompPrefabInfo",
     "fileId": "d6MkVXjwpHk4OOW5y3Pc6I"
   },
+  {
+    "__type__": "1b1a6QHv5BD47mctEEyV34I",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 87
+    },
+    "icon": null,
+    "title": null,
+    "selectedMode": 0,
+    "selectedFlag": null,
+    "selectedSpriteFrame": null,
+    "adaptiveSize": false,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "ffMR9C9zlC0Ja+SKe6K3//"
+  },
   {
     "__type__": "cc.PrefabInfo",
     "root": {

+ 176 - 129
assets/scripts/components/button/OTPButton.ts

@@ -1,8 +1,8 @@
 import { AppKernel } from '@scripts/app/AppKernel';
 import { MailOtpType, OtpType } from '@scripts/store';
 import { checkIsEmail } from '@scripts/utils/Helper';
-import { addBtnClick } from '@scripts/utils/UIHelper';
-import { _decorator, Button, Component, EditBox, Enum, Label, Node } from 'cc';
+import { addBtnClick, removeBtnClick } from '@scripts/utils/UIHelper';
+import { _decorator, Button, Color, Component, EditBox, Enum, Label, Node, Sprite } from 'cc';
 const { ccclass, property } = _decorator;
 
 export enum OTPSendType {
@@ -26,139 +26,141 @@ export class OTPButton extends Component {
     button: Button;
 
     @property(EditBox)
-    account: EditBox;
+    account: EditBox = null;
 
     @property({ type: Enum(OTPSendType) })
     sendType: OTPSendType;
 
     private _sending = false;
-    private _cdTimer;
-    private _account = '';
+    private _cdTimer: () => void = null;
+    // 0A5312
+    private readonly _active_border_color = new Color('#0A5312');
+    private readonly _inactive_border_color = new Color('#000000');
+    // 使用时直接赋值
+
 
     protected onLoad(): void {
-        addBtnClick(this.node, this.onSendCode, this);
+        addBtnClick(this.button, this.onSendCode, this);
+        if (this.account) this.account.node.on(EditBox.EventType.TEXT_CHANGED, this.handleTextChanged, this);
     }
 
-    protected onEnable(): void {
-        this.startTimer();
+    protected onDestroy() {
+        this.stopTimer(); // 新增清理定时器
     }
 
-    protected onDisable(): void {
 
+    protected onEnable(): void {
+        this.updateBtnStatus();
     }
 
     private async onSendCode() {
         if (this._sending) return;
         this._sending = true;
+        AppKernel.ui.loading(true);
 
-        const { mainStore, mailStore } = AppKernel.stores;
-        switch (this.sendType) {
-            case OTPSendType.Register: {
-                const account = this.account.string;
-                if (!account) break;
-
-                const isEmail = checkIsEmail(account);
-                isEmail
-                    ? await mailStore.reqSendCode(account, "register")
-                    : await mainStore.reqSendCode(account);
-
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.ResetPsd: {
-                const account = this.account.string;
-                if (!account) break;
-
-                const isEmail = checkIsEmail(account);
-                isEmail
-                    ? await mailStore.reqSendCode(account, "reset_password")
-                    : await mainStore.reqSendCode(account);
-
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.BindEmail: {
-                const account = this.account.string;
-                if (!account) break;
-
-                await mailStore.reqBindEmailCode({ account });
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.ChangeEmailOld: {
-                const { Email: account } = AppKernel.stores.mainStore.userInfo;
-                if (!account) break;
-
-                await mailStore.reqChangeEmailCode({
-                    account,
-                    target: "old"
-                });
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.ChangeEmailNew: {
-                const account = this.account.string;
-                if (!account) break;
-
-                await mailStore.reqChangeEmailCode({
-                    account,
-                    target: "new"
-                });
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.BindPhone: {
-                const account = this.account.string;
-                if (!account) break;
-
-                await mainStore.reqSendCode(account);
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.ChangePhoneOld: {
-                const { Phone: account } = AppKernel.stores.mainStore.userInfo;
-                if (!account) break;
-
-                await mainStore.reqSendCode(account, true);
-                this._account = account;
-                this.startTimer();
-                break;
-            }
-            case OTPSendType.ChangePhoneNew: {
-                const account = this.account.string;
-                if (!account) break;
-
-                await mainStore.reqSendCode(account);
-                this._account = account;
-                this.startTimer();
-                break;
-            }
+        try {
+            const cd = this.getCurCD();
+            if (cd > 0) return;
 
-            case OTPSendType.Unbind3rdLogin: {
-                const account = this.account.string;
-                if (!account) break;
+            const { mainStore, mailStore } = AppKernel.stores;
+            switch (this.sendType) {
+                case OTPSendType.Register: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    const isEmail = checkIsEmail(account);
+                    isEmail
+                        ? await mailStore.reqSendCode(account, "register")
+                        : await mainStore.reqSendCode(account);
+
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.ResetPsd: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    const isEmail = checkIsEmail(account);
+                    isEmail
+                        ? await mailStore.reqSendCode(account, "reset_password")
+                        : await mainStore.reqSendCode(account);
+
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.BindEmail: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    await mailStore.reqBindEmailCode({ account });
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.ChangeEmailOld: {
+                    const { Email: account } = AppKernel.stores.mainStore.userInfo;
+                    if (!account) break;
+
+                    await mailStore.reqChangeEmailCode({
+                        account,
+                        target: "old"
+                    });
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.ChangeEmailNew: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    await mailStore.reqChangeEmailCode({
+                        account,
+                        target: "new"
+                    });
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.BindPhone: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    await mainStore.reqSendCode(account);
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.ChangePhoneOld: {
+                    const { Phone: account } = AppKernel.stores.mainStore.userInfo;
+                    if (!account) break;
+
+                    await mainStore.reqSendCode(account, true);
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.ChangePhoneNew: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    await mainStore.reqSendCode(account);
+                    this.startTimer();
+                    break;
+                }
+                case OTPSendType.Unbind3rdLogin: {
+                    const account = this.getInputAccount();
+                    if (!account) break;
+
+                    const isEmail = checkIsEmail(account);
+                    await mainStore.reqUnBind3rdCode({
+                        verify_type: isEmail ? "email" : "phone"
+                    });
+                    this.startTimer();
+                    break;
+                }
 
-                const isEmail = checkIsEmail(account);
-                await mainStore.reqUnBind3rdCode({
-                    verify_type: isEmail ? "email" : "phone"
-                });
-                this._account = account;
-                this.startTimer();
-                break;
+                default:
+                    break;
             }
-
-
-            default:
-                break;
+        } finally {
+            AppKernel.ui.loading(false);
+            this._sending = false;
         }
-
-        this._sending = false;
     }
 
     private stopTimer() {
@@ -170,46 +172,83 @@ export class OTPButton extends Component {
 
     private startTimer() {
         this.stopTimer();
-        const cd = this.getCurrentOtpCD();
-        this.button.interactable = cd <= 0;
+        this.updateBtnStatus();
+
+        const cd = this.getCurCD();
         if (cd <= 0) {
-            this.label.string = this.getOptLabel("send");
+            this.label.string = this.getLabel("send");
             return;
         }
 
         this._cdTimer = this.onUpdateCD.bind(this);
-        this.schedule(this._cdTimer, 1, cd)
+        this.schedule(this._cdTimer, 1, cd - 1);
         this.onUpdateCD();
     }
 
     private onUpdateCD() {
-        const cd = this.getCurrentOtpCD();
-
+        const cd = this.getCurCD();
         this.label.string = `${cd}s`;
         console.log('otp cd: ', cd);
         if (cd <= 0) {
             this.stopTimer();
-            this.label.string = this.getOptLabel("resend");
-            this.button.interactable = true;
+            this.label.string = this.getLabel("resend");
+            this.updateBtnStatus();
         }
     }
 
+    private handleTextChanged() {
+        const cd = this.getCurCD();
+        if (cd > 0 && this._cdTimer == null) {//存在cd 但没倒计时
+            this.startTimer();
+        } else if (cd <= 0 && this._cdTimer) {//不存在cd 但有倒计时
+            this.stopTimer();
+            this.label.string = this.getLabel("send");
+            this.updateBtnStatus();
+
+        } else {
+            this.updateBtnStatus();
+        }
+    }
+
+    private updateBtnStatus() {
+        const cd = this.getCurCD();
+        const flag = !this.account || !!this.getInputAccount();
+
+        const isActive = cd <= 0 && flag;
+
+        this.button.interactable = isActive;
+        const sprite = this.button.getComponent(Sprite);
+        if (sprite) sprite.grayscale = !isActive;
+        this.label.outlineColor = isActive
+            ? this._active_border_color
+            : this._inactive_border_color;
+
+    }
 
-    private getCurrentOtpCD() {
-        const account = this._account;
-        if (!account) return 0;
-        const isEmail = checkIsEmail(account);
+
+    private getCurCD() {
         const { mainStore, mailStore } = AppKernel.stores;
         switch (this.sendType) {
-            case OTPSendType.Register:
+            case OTPSendType.Register: {
+                if (this.account == null) return 0;
+                const account = this.getInputAccount();
+                if (!account) return 0;
+                const isEmail = checkIsEmail(account);
                 return isEmail
                     ? mailStore.getOtpCD(MailOtpType.Register)
                     : mainStore.getOtpCD(OtpType.Main);
+            }
+
+            case OTPSendType.ResetPsd: {
+                if (this.account == null) return 0;
+                const account = this.getInputAccount();
+                if (!account) return 0;
 
-            case OTPSendType.ResetPsd:
+                const isEmail = checkIsEmail(account);
                 return isEmail
                     ? mailStore.getOtpCD(MailOtpType.Reset)
                     : mainStore.getOtpCD(OtpType.Main);
+            }
 
             case OTPSendType.BindEmail:
                 return mailStore.getOtpCD(MailOtpType.Bind);
@@ -231,11 +270,11 @@ export class OTPButton extends Component {
                 return mainStore.getOtpCD(OtpType.Unbind3rd);
 
             default:
-                break;
+                return 0;
         }
     }
 
-    private getOptLabel(state: string) {
+    private getLabel(state: string) {
         if (state === "send") {
             switch (this.sendType) {
                 case OTPSendType.BindEmail:
@@ -267,7 +306,15 @@ export class OTPButton extends Component {
             }
 
         }
+
+        return "Send";
     }
+
+    private getInputAccount(): string {
+        if (!this.account) return '';
+        return this.account.string.trim();
+    }
+
 }
 
 

+ 1 - 2
assets/scripts/modules/lobby/ui/LoginView/AutoLogin.ts

@@ -1,6 +1,5 @@
-import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
+import { _decorator, Node } from 'cc';
 import { UIViewID } from '@scripts/define/UIDefine';
-import { UICloseReason } from '@scripts/framework/ui/UILayer';
 import { addBtnClick } from '@scripts/utils/UIHelper';
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';

+ 1 - 3
assets/scripts/modules/lobby/ui/LoginView/LoginSuccess.ts

@@ -1,6 +1,5 @@
-import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
+import { _decorator,  Node } from 'cc';
 import { UIViewID } from '@scripts/define/UIDefine';
-import { UICloseReason } from '@scripts/framework/ui/UILayer';
 import { addBtnClick } from '@scripts/utils/UIHelper';
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
@@ -24,7 +23,6 @@ export class LoginSuccess extends UIPopup {
 
   private async onBtnCloseClick() {
     await AppKernel.appLobby.onLoginSuccess();
-    // AppKernel.ui.close(UIViewID.LoginSuccess);
   }
 
   private onBtnPlayClick() {

+ 20 - 10
assets/scripts/modules/lobby/ui/LoginView/LoginView.ts

@@ -1,9 +1,8 @@
-import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, sys, UITransform } from 'cc';
+import { _decorator, Button, Color, EditBox, instantiate, Label, Node, sys } from 'cc';
 import { UIView } from '@scripts/framework/ui/UIView';
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIViewID } from '@scripts/define/UIDefine';
 import { UICloseReason } from '@scripts/framework/ui/UILayer';
-import { formatCurrency } from '@scripts/utils/Helper';
 import { addBtnClick } from '@scripts/utils/UIHelper';
 
 const { ccclass, property } = _decorator;
@@ -55,6 +54,8 @@ export class LoginView extends UIView {
 
   private listenViews: UIViewID[] = [
     UIViewID.Register,
+    UIViewID.LoginSuccess,
+    UIViewID.AutoLogin,
     UIViewID.ResetPsd,
     UIViewID.Support
   ];
@@ -154,7 +155,7 @@ export class LoginView extends UIView {
 
   protected onOpen(_params: unknown): void | Promise<void> {
     /// 播放完打开动画后 再显示h5 google login btn dom
-    this._googleWebBtn?.setActive(true);
+    this._googleWebBtn?.setActive(this.checkPolicyAgree());
   }
 
   protected onClose(_reason: UICloseReason): void | Promise<void> {
@@ -162,49 +163,53 @@ export class LoginView extends UIView {
   }
 
   protected onDestroy(): void {
-    AppKernel.events.off('open:ui-view', this.handleSubViewOpen, this);
-    AppKernel.events.off('close:ui-view', this.handleSubViewClose, this);
-
     this._googleWebBtn?.clear();
     super.onDestroy();
   }
 
   private async onBtnGuestClick() {
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.loading(true);
     await AppKernel.services.loginService.guestLogin();
     AppKernel.ui.loading(false);
   }
 
   private async onBtnFBClick() {
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.loading(true);
     await AppKernel.services.loginService.fbLogin();
     AppKernel.ui.loading(false);
   }
 
   private async onGoogleWebLogin(res) {
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.loading(true);
     await AppKernel.services.loginService.googleLogin(res);
     AppKernel.ui.loading(false);
   }
 
   private async onBtnGoogleClick() {
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.loading(true);
     await AppKernel.services.loginService.googleLogin();
     AppKernel.ui.loading(false);
   }
 
   private async onBtnAppleClick() {
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.loading(true);
     await AppKernel.services.loginService.iosAuthLogin();
     AppKernel.ui.loading(false);
   }
 
   private onBtnRegisterClick() {
-    // this._googleWebBtn?.setActive(false);
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.open(UIViewID.Register);
   }
 
   private async onBtnLoginClick() {
+    if (!this.checkPolicyAgree()) return;
+
     const account = this.loginAccount.string;
     const password = this.loginPassword.string;
 
@@ -213,12 +218,11 @@ export class LoginView extends UIView {
   }
 
   private onBtnResetPsdClick() {
-    // this._googleWebBtn?.setActive(false);
+    if (!this.checkPolicyAgree()) return;
     AppKernel.ui.open(UIViewID.ResetPsd);
   }
 
   private async onBtnSupportClick() {
-    // this._googleWebBtn?.setActive(false);
     AppKernel.ui.open(UIViewID.Support);
   }
 
@@ -240,6 +244,12 @@ export class LoginView extends UIView {
     const check = check_bg.getChildByName("check") ?? null;
     check.active = !check.active;
     this._policyAgree = check.active;
+    this._googleWebBtn?.setActive(this._policyAgree);
+  }
+
+  private checkPolicyAgree() {
+    if (!this._policyAgree) AppKernel.ui.toast("Read Terms & Privacy Policy first.")
+    return this._policyAgree;
   }
 
 
@@ -260,7 +270,7 @@ export class LoginView extends UIView {
 
   private handleSubViewClose(payload: UIViewID) {
     if (this.listenViews.includes(payload)) {
-      this._googleWebBtn?.setActive(true);
+      this._googleWebBtn?.setActive(this.checkPolicyAgree());
       console.log("LoginView handleSubUIClose", payload);
     }
   }

+ 27 - 65
assets/scripts/modules/lobby/ui/Mail/Mail.ts

@@ -1,12 +1,11 @@
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIViewID } from '@scripts/define/UIDefine';
-import { UIView } from '@scripts/framework/ui/UIView';
 import { addBtnClick } from '@scripts/utils/UIHelper';
-import { _decorator, Component, instantiate, Node, Prefab, NodePool } from 'cc';
+import { _decorator, Node } from 'cc';
 const { ccclass, property } = _decorator;
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
 import { MailItem } from './MailItem';
-import { UICloseReason } from '@scripts/framework/ui/UILayer';
+import VirtualList from '@scripts/components/virtualList/VirtualList';
 
 @ccclass('Mail')
 export class Mail extends UIPopup {
@@ -14,80 +13,48 @@ export class Mail extends UIPopup {
 
     @property(Node)
     private btn_close: Node = null;
+
     @property(Node)
     private btn_deleteAll: Node = null;
+
     @property(Node)
     private btn_claimAll: Node = null;
-    @property(Prefab)
-    private mail_item: Prefab = null;
-    @property(Node)
-    private mail_content_layout: Node = null;
 
-    private _mailList: any[] = [];
-    private _mailItemPool: NodePool = new NodePool();
-    private _usedItems: Node[] = [];
+    @property(VirtualList)
+    private scrollView: VirtualList = null;
+
+    private _store: any = {};
 
     protected async onBeforeOpen(_params: unknown): Promise<boolean> {
-        const mailStore = AppKernel.stores.mailStore;
-        const res = await mailStore.reqMailList();
+        const res = await this._store.reqMailList();
         return res;
     }
 
-    // protected onOpen(_params: unknown): void {
-    //     this.updateMailItems();
-    // }
-
     protected onCreate(): void | Promise<void> {
+        this._store = AppKernel.stores.mailStore;
         AppKernel.events.on('mail:update', this.updateMailItems, this);
         addBtnClick(this.btn_close, this.onBtnCloseClick, this);
         addBtnClick(this.btn_deleteAll, this.onBtnDeleteAllClick, this);
         addBtnClick(this.btn_claimAll, this.onBtnClaimAllClick, this);
     }
 
-    protected onDestroy(): void {
-        AppKernel.events.off('mail:update', this.updateMailItems, this);
-        this._mailItemPool.clear();
-        
-        super.onDestroy();
+    protected onOpen(): void | Promise<void> {
+        const list = this._store.mailList ?? [];
+        this.scrollView.numItems = list.length;
     }
 
-    private updateMailItems() {
-        console.log('updateMailItems');
-        this._mailList = AppKernel.stores.mailStore.mailList;
-        const newMailList = this._mailList ?? [];
-        const layout = this.mail_content_layout;
-        if (!layout) return;
-
-        // 将当前正在使用的item全部回收进对象池
-        for (const node of this._usedItems) {
-            this._mailItemPool.put(node);
-        }
-        this._usedItems.length = 0;
-
-        for (const mailData of newMailList) {
-            let itemNode: Node;
-            if (this._mailItemPool.size() > 0) {
-                itemNode = this._mailItemPool.get();
-            } else {
-                itemNode = instantiate(this.mail_item);
-            }
-            itemNode.active = true;
-            itemNode.parent = layout;
-
-            const mailItemCmp = itemNode.getComponent(MailItem);
-            if (mailItemCmp) {
-                mailItemCmp.initItem(mailData);
-            }
-            this._usedItems.push(itemNode);
-        }
+    onRenderMailItem(item: Node, index: number) {
+        const list = this._store.mailList ?? [];
+        const data = list[index];
+        const mailItem = item.getComponent(MailItem);
+        mailItem.initItem(data);
+        item.active = true;
     }
 
-    // 弹窗关闭,回收节点
-    protected async onAfterClose() {
-        for (const node of this._usedItems) {
-            this._mailItemPool.put(node);
-        }
-        this._usedItems.length = 0;
+    private updateMailItems() {
+        console.log('updateMailItems');
+        this.scrollView.numItems = this._store.mailList.length;
+        if (this.scrollView.checkInited(false)) this.scrollView.updateAll();
     }
 
     private onBtnCloseClick() {
@@ -95,14 +62,12 @@ export class Mail extends UIPopup {
     }
 
     private async onBtnDeleteAllClick() {
-        const { mailStore } = AppKernel.stores;
-
         AppKernel.ui.dialog({
             message: "Delete all selected mails? Cannot be undone.",
             callBack: async (res) => {
                 if (res) {
-                    await mailStore.reqMailDelete(0);
-                    mailStore.reqMailList();
+                    await this._store.reqMailDelete(0);
+                    this._store.reqMailList();
                     console.log("delete all", res);
                 }
                 return true;
@@ -113,15 +78,12 @@ export class Mail extends UIPopup {
     }
 
     private async onBtnClaimAllClick() {
-        const { mailStore } = AppKernel.stores;
-
-
         AppKernel.ui.dialog({
             message: "Claim all mail rewards?",
             callBack: async (res) => {
                 if (res) {
-                    await mailStore.reqMailTake(0);
-                    mailStore.reqMailList();
+                    await this._store.reqMailTake(0);
+                    this._store.reqMailList();
                     console.log("claim all", res);
                 }
                 return true;

+ 55 - 32
assets/scripts/modules/lobby/ui/Register/Register.ts

@@ -1,6 +1,5 @@
-import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
+import { _decorator, EditBox, Node } from 'cc';
 import { UIViewID } from '@scripts/define/UIDefine';
-import { UICloseReason } from '@scripts/framework/ui/UILayer';
 import { addBtnClick } from '@scripts/utils/UIHelper';
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
@@ -13,56 +12,80 @@ export class Register extends UIPopup {
   readonly viewId = UIViewID.Register;
 
   @property(Node)
-  private btnClose: Node = null;
+  private btn_close: Node = null;
 
   @property(Node)
-  private btnSignUp: Node = null;
+  private btn_signup: Node = null;
+
+  @property(Node)
+  private btn_grey: Node = null;
 
   @property(EditBox)
-  account: EditBox;
+  private account: EditBox;
 
   @property(EditBox)
-  code: EditBox;
+  private code: EditBox;
 
   @property(EditBox)
-  psd: EditBox;
+  private psd: EditBox;
 
   @property(EditBox)
-  inviteCode: EditBox;
+  private inviteCode: EditBox;
+
+  private _isSigningUp: boolean = false;
 
 
   protected onCreate(): void | Promise<void> {
-    addBtnClick(this.btnClose, this.onBtnCloseClick, this);
-    addBtnClick(this.btnSignUp, this.onBtnSignUpClick, this);
+    addBtnClick(this.btn_close, this.closeSelf, this);
+    addBtnClick(this.btn_signup, this.onBtnSignUpClick, this);
 
-  }
+    const Event = EditBox.EventType.TEXT_CHANGED;
+    this.account.node.on(Event, this.handleCheckForm, this);
+    this.code.node.on(Event, this.handleCheckForm, this);
+    this.psd.node.on(Event, this.handleCheckForm, this);
+
+    this.btn_signup.active = false;
+    this.btn_grey.active = true;
 
-  private onBtnCloseClick() {
-    AppKernel.ui.close(UIViewID.Register);
-    // const loginView = AppKernel.ui.get(UIViewID.LoginView) as any;
-    // if (loginView && loginView?.enabled) {
-    //   loginView?._googleWebBtn?.setActive(true);
-    // }
   }
 
   private async onBtnSignUpClick() {
-    const account = this.account.string;
-    const code = this.code.string;
-    const password = this.psd.string;
-    const act = this.inviteCode.string;
-
-    if (account && code && password) {
-      const res = checkIsEmail(account)
-        ? await AppKernel.stores.mailStore.reqRegister({ account, code, password, act })
-        : await AppKernel.services.loginService.register({ account, code, password, act });
-
-      if (res) {
-        await AppKernel.services.loginService.loginAccount(account, password);
-        await AppKernel.ui.close(UIViewID.Register);
-        await AppKernel.ui.open(UIViewID.LoginSuccess);
+    if (this._isSigningUp) return;
+    this._isSigningUp = true;
+    AppKernel.ui.loading(true);
+
+    const account = this.account.string.trim();
+    const code = this.code.string.trim();
+    const password = this.psd.string.trim();
+    const act = this.inviteCode.string.trim();
+
+    try {
+      if (account && code && password) {
+        const res = checkIsEmail(account)
+          ? await AppKernel.stores.mailStore.reqRegister({ account, code, password, act })
+          : await AppKernel.services.loginService.register({ account, code, password, act });
+        if (res) {
+          await AppKernel.services.loginService.loginAccount(account, password);
+          await AppKernel.ui.close(UIViewID.Register);
+          await AppKernel.ui.open(UIViewID.LoginSuccess);
+        } else {
+          // log error
+        }
       }
+    } finally {
+      AppKernel.ui.loading(false);
+      this._isSigningUp = false;
     }
   }
 
- 
+  private handleCheckForm() {
+    const account = !!this.account.string.trim();
+    const code = !!this.code.string.trim();
+    const password = !!this.psd.string.trim();
+    const isReady = account && code && password;
+    this.btn_signup.active = isReady;
+    this.btn_grey.active = !isReady;
+  }
+
+
 }

+ 49 - 27
assets/scripts/modules/lobby/ui/ResetPsd/ResetPsd.ts

@@ -1,6 +1,5 @@
-import { _decorator, Button, Color, EditBox, instantiate, Label, Node, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
+import { _decorator, EditBox, Node } from 'cc';
 import { UIViewID } from '@scripts/define/UIDefine';
-import { UICloseReason } from '@scripts/framework/ui/UILayer';
 import { addBtnClick } from '@scripts/utils/UIHelper';
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
@@ -13,10 +12,13 @@ export class ResetPsd extends UIPopup {
   readonly viewId = UIViewID.ResetPsd;
 
   @property(Node)
-  private btnClose: Node = null;
+  private btn_close: Node = null;
 
   @property(Node)
-  private btnReset: Node = null;
+  private btn_grey: Node = null;
+
+  @property(Node)
+  private btn_reset: Node = null;
 
 
   @property(EditBox)
@@ -28,44 +30,64 @@ export class ResetPsd extends UIPopup {
   @property(EditBox)
   psd: EditBox;
 
+  private _isResetting: boolean = false;
 
   protected onCreate(): void | Promise<void> {
-    addBtnClick(this.btnClose, this.onBtnCloseClick, this);
-    addBtnClick(this.btnReset, this.onBtnResetClick, this);
+    addBtnClick(this.btn_close, this.onBtnCloseClick, this);
+    addBtnClick(this.btn_reset, this.onBtnResetClick, this);
+
+    const Event = EditBox.EventType.TEXT_CHANGED;
+    this.account.node.on(Event, this.handleCheckForm, this);
+    this.code.node.on(Event, this.handleCheckForm, this);
+    this.psd.node.on(Event, this.handleCheckForm, this);
   }
 
   private onBtnCloseClick() {
     AppKernel.ui.close(UIViewID.ResetPsd);
-    // const loginView = AppKernel.ui.get(UIViewID.LoginView) as any;
-    // if (loginView && loginView?.enabled) {
-    //   loginView?._googleWebBtn?.setActive(true);
-    // }
   }
 
   private async onBtnResetClick() {
+    if (this._isResetting) return;
+    this._isResetting = true;
+    AppKernel.ui.loading(true);
+
     const account = this.account.string;
     const code = this.code.string;
     const password = this.psd.string;
 
-    if (account && code && password) {
-      const res = checkIsEmail(account)
-        ? await AppKernel.stores.mailStore.reqResetPsd({
-          account,
-          code,
-          newpassword: password
-        })
-        : await AppKernel.stores.mainStore.reqForgetPass({
-          phone: account,
-          code,
-          newpassword: password,
-        });
-
-      if (res) {
-        await AppKernel.services.loginService.loginAccount(account, password);
-        await AppKernel.ui.close(UIViewID.ResetPsd);
-        await AppKernel.ui.open(UIViewID.LoginSuccess);
+    try {
+      if (account && code && password) {
+        const res = checkIsEmail(account)
+          ? await AppKernel.stores.mailStore.reqResetPsd({
+            account,
+            code,
+            newpassword: password
+          })
+          : await AppKernel.stores.mainStore.reqForgetPass({
+            phone: account,
+            code,
+            newpassword: password,
+          });
+
+        if (res) {
+          await AppKernel.services.loginService.loginAccount(account, password);
+          await AppKernel.ui.close(UIViewID.ResetPsd);
+          await AppKernel.ui.open(UIViewID.LoginSuccess);
+        }
       }
+    } finally {
+      AppKernel.ui.loading(false);
+      this._isResetting = false;
     }
 
   }
+
+  private handleCheckForm() {
+    const account = !!this.account.string.trim();
+    const code = !!this.code.string.trim();
+    const password = !!this.psd.string.trim();
+    const isReady = account && code && password;
+    this.btn_reset.active = isReady;
+    this.btn_grey.active = !isReady;
+  }
 }

+ 52 - 107
assets/scripts/modules/lobby/ui/SeasonPassView/SeasonPassView.ts

@@ -1,12 +1,11 @@
-import { _decorator, Button, Color, EditBox, instantiate, Label, Node, NodePool, Prefab, ProgressBar, RichText, Sprite, SpriteFrame, UITransform } from 'cc';
+import { _decorator, instantiate, Label, Node, NodePool, Prefab, ProgressBar } from 'cc';
 import { UIView } from '@scripts/framework/ui/UIView';
 import { AppKernel } from '@scripts/app/AppKernel';
 import { UIViewID } from '@scripts/define/UIDefine';
-import { UICloseReason } from '@scripts/framework/ui/UILayer';
-import { formatCurrency } from '@scripts/utils/Helper';
 import { addBtnClick } from '@scripts/utils/UIHelper';
 import { RewardItem, RewardType } from './Tasks/RewardItem';
 import { NodeItem } from './Prize/NodeItem';
+import VirtualList from '@scripts/components/virtualList/VirtualList';
 
 const { ccclass, property } = _decorator;
 
@@ -23,75 +22,69 @@ export class SeasonPassView extends UIView {
   readonly viewId = UIViewID.SeasonPassView;
 
   @property(Node)
-  btn_close: Node = null;
+  private btn_close: Node = null;
 
   @property(Node)
-  btn_tasks: Node = null;
+  private btn_tasks: Node = null;
 
   @property(Node)
-  btn_prize: Node = null;
+  private btn_prize: Node = null;
 
   @property(Node)
-  btn_buyPass: Node = null;
+  private btn_buyPass: Node = null;
 
   @property(Node)
-  tasks: Node = null;
+  private tasks: Node = null;
 
   @property(Node)
-  prize: Node = null;
+  private prize: Node = null;
 
   @property(Label)
-  season_end: Label = null;
+  private season_end: Label = null;
 
   @property(Label)
-  tasks_daily_done: Label = null;
+  private tasks_daily_done: Label = null;
 
   @property(Label)
-  tasks_daily_reset: Label = null;
+  private tasks_daily_reset: Label = null;
 
   @property(Node)
-  tasks_daily_content: Node = null;
+  private tasks_daily_content: Node = null;
 
   @property(Label)
-  tasks_seasonal_done: Label = null;
+  private tasks_seasonal_done: Label = null;
 
   @property(Label)
-  tasks_seasonal_reset: Label = null;
+  private tasks_seasonal_reset: Label = null;
 
   @property(Node)
-  tasks_seasonal_content: Node = null;
+  private tasks_seasonal_content: Node = null;
 
   @property(Prefab)
-  tasks_reward_item: Prefab = null;
+  private tasks_reward_item: Prefab = null;
 
   @property(Node)
-  prize_content: Node = null;
-
-  @property(Prefab)
-  prize_node_item: Prefab = null;
+  private prize_fixed_dlx: Node = null;
 
   @property(Node)
-  prize_fixed_dlx: Node = null;
+  private redPoint_tasks: Node = null;
 
   @property(Node)
-  redPoint_tasks: Node = null;
-
-  @property(Node)
-  redPoint_prize: Node = null;
+  private redPoint_prize: Node = null;
 
   @property(ProgressBar)
-  progressBar: ProgressBar = null;
+  private progressBar: ProgressBar = null;
 
   @property(Label)
-  progress_label: Label = null;
+  private progress_label: Label = null;
 
   @property(Label)
-  next_need_exp: Label = null;
+  private next_need_exp: Label = null;
 
-  @property(Node)
-  scrollView_content: Node = null;
+  @property(VirtualList)
+  private scrollView: VirtualList;
 
-  private _seasonPassData: any = null;
+  private _store: any = {};
 
   private _dailyItemPool: NodePool = new NodePool();
   private _dailyUsedItems: Node[] = [];
@@ -99,39 +92,44 @@ export class SeasonPassView extends UIView {
   private _seasonalItemPool: NodePool = new NodePool();
   private _seasonalUsedItems: Node[] = [];
 
-  private _prizeItemPool: NodePool = new NodePool();
-  private _prizeUsedItems: Node[] = [];
-
 
 
   protected async onBeforeOpen(_params: unknown): Promise<boolean> {
-    const seasonPassStore = AppKernel.stores.seasonPassStore;
-    const res = await seasonPassStore.reqSeasonPassInfo();
+    const res = await this._store.reqSeasonPassInfo();
     return res;
   }
 
   protected onCreate(): void | Promise<void> {
+    this._store = AppKernel.stores.seasonPassStore;
+
     AppKernel.events.on('seasonPass:update', this.updateSeasonPassView, this);
     AppKernel.events.on('checkIn:update', this.handleCheckInUpdate, this);
     addBtnClick(this.btn_close, this.onBtnCloseClick, this);
     addBtnClick(this.btn_tasks, this.onBtnTasksClick, this);
     addBtnClick(this.btn_prize, this.onBtnPrizeClick, this);
     addBtnClick(this.btn_buyPass, this.onBtnBuyPassClick, this);
+
     this.initView();
   }
 
-  // protected onBeforeClose(_reason: UICloseReason): boolean | Promise<boolean> {
+  onRenderNodeItem(item: Node, index: number) {
+    const { pass } = this._store.data ?? {};
+    const { current_xp, is_deluxe } = pass ?? {};
 
-  //   return true;
-  // }
+    const list = pass?.nodes ?? [];
+    const data = list[index];
+    const nodeItem = item.getComponent(NodeItem);
+    nodeItem.initItem({ node: data, current_xp, is_deluxe });
+    item.active = true;
+  }
 
 
   private handleCheckInUpdate() {
-    AppKernel.stores.seasonPassStore.reqSeasonPassInfo();
+    this._store.reqSeasonPassInfo();
   }
 
   private updateSeasonPassView() {
-    this._seasonPassData = AppKernel.stores.seasonPassStore.seasonPassData;
+    if (this.scrollView.checkInited(false)) this.scrollView.updateAll();
 
     this.updateTasks();
     this.updatePrize();
@@ -140,7 +138,7 @@ export class SeasonPassView extends UIView {
   }
 
   private updateTasks() {
-    const { season_tasks } = this._seasonPassData ?? {};
+    const { season_tasks } = this._store.data ?? {};
 
     this.updateDailyTasks();
     this.updateSeasonalTasks();
@@ -151,7 +149,7 @@ export class SeasonPassView extends UIView {
   }
 
   private updateDailyTasks() {
-    const { tasks, task_end_timestamp } = this._seasonPassData ?? {};
+    const { tasks, task_end_timestamp } = this._store.data ?? {};
     // 将当前正在使用的item全部回收进对象池
     for (const node of this._dailyUsedItems) {
       this._dailyItemPool.put(node);
@@ -182,7 +180,7 @@ export class SeasonPassView extends UIView {
   }
 
   private updateSeasonalTasks() {
-    const { season_tasks } = this._seasonPassData ?? {};
+    const { season_tasks } = this._store.data ?? {};
     for (const node of this._seasonalUsedItems) {
       this._seasonalItemPool.put(node);
     }
@@ -216,29 +214,8 @@ export class SeasonPassView extends UIView {
   }
 
   private updatePrize() {
-    const { pass } = this._seasonPassData ?? {};
+    const { pass } = this._store.data ?? {};
     const { current_xp, is_deluxe } = pass ?? {};
-    // 将当前正在使用的item全部回收进对象池
-    for (const node of this._prizeUsedItems) {
-      this._prizeItemPool.put(node);
-    }
-    this._prizeUsedItems.length = 0;
-
-    for (const node of pass?.nodes ?? []) {
-      let itemNode: Node;
-      if (this._prizeItemPool.size() > 0) {
-        itemNode = this._prizeItemPool.get();
-      } else {
-        itemNode = instantiate(this.prize_node_item);
-      }
-      itemNode.active = true;
-      itemNode.parent = this.prize_content;
-
-      const itemCmp = itemNode.getComponent(NodeItem);
-      if (itemCmp) itemCmp.initItem({ node, current_xp, is_deluxe });
-
-      this._prizeUsedItems.push(itemNode);
-    }
 
     const activeLabel = this.prize_fixed_dlx.getChildByName('label');
     const btn_unlock = this.prize_fixed_dlx.getChildByName('btn_unlock');
@@ -246,10 +223,12 @@ export class SeasonPassView extends UIView {
     activeLabel.active = is_deluxe;
     btn_unlock.active = !is_deluxe;
     lock.active = !is_deluxe;
+
+
   }
 
   private updateRedPoint() {
-    const { tasks, season_tasks, pass } = this._seasonPassData ?? {};
+    const { tasks, season_tasks, pass } = this._store.data ?? {};
 
     const hasTaskReward = tasks?.some(task => task.status === 1) ?? false;
     const hasSeasonalReward = season_tasks?.tasks.some(task => task.status === 1) ?? false;
@@ -275,7 +254,7 @@ export class SeasonPassView extends UIView {
   }
 
   private updateProgress() {
-    const { pass } = this._seasonPassData ?? {};
+    const { pass } = this._store.data ?? {};
     const { current_xp, nodes } = pass ?? {};
     const next_need_exp = nodes?.find(node => node.required_xp > current_xp)?.required_xp;
 
@@ -302,17 +281,12 @@ export class SeasonPassView extends UIView {
     }
     this._seasonalUsedItems.length = 0;
 
-    for (const node of this._prizeUsedItems) {
-      this._prizeItemPool.put(node);
-    }
-    this._prizeUsedItems.length = 0;
   }
 
   // 弹窗销毁,清空池子释放资源
   protected onDestroy(): void {
     this._dailyItemPool.clear();
     this._seasonalItemPool.clear();
-    this._prizeItemPool.clear();
     this.stopAllTimer();
 
     AppKernel.events.off('seasonPass:update', this.updateSeasonPassView, this);
@@ -323,38 +297,6 @@ export class SeasonPassView extends UIView {
 
   private initView() {
     this.onToggleSidebar("tasks");
-
-
-    // const items_data = new Array(10).fill(0);
-    // items_data.forEach((item, index) => {
-    //   const item_DLX = instantiate(this.item_DLX);
-    //   item_DLX.parent = this.item_DLX.parent;
-    //   item_DLX.active = true;
-
-
-    //   const item_free = instantiate(this.item_free);
-    //   item_free.parent = this.item_free.parent;
-    //   item_free.active = true;
-
-
-    //   const item_progress = instantiate(this.item_progress);
-    //   item_progress.parent = this.item_progress.parent;
-    //   item_progress.active = true;
-
-
-    // })
-
-
-    // this.scheduleOnce(() => {
-    //   console.log("item_DLX.parent.width", this.item_DLX.parent.getComponent(UITransform).width)
-    //   console.log("item_free.parent.width", this.item_free.parent.getComponent(UITransform).width)
-
-    //   console.log("item_progress.parent.width", this.item_progress.parent.getComponent(UITransform).width)
-
-    //   this.scrollView_content.getComponent(UITransform).width = this.item_free.parent.getComponent(UITransform).width;
-    // })
-
-
   }
 
   private onBtnCloseClick() {
@@ -380,10 +322,13 @@ export class SeasonPassView extends UIView {
 
   private onBtnPrizeClick() {
     this.onToggleSidebar("prize");
+
+    const data = this._store.data ?? {};
+    this.scrollView.numItems = data?.pass?.nodes?.length ?? 0;
   }
 
   private onBtnBuyPassClick() {
-    const { pass } = this._seasonPassData ?? {};
+    const { pass } = this._store.data ?? {};
     const gear = pass?.purchase_gear;
     if (!gear) return;
 

+ 2 - 2
assets/scripts/store/seasonPassStore/SeasonPassStore.ts

@@ -8,9 +8,9 @@ import { ApiEnvelope, Http } from '../../request';
 import { AppKernel } from '@scripts/app/AppKernel';
 
 class SeasonPassStore {
-    private _seasonPassData = {};
+    private _seasonPassData = {} as any;
 
-    public get seasonPassData() { return this._seasonPassData; }
+    public get data() { return this._seasonPassData; }
 
 
     async reqSeasonPassInfo() {

Некоторые файлы не были показаны из-за большого количества измененных файлов