Jelajahi Sumber

邀请、在线客服

baxi 1 bulan lalu
induk
melakukan
431f0cc3a3
45 mengubah file dengan 3444 tambahan dan 373 penghapusan
  1. TEMPAT SAMPAH
      assets/lobbyRes/textures/dialog/support/CONTACTUS.png
  2. 134 0
      assets/lobbyRes/textures/dialog/support/CONTACTUS.png.meta
  3. TEMPAT SAMPAH
      assets/lobbyRes/textures/dialog/support/Howcanwehelp-.png
  4. 134 0
      assets/lobbyRes/textures/dialog/support/Howcanwehelp-.png.meta
  5. TEMPAT SAMPAH
      assets/lobbyRes/textures/dialog/support/img_icon.png
  6. 134 0
      assets/lobbyRes/textures/dialog/support/img_icon.png.meta
  7. 250 347
      assets/lobbyRes/ui/invite/UIInvite.prefab
  8. 6 3
      assets/lobbyRes/ui/invite/UIInviteBind.prefab
  9. 1787 0
      assets/lobbyRes/ui/support/SupportChat.prefab
  10. 13 0
      assets/lobbyRes/ui/support/SupportChat.prefab.meta
  11. 4 1
      assets/scripts/api/LobbyApi.ts
  12. 6 2
      assets/scripts/api/PaymentApi.ts
  13. 1 0
      assets/scripts/app/AppEvents.ts
  14. 6 0
      assets/scripts/define/UIDefine.ts
  15. 14 1
      assets/scripts/i18n/en/en1.ts
  16. 5 5
      assets/scripts/modules/lobby/LobbyController.ts
  17. 1 1
      assets/scripts/modules/lobby/ui/HomeView/HomeView.ts
  18. 47 0
      assets/scripts/modules/lobby/ui/Support/SupportChat.ts
  19. 1 0
      assets/scripts/modules/lobby/ui/Support/SupportChat.ts.meta
  20. 166 3
      assets/scripts/modules/lobby/ui/invite/UIInvite.ts
  21. 28 1
      assets/scripts/modules/lobby/ui/invite/UIInviteBind.ts
  22. 35 5
      assets/scripts/modules/lobby/ui/invite/UIInviteSpin.ts
  23. 9 0
      assets/scripts/platform/SsqChat.meta
  24. 9 0
      assets/scripts/platform/SsqChat.ts.meta
  25. 32 0
      assets/scripts/platform/SsqChat/ISsqChatImpl.ts
  26. 9 0
      assets/scripts/platform/SsqChat/ISsqChatImpl.ts.meta
  27. 80 0
      assets/scripts/platform/SsqChat/SsqChatH5.ts
  28. 9 0
      assets/scripts/platform/SsqChat/SsqChatH5.ts.meta
  29. 66 0
      assets/scripts/platform/SsqChat/SsqChatH5Native.ts
  30. 9 0
      assets/scripts/platform/SsqChat/SsqChatH5Native.ts.meta
  31. 6 0
      assets/scripts/platform/SsqChat/ssqChat.ts
  32. 9 0
      assets/scripts/platform/SsqChat/ssqChat.ts.meta
  33. 1 1
      assets/scripts/services/AppLobby.ts
  34. 1 0
      assets/scripts/store/index.ts
  35. 9 0
      assets/scripts/store/inviteStore.meta
  36. 75 0
      assets/scripts/store/inviteStore/InviteStore.ts
  37. 9 0
      assets/scripts/store/inviteStore/InviteStore.ts.meta
  38. 153 0
      assets/scripts/store/inviteStore/data.ts
  39. 9 0
      assets/scripts/store/inviteStore/data.ts.meta
  40. 5 0
      assets/scripts/store/mainStore/MainStore.ts
  41. 8 0
      assets/scripts/store/payStore/PayStore.ts
  42. 8 0
      assets/scripts/store/payStore/data.ts
  43. 79 3
      assets/scripts/utils/Helper.ts
  44. 68 0
      assets/scripts/utils/PagingData.ts
  45. 9 0
      assets/scripts/utils/PagingData.ts.meta

TEMPAT SAMPAH
assets/lobbyRes/textures/dialog/support/CONTACTUS.png


+ 134 - 0
assets/lobbyRes/textures/dialog/support/CONTACTUS.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.27",
+  "importer": "image",
+  "imported": true,
+  "uuid": "ae37b5d1-e528-4b56-b1b5-4331add6b473",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "ae37b5d1-e528-4b56-b1b5-4331add6b473@6c48a",
+      "displayName": "CONTACTUS",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "ae37b5d1-e528-4b56-b1b5-4331add6b473",
+        "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": "ae37b5d1-e528-4b56-b1b5-4331add6b473@f9941",
+      "displayName": "CONTACTUS",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 226,
+        "height": 34,
+        "rawWidth": 226,
+        "rawHeight": 34,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -113,
+            -17,
+            0,
+            113,
+            -17,
+            0,
+            -113,
+            17,
+            0,
+            113,
+            17,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            34,
+            226,
+            34,
+            0,
+            0,
+            226,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -113,
+            -17,
+            0
+          ],
+          "maxPos": [
+            113,
+            17,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "ae37b5d1-e528-4b56-b1b5-4331add6b473@6c48a",
+        "atlasUuid": "",
+        "trimType": "auto"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": false,
+    "hasAlpha": true,
+    "redirect": "ae37b5d1-e528-4b56-b1b5-4331add6b473@6c48a"
+  }
+}

TEMPAT SAMPAH
assets/lobbyRes/textures/dialog/support/Howcanwehelp-.png


+ 134 - 0
assets/lobbyRes/textures/dialog/support/Howcanwehelp-.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.27",
+  "importer": "image",
+  "imported": true,
+  "uuid": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6@6c48a",
+      "displayName": "Howcanwehelp-",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6",
+        "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": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6@f9941",
+      "displayName": "Howcanwehelp-",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 319,
+        "height": 44,
+        "rawWidth": 319,
+        "rawHeight": 44,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -159.5,
+            -22,
+            0,
+            159.5,
+            -22,
+            0,
+            -159.5,
+            22,
+            0,
+            159.5,
+            22,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            44,
+            319,
+            44,
+            0,
+            0,
+            319,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -159.5,
+            -22,
+            0
+          ],
+          "maxPos": [
+            159.5,
+            22,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6@6c48a",
+        "atlasUuid": "",
+        "trimType": "auto"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": false,
+    "hasAlpha": true,
+    "redirect": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6@6c48a"
+  }
+}

TEMPAT SAMPAH
assets/lobbyRes/textures/dialog/support/img_icon.png


+ 134 - 0
assets/lobbyRes/textures/dialog/support/img_icon.png.meta

@@ -0,0 +1,134 @@
+{
+  "ver": "1.0.27",
+  "importer": "image",
+  "imported": true,
+  "uuid": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8",
+  "files": [
+    ".json",
+    ".png"
+  ],
+  "subMetas": {
+    "6c48a": {
+      "importer": "texture",
+      "uuid": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8@6c48a",
+      "displayName": "img_icon",
+      "id": "6c48a",
+      "name": "texture",
+      "userData": {
+        "wrapModeS": "clamp-to-edge",
+        "wrapModeT": "clamp-to-edge",
+        "imageUuidOrDatabaseUri": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8",
+        "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": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8@f9941",
+      "displayName": "img_icon",
+      "id": "f9941",
+      "name": "spriteFrame",
+      "userData": {
+        "trimThreshold": 1,
+        "rotated": false,
+        "offsetX": 0,
+        "offsetY": 0,
+        "trimX": 0,
+        "trimY": 0,
+        "width": 157,
+        "height": 131,
+        "rawWidth": 157,
+        "rawHeight": 131,
+        "borderTop": 0,
+        "borderBottom": 0,
+        "borderLeft": 0,
+        "borderRight": 0,
+        "packable": true,
+        "pixelsToUnit": 100,
+        "pivotX": 0.5,
+        "pivotY": 0.5,
+        "meshType": 0,
+        "vertices": {
+          "rawPosition": [
+            -78.5,
+            -65.5,
+            0,
+            78.5,
+            -65.5,
+            0,
+            -78.5,
+            65.5,
+            0,
+            78.5,
+            65.5,
+            0
+          ],
+          "indexes": [
+            0,
+            1,
+            2,
+            2,
+            1,
+            3
+          ],
+          "uv": [
+            0,
+            131,
+            157,
+            131,
+            0,
+            0,
+            157,
+            0
+          ],
+          "nuv": [
+            0,
+            0,
+            1,
+            0,
+            0,
+            1,
+            1,
+            1
+          ],
+          "minPos": [
+            -78.5,
+            -65.5,
+            0
+          ],
+          "maxPos": [
+            78.5,
+            65.5,
+            0
+          ]
+        },
+        "isUuid": true,
+        "imageUuidOrDatabaseUri": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8@6c48a",
+        "atlasUuid": "",
+        "trimType": "auto"
+      },
+      "ver": "1.0.12",
+      "imported": true,
+      "files": [
+        ".json"
+      ],
+      "subMetas": {}
+    }
+  },
+  "userData": {
+    "type": "sprite-frame",
+    "fixAlphaTransparencyArtifacts": false,
+    "hasAlpha": true,
+    "redirect": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8@6c48a"
+  }
+}

File diff ditekan karena terlalu besar
+ 250 - 347
assets/lobbyRes/ui/invite/UIInvite.prefab


+ 6 - 3
assets/lobbyRes/ui/invite/UIInviteBind.prefab

@@ -145,7 +145,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1624.0000000000002,
+      "width": 1624,
       "height": 750
     },
     "_anchorPoint": {
@@ -2290,7 +2290,7 @@
     "_fontSize": 18,
     "_fontFamily": "Arial",
     "_lineHeight": 20,
-    "_overflow": 0,
+    "_overflow": 1,
     "_enableWrapText": true,
     "_font": null,
     "_isSystemFontUsed": true,
@@ -2601,7 +2601,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 1624.0000000000002,
+      "width": 1624,
       "height": 750
     },
     "_anchorPoint": {
@@ -2702,6 +2702,9 @@
     "lblError": {
       "__id__": 98
     },
+    "lblTips": {
+      "__id__": 92
+    },
     "_id": ""
   },
   {

+ 1787 - 0
assets/lobbyRes/ui/support/SupportChat.prefab

@@ -0,0 +1,1787 @@
+[
+  {
+    "__type__": "cc.Prefab",
+    "_name": "SupportChat",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_native": "",
+    "data": {
+      "__id__": 1
+    },
+    "optimizationPolicy": 0,
+    "persistent": false
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "SupportChat",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": null,
+    "_children": [
+      {
+        "__id__": 2
+      },
+      {
+        "__id__": 12
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 70
+      },
+      {
+        "__id__": 72
+      },
+      {
+        "__id__": 74
+      },
+      {
+        "__id__": 76
+      }
+    ],
+    "_prefab": {
+      "__id__": 78
+    },
+    "_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": 1073741824,
+    "_euler": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "mask",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 3
+      },
+      {
+        "__id__": 5
+      },
+      {
+        "__id__": 7
+      },
+      {
+        "__id__": 9
+      }
+    ],
+    "_prefab": {
+      "__id__": 11
+    },
+    "_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": 1073741824,
+    "_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": 1624,
+      "height": 750
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c7ZiqkfupNPJDrXCjto41z"
+  },
+  {
+    "__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": 0,
+      "g": 0,
+      "b": 0,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "7d8f9b89-4fd1-4c9f-a3ab-38ec7cded7ca@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": "414s81n3NCvqVGInYGa1mm"
+  },
+  {
+    "__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": 100,
+    "_originalHeight": 100,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "6dG1j+l+9NI5Rr1rFhpclJ"
+  },
+  {
+    "__type__": "cc.UIOpacity",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 2
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 10
+    },
+    "_opacity": 191,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "b3u6IMUvZFarvdTzX1OMhX"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "489LRLnpFCxq1ALea9Ik1O",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "content",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 1
+    },
+    "_children": [
+      {
+        "__id__": 13
+      },
+      {
+        "__id__": 19
+      },
+      {
+        "__id__": 27
+      },
+      {
+        "__id__": 33
+      },
+      {
+        "__id__": 39
+      },
+      {
+        "__id__": 45
+      },
+      {
+        "__id__": 59
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 65
+      },
+      {
+        "__id__": 67
+      }
+    ],
+    "_prefab": {
+      "__id__": 69
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -7.23599999999999,
+      "y": -10.117999999999995,
+      "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": "title",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 14
+      },
+      {
+        "__id__": 16
+      }
+    ],
+    "_prefab": {
+      "__id__": 18
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": -274.06399999999996,
+      "y": 246.62099999999992,
+      "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__": 13
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 15
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 303,
+      "height": 49
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "e4nokK/ORIbId5fF8abc6c"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 13
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 17
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "5c4db461-d512-42e5-b7ce-3c1c1cb66db6@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": "0eCnVAcKtFNr6VwJ8hg9tL"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b63MW/XbRHSqpfTX2qV78V",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "close",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 20
+      },
+      {
+        "__id__": 22
+      },
+      {
+        "__id__": 24
+      }
+    ],
+    "_prefab": {
+      "__id__": 26
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 474.869,
+      "y": 285.309,
+      "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__": 19
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 21
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 68,
+      "height": 68
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "f9szGgzXVBM6WyY95vP+xq"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 19
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 23
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "233c0fe1-a3cf-4309-8fb4-622e35ad4c4b@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": "17aOD9yP9AXKaySWRdc47J"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 19
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 25
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 1.1,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "dfaXVkvYlHgqHSTKGACfqF"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "57thU0AfRONK6yUOhMEfjF",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "content",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 28
+      },
+      {
+        "__id__": 30
+      }
+    ],
+    "_prefab": {
+      "__id__": 32
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0.8055000000000518,
+      "y": 25.37349999999998,
+      "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__": 27
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 29
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 909.287,
+      "height": 374.03900000000004
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "f5tAkdPwhDZqvTcn4hzkaI"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 27
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 31
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "28ed5316-23a1-43be-b1cf-188791c21a8f@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": "e505hkniJCCYS4f7Riiy5W"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b0ozjUIphAlruqVPKSHqNN",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "img_icon",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 34
+      },
+      {
+        "__id__": 36
+      }
+    ],
+    "_prefab": {
+      "__id__": 38
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0.5,
+      "y": 85.5,
+      "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__": 33
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 35
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 157,
+      "height": 131
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "51wlb2RNdChZrcxAxStcRd"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 33
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 37
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "0cdef6b3-b6d0-485c-aba5-728c7d5fbde8@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": "5bTthosbxIwI0LU1eXCaeC"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "16Kpqk6oJFq4QHK0UwKmtY",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Howcanwehelp-",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 40
+      },
+      {
+        "__id__": 42
+      }
+    ],
+    "_prefab": {
+      "__id__": 44
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 1,
+      "y": -15.5,
+      "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__": 39
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 41
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 319,
+      "height": 44
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "bez1CkiKJNg7MuWZ4JkYbL"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 39
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 43
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "e9b0fc69-1b6a-4f5e-bbe6-777f8c1686f6@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": "dasgMTXDREK6kHne97ackK"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b111XhYcxJcJfpgo56fph4",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "btnChat",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [
+      {
+        "__id__": 46
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 52
+      },
+      {
+        "__id__": 54
+      },
+      {
+        "__id__": 56
+      }
+    ],
+    "_prefab": {
+      "__id__": 58
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -226.882,
+      "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": "CONTACTUS",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 45
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 47
+      },
+      {
+        "__id__": 49
+      }
+    ],
+    "_prefab": {
+      "__id__": 51
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 3,
+      "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__": 46
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 48
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 226,
+      "height": 34
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "d64C4pIylNMo9vjthcmSFY"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 46
+    },
+    "_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__": "ae37b5d1-e528-4b56-b1b5-4331add6b473@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": "34vHx3WIhN7pRRpqJFdT68"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "b1s9eWupBJlLuZhibJ8RXg",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 45
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 53
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 334,
+      "height": 94
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "adgxln6BpEg4teD0Dgh48W"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 45
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 55
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "152d8443-b30b-48b0-85e3-92dd87898c8d@f9941",
+      "__expectedType__": "cc.SpriteFrame"
+    },
+    "_type": 1,
+    "_fillType": 0,
+    "_sizeMode": 2,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_useGrayscale": false,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "0cx63+5tROKamL2ZkVr4T7"
+  },
+  {
+    "__type__": "cc.Button",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 45
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 57
+    },
+    "clickEvents": [],
+    "_interactable": true,
+    "_transition": 3,
+    "_normalColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_hoverColor": {
+      "__type__": "cc.Color",
+      "r": 211,
+      "g": 211,
+      "b": 211,
+      "a": 255
+    },
+    "_pressedColor": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_disabledColor": {
+      "__type__": "cc.Color",
+      "r": 124,
+      "g": 124,
+      "b": 124,
+      "a": 255
+    },
+    "_normalSprite": null,
+    "_hoverSprite": null,
+    "_pressedSprite": null,
+    "_disabledSprite": null,
+    "_duration": 0.1,
+    "_zoomScale": 1.1,
+    "_target": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "c0S0LWqXpF/LAuB+WkroQ/"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "4eZRTb6IpNJ71P665Rg5hT",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "Label",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "_parent": {
+      "__id__": 12
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 60
+      },
+      {
+        "__id__": 62
+      }
+    ],
+    "_prefab": {
+      "__id__": 64
+    },
+    "_lpos": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": -63.5,
+      "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__": 59
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 61
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 646.962890625,
+      "height": 50.4
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "a3csOZ6+FNoIWVmtZ6rlqE"
+  },
+  {
+    "__type__": "cc.Label",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 59
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 63
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 138
+    },
+    "_string": "Browse common questions or start a conversation with our support team.",
+    "_horizontalAlign": 1,
+    "_verticalAlign": 1,
+    "_actualFontSize": 20,
+    "_fontSize": 20,
+    "_fontFamily": "Arial",
+    "_lineHeight": 40,
+    "_overflow": 0,
+    "_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": "74DFP2SOVNS4R+a2s8J18H"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "a9wilaLjpNxK0Noidl5J2Z",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 66
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 978,
+      "height": 601
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "cfaLbupypPF5Lx4RSJtSWS"
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 12
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 68
+    },
+    "_customMaterial": null,
+    "_srcBlendFactor": 2,
+    "_dstBlendFactor": 4,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_spriteFrame": {
+      "__uuid__": "79040ba5-8b4f-45f4-8ec3-9c858e662fd4@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": "87RdhyFaNJPa1Jyx8Mg1hr"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "bfy1Q7kK5AjaHTd0RAn1Nf",
+    "instance": null,
+    "targetOverrides": null,
+    "nestedPrefabInstanceRoots": null
+  },
+  {
+    "__type__": "cc.UITransform",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 71
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 1624,
+      "height": 750
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "9arq2Gst5NOZIuI8xn456X"
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 73
+    },
+    "_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": 1334,
+    "_originalHeight": 750,
+    "_alignMode": 2,
+    "_lockFlags": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "39Q7m8zWtPUZmdlkx/d3SI"
+  },
+  {
+    "__type__": "cc.BlockInputEvents",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 75
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "edTgVnSAVJN5WIgNnz/LK0"
+  },
+  {
+    "__type__": "f2fc2/X2QFDQZczaofNrBAH",
+    "_name": "",
+    "_objFlags": 0,
+    "__editorExtras__": {},
+    "node": {
+      "__id__": 1
+    },
+    "_enabled": true,
+    "__prefab": {
+      "__id__": 77
+    },
+    "popupMask": {
+      "__id__": 9
+    },
+    "popupRoot": {
+      "__id__": 12
+    },
+    "btnClose": {
+      "__id__": 19
+    },
+    "btnChat": {
+      "__id__": 45
+    },
+    "_id": ""
+  },
+  {
+    "__type__": "cc.CompPrefabInfo",
+    "fileId": "33KeO8w/FNHaCDMPg0Ynbo"
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__id__": 0
+    },
+    "fileId": "4a42MOwZZJFJpGe0y2gkk0",
+    "instance": null,
+    "targetOverrides": null
+  }
+]

+ 13 - 0
assets/lobbyRes/ui/support/SupportChat.prefab.meta

@@ -0,0 +1,13 @@
+{
+  "ver": "1.1.50",
+  "importer": "prefab",
+  "imported": true,
+  "uuid": "b51ebb3f-6758-48ab-88d6-faac37cd1cdc",
+  "files": [
+    ".json"
+  ],
+  "subMetas": {},
+  "userData": {
+    "syncNodeName": "SupportChat"
+  }
+}

+ 4 - 1
assets/scripts/api/LobbyApi.ts

@@ -18,7 +18,10 @@ export const APP_VIP_CLAIM = get("sc/vip/claim");
 
 export const APP_BIG_WIN = get('lobby/big-win-broadcast');
 
-
+export const APP_INVITE_INFO = get('sc/invite_friends/info');
+export const APP_INVITE_REWARDS = get("sc/invite_friends/rewards");
+export const APP_INVITE_BIND = get("sc/invite_friends/bind");
+export const APP_INVITE_SPIN = get("sc/invite_friends/spin");
 
 export const APP_SERVICE = get('service');
 export const APP_USER_MESSAGE = get('user/message');

+ 6 - 2
assets/scripts/api/PaymentApi.ts

@@ -5,7 +5,11 @@ export const APP_RECHARGE_CONFIG = get("recharge/sc/gear");
 
 export const APP_PAYMENT_ORDER = get("payment_entry/pay");
 
-export const APP_PAY_ORDER_LIST = get("pay/orderList");
+export const APP_IOS_PAY = get("payment_entry/iospay");
+
+export const APP_IOS_PAY_CONFIRM = get("api/apple_store_pay/confirm", "");
+
+export const APP_PAY_ORDER_LIST = post("pay/orderList");
 
 /** 首冲礼包详细情况 (打开礼包是调用, 调用后自动开启首冲礼包计时) */
 export const APP_FIRST_PACK = get("recharge/sc/first_pack");
@@ -25,4 +29,4 @@ export const APP_WITHDRAW_RECORD = post("withDraw/record");
 
 export const APP_WITHDRAW_SET_INFO = post("withDraw/withDrawInfo");
 
-export const APP_WITHDRAW_PAYOUT = post("withDraw/payout");
+export const APP_WITHDRAW_PAYOUT = post("withDraw/payout");

+ 1 - 0
assets/scripts/app/AppEvents.ts

@@ -28,4 +28,5 @@ export interface AppEventMap {
   'mail:update': undefined,
   'checkIn:update': undefined,
   'seasonPass:update': undefined,
+  'invite:update': undefined,
 }

+ 6 - 0
assets/scripts/define/UIDefine.ts

@@ -14,6 +14,7 @@ export const UIViewID = {
     AutoLogin: "AutoLogin",
     LoginSuccess: "LoginSuccess",
     Support: "Support",
+    SupportChat: "SupportChat",
     OrderView: "OrderView",
     UIFirstPack: "UIFirstPack",
     RedeemView: "RedeemView",
@@ -159,6 +160,11 @@ export const UIViewConfigs: Record<string, UIViewConfig> = {
         prefabPath: 'ui/support/Support',
         layer: UILayer.Popup
     },
+    [UIViewID.SupportChat]: {
+        id: UIViewID.SupportChat,
+        prefabPath: 'ui/support/SupportChat',
+        layer: UILayer.Popup
+    },
     [UIViewID.RedeemView]: {
         id: UIViewID.RedeemView,
         prefabPath: 'ui/redeem/RedeemView',

+ 14 - 1
assets/scripts/i18n/en/en1.ts

@@ -79,4 +79,17 @@ export const payout = {
         account_empty: "Please enter your account!",
         account_nosame: "The account entered twice are inconsistent, please enter again!",
     }
-}
+}
+
+export const invite = {
+    expire_tips: 'Bind an inviter within {0}H {1}M. Your inviter cannot be changed.',
+    btn_spin: "SPINX{0}",
+    copied: "Invite code copied",
+    copy_failed: "Invite code copy failed!",
+    invalid_code: "Invalid invite code.",
+    bind_success: "Binding successful",
+    bind_tips: "Enter a valid invite code before your {0}-hour eligibility ends. This cannot be changed.",
+    one_time: "ONE TIME",
+    stacks: "STACKS",
+    register_bind: "Bind at registration or within {0} hours",
+}

+ 5 - 5
assets/scripts/modules/lobby/LobbyController.ts

@@ -14,11 +14,11 @@ export class LobbyController extends Component {
   @property(Node) systemLayer: Node | null = null;
 
   protected onLoad(): void {
-    input.on(Input.EventType.KEY_DOWN, (event) => {
-      if (event.keyCode === KeyCode.KEY_W) {
-        this.node.parent.active = !this.node.parent.active;
-      }
-    })
+    // input.on(Input.EventType.KEY_DOWN, (event) => {
+    //   if (event.keyCode === KeyCode.KEY_W) {
+    //     this.node.parent.active = !this.node.parent.active;
+    //   }
+    // })
   }
 
   protected async start(): Promise<void> {

+ 1 - 1
assets/scripts/modules/lobby/ui/HomeView/HomeView.ts

@@ -265,7 +265,7 @@ export class HomeView extends UIView {
     }
 
     private onBtnServiceClick() {
-
+        AppKernel.ui.open(UIViewID.SupportChat);
     }
 
     private onBtnInviteClick() {

+ 47 - 0
assets/scripts/modules/lobby/ui/Support/SupportChat.ts

@@ -0,0 +1,47 @@
+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';
+import ssqChat from '@scripts/platform/SsqChat/ssqChat';
+const { ccclass, property } = _decorator;
+
+@ccclass('SupportChat')
+export class SupportChat extends UIPopup {
+  private openingChat = false;
+  readonly viewId = UIViewID.SupportChat;
+
+  @property(Node)
+  private btnClose;
+
+  @property(Node)
+  private btnChat;
+
+
+  protected onCreate(): void | Promise<void> {
+    addBtnClick(this.btnClose, this.closeSelf, this);
+    addBtnClick(this.btnChat, this.onBtnChatClick, this);
+  }
+
+  private async onBtnChatClick(): Promise<void> {
+    if (this.openingChat) return;
+    this.openingChat = true;
+    AppKernel.ui.loading(true);
+    try {
+      await ssqChat.ensureReady();
+      if (!this.isValid || !this.node.activeInHierarchy) return;
+      const store = AppKernel.stores.mainStore;
+      ssqChat.bindUser(store.isLogin ? store.userInfo : null);
+      ssqChat.openChat();
+    } catch (error) {
+      console.error('[SupportChat] 打开客服失败:', error);
+      if (this.isValid && this.node.activeInHierarchy) {
+        AppKernel.ui.toast(error instanceof Error ? error.message : '客服暂不可用,请稍后重试。');
+      }
+    } finally {
+      AppKernel.ui.loading(false);
+      this.openingChat = false;
+    }
+  }
+}

+ 1 - 0
assets/scripts/modules/lobby/ui/Support/SupportChat.ts.meta

@@ -0,0 +1 @@
+{"ver":"4.0.24","importer":"typescript","imported":true,"uuid":"f2fc2fd7-d901-4341-9733-6a87cdac1007","files":[],"subMetas":{},"userData":{}}

+ 166 - 3
assets/scripts/modules/lobby/ui/invite/UIInvite.ts

@@ -1,9 +1,11 @@
 import { AppKernel } from '@scripts/app/AppKernel';
 import VirtualList from '@scripts/components/virtualList/VirtualList';
+import { CURRENCY_TYPE } from '@scripts/define/Define';
 import { UIViewID } from '@scripts/define/UIDefine';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
+import { copyTextToClipboard, formatGoodsNum, formatSCNum, formatTimestamp } from '@scripts/utils/Helper';
 import { addBtnClick, addTogClick } from '@scripts/utils/UIHelper';
-import { _decorator, Component, Label, Node, Toggle } from 'cc';
+import { _decorator, Component, find, instantiate, Label, Node, ScrollView, Toggle } from 'cc';
 const { ccclass, property } = _decorator;
 
 
@@ -29,12 +31,30 @@ export class UIInvite extends UIPopup {
     @property(Label)
     lblLink: Label;
 
+    @property(Label)
+    lblExpire: Label;
+
+    @property([Label])
+    lblTotals: Label[] = [];
+
+    @property([Label])
+    lblBindRewards: Label[] = [];
+
+    @property([Label])
+    lblSpinRewards: Label[] = [];
+
     @property(Node)
     btnBind: Node;
 
+    @property(Node)
+    btnBindMask: Node;
+
     @property(Node)
     btnSpin: Node;
 
+    @property(Node)
+    btnSpinMask: Node;
+
     @property(Label)
     lblBtnSpin: Label;
 
@@ -44,23 +64,48 @@ export class UIInvite extends UIPopup {
     @property(Node)
     btnShare: Node;
 
-    private _subViewID = -1;
+    @property(ScrollView)
+    rewardMilestones: ScrollView;
 
+    @property(ScrollView)
+    rulesMilestones: ScrollView;
+
+    @property(Label)
+    lblRegBind: Label;
+
+    private _subViewID = -1;
 
     protected onCreate(): void | Promise<void> {
         addBtnClick(this.btnClose, this.closeSelf, this);
+        addBtnClick(this.btnCopy, this.onBtnCopyClick, this);
         addBtnClick(this.btnBind, this.onBtnBindClick, this);
         addBtnClick(this.btnSpin, this.onBtnSpinClick, this);
+        addBtnClick(this.btnShare, this.onBtnShareClick, this);
+        AppKernel.events.on('invite:update', this.updateView, this);
 
         this.recordList.renderEvent.target = this.node;
         this.recordList.renderEvent.component = "UIInvite";
         this.recordList.renderEvent.handler = "renderRecordItem";
 
+        this.recordList.node.on(ScrollView.EventType.BOUNCE_BOTTOM, this.onDragBottom, this);
+
         this.subToggles.forEach((tog, idx) => {
             addTogClick(tog, (t) => { this.onTogClick(t, idx) });
         })
     }
 
+    private async onBtnShareClick() {
+        const info = AppKernel.stores.inviteStore.inviteInfo.invite_link;
+        const copied = await copyTextToClipboard(info);
+        AppKernel.ui.toast(AppKernel.i18n.t(copied ? 'invite.copied' : 'invite.copy_failed'));
+    }
+
+    private async onBtnCopyClick() {
+        const code = this.lblCode.string.trim();
+        const copied = await copyTextToClipboard(code);
+        AppKernel.ui.toast(AppKernel.i18n.t(copied ? 'invite.copied' : 'invite.copy_failed'));
+    }
+
     private onBtnBindClick() {
         AppKernel.ui.open(UIViewID.UIInviteBind);
     }
@@ -74,20 +119,138 @@ export class UIInvite extends UIPopup {
         this.updateSubView(index);
     }
 
+    private async onDragBottom() {
+        const inviteStore = AppKernel.stores.inviteStore;
+        const rewardsPaging = inviteStore.rewardsPaging;
+        if (!rewardsPaging.hasMore) return;
+
+        AppKernel.ui.loading(true);
+        await inviteStore.reqNextRewards();
+        this.recordList.numItems = rewardsPaging.list.length;
+        AppKernel.ui.loading(false);
+    }
+
     private updateSubView(index: number) {
         this._subViewID = index;
         this.subViews.forEach((view, idx) => view.active = idx === index);
+        if (index === 1) {
+            const inviteStore = AppKernel.stores.inviteStore;
+            const total = inviteStore.rewardsPaging.list.length;
+            this.recordList.numItems = total;
+        }
+    }
+
+    protected async onBeforeOpen(_params: unknown) {
+        const inviteStore = AppKernel.stores.inviteStore;
+        inviteStore.reqInviteRewards(1);
+        await inviteStore.reqInviteInfo();
+        return !!inviteStore.inviteInfo;
+    }
+
+    private updateView() {
+        const info = AppKernel.stores.inviteStore.inviteInfo;
+        if (!!info) {
+            this.lblCode.string = info.invite_code;
+            this.lblLink.string = info.invite_link;
+            this.setLabelString(this.lblTotals, info.total_bind_count);
+            this.setLabelString(this.lblBindRewards, info.total_binding_reward);
+            this.setLabelString(this.lblSpinRewards, info.total_spin_reward);
+
+            const left_times = Math.max(info.binding_expire_at - Date.now() / 1000, 0);
+            const left_hours = Math.floor(left_times / 3600);
+            const left_minute = Math.floor(left_times % 3600 / 60);
+
+            const expire_tips = AppKernel.i18n.t("invite.expire_tips", left_hours, left_minute.toString().padStart(2, '0'));
+            this.lblExpire.string = expire_tips;
+            this.btnBindMask.active = !info.can_bind;
+            this.btnSpinMask.active = info.remaining_spin_count <= 0;
+            this.lblBtnSpin.string = AppKernel.i18n.t("invite.btn_spin", info.remaining_spin_count);
+            this.setRewardMilestones();
+            this.setRulesMilestones();
+
+            const hours = info.binding_duration_hours;
+            this.lblRegBind.string = AppKernel.i18n.t("invite.register_bind", hours);
+        }
     }
 
     protected onOpen(_params: unknown) {
+        this.updateView();
         this.subToggles[0].isChecked = true;
         this.updateSubView(0);
+    }
 
+    renderRecordItem(item: Node, index: number) {
+        item.active = true;
+        const data = AppKernel.stores.inviteStore.rewardsPaging.getItem(index);
+        let comp = item['_customComp'];
+        if (!comp) {
+            comp = {
+                lblTimes: find("lblTimes", item).getComponent(Label),
+                lblName: find("lblName", item).getComponent(Label),
+                lblSC: find("lblSC", item).getComponent(Label),
+                lblSpin: find("lblSpin", item).getComponent(Label),
+            };
+            item['_customComp'] = comp;
+        }
 
+        const isSpin = data.reward_type === 2;
+        comp.lblTimes.string = formatTimestamp(data.reward_time * 1000);
+        comp.lblName.string = data.source_username;
+        comp.lblSC.string = isSpin ? "—" : formatSCNum(data.reward, true);
+        comp.lblSpin.string = isSpin ? formatSCNum(data.reward, true) : "—";
     }
 
-    renderRecordItem(item: Node, index: number) {
+    private setLabelString(labels: Label[], content: string | number) {
+        if (typeof content === 'number') content = content.toString();
+
+        for (const lbl of labels) {
+            lbl.string = content;
+        }
+    }
+
+    private setRewardMilestones() {
+        const info = AppKernel.stores.inviteStore.inviteInfo;
+        const milestones = info.milestone_config || [];
+        const content = this.rewardMilestones.content;
+        const prefab = this.rewardMilestones.content.getChildByName("item");
+        for (let i = 0; i < milestones.length; ++i) {
+            const data = milestones[i];
+            const item = instantiate(prefab);
+            item.setParent(content);
+            item.active = true;
+            item.setSiblingIndex(i);
+
+            const lblPrices = find("lblPrices", item).getComponent(Label);
+            const lblReward = find("lblReward", item).getComponent(Label);
+            lblPrices.string = `$${data.threshold}`;
+            lblReward.string = `+ ${data.reward} SC`;
+        }
+    }
+
+    private setRulesMilestones() {
+        const info = AppKernel.stores.inviteStore.inviteInfo;
+        const milestones = info.milestone_config || [];
+        const content = this.rulesMilestones.content;
+        const prefab = this.rulesMilestones.content.getChildByName("item");
+        for (let i = 0; i < milestones.length; ++i) {
+            const data = milestones[i];
+            const item = instantiate(prefab);
+            item.setParent(content);
+            item.active = true;
+            item.setSiblingIndex(i);
+
+            const lblPrices = find("lblPrices", item).getComponent(Label);
+            const lblNum = find("lblNum", item).getComponent(Label);
+            const lblFlag = find("lblFlag", item).getComponent(Label);
+            lblPrices.string = `$${data.threshold}`;
+            lblNum.string = formatSCNum(data.reward);
 
+            const flag_key = i === 0 ? "invite.one_time" : "invite.stacks";
+            lblFlag.string = AppKernel.i18n.t(flag_key);
+            if (i === milestones.length - 1) {
+                lblFlag.string += `\n` + formatSCNum(info.milestone_total_reward, true);
+            }
+        }
     }
 }
 

+ 28 - 1
assets/scripts/modules/lobby/ui/invite/UIInviteBind.ts

@@ -1,3 +1,4 @@
+import { AppKernel } from '@scripts/app/AppKernel';
 import VirtualList from '@scripts/components/virtualList/VirtualList';
 import { UIViewID } from '@scripts/define/UIDefine';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
@@ -24,14 +25,40 @@ export class UIInviteBind extends UIPopup {
     @property(Label)
     lblError: Label;
 
+    @property(Label)
+    lblTips: Label;
+
     protected onCreate(): void | Promise<void> {
         addBtnClick(this.btnClose, this.closeSelf, this);
         addBtnClick(this.btnCancel, this.closeSelf, this);
         addBtnClick(this.btnBind, this.onBtnBindClick, this);
+
+        this.inputCode.node.on(EditBox.EventType.TEXT_CHANGED, this.onEditCode, this);
+    }
+
+    private onEditCode() {
+        const code = this.inputCode.string;
+        const res = AppKernel.stores.inviteStore.checkInviteCode(code);
+        this.lblError.string = res ? "" : AppKernel.i18n.t("invite.invalid_code")
     }
 
-    private onBtnBindClick() {
+    protected onOpen(_params: unknown) {
+        this.lblError.string = "";
+
+        const hours = AppKernel.stores.inviteStore.inviteInfo.binding_duration_hours;
+        this.lblTips.string = AppKernel.i18n.t("invite.bind_tips", hours);
+    }
+
+
+    private async onBtnBindClick() {
+        AppKernel.ui.loading(true);
+        const code = this.inputCode.string;
+        if (await AppKernel.stores.inviteStore.reqInviteBind(code)) {
+            AppKernel.ui.toast("invite.bind_success", true);
+        }
+
 
+        AppKernel.ui.loading(false);
     }
 }
 

+ 35 - 5
assets/scripts/modules/lobby/ui/invite/UIInviteSpin.ts

@@ -1,7 +1,10 @@
+import { AppKernel } from '@scripts/app/AppKernel';
+import { CURRENCY_TYPE } from '@scripts/define/Define';
 import { UIViewID } from '@scripts/define/UIDefine';
 import { UIPopup } from '@scripts/framework/ui/UIPopup';
+import { formatGoodsNum, formatSCNum } from '@scripts/utils/Helper';
 import { addBtnClick } from '@scripts/utils/UIHelper';
-import { _decorator, Button, Label, Node, Tween, tween } from 'cc';
+import { _decorator, Button, find, Label, Node, Tween, tween } from 'cc';
 const { ccclass, property } = _decorator;
 
 const ITEM_COUNT = 13;
@@ -32,16 +35,26 @@ export class UIInviteSpin extends UIPopup {
     turntable: Node;
 
     private spinning = false;
+    private _rewardItems: TurntableReward[] = [];
 
     protected onCreate(): void | Promise<void> {
         addBtnClick(this.btnClose, this.closeSelf, this);
         addBtnClick(this.btnSpin, this.onBtnSpinClick, this);
+
+        this._rewardItems = this.turntable.children.map(child => new TurntableReward(child));
     }
 
-    private onBtnSpinClick() {
-        this.startSpine(testIndex);
-        testIndex++;
-        if (testIndex > ITEM_COUNT) testIndex = 0;
+    private async onBtnSpinClick() {
+        AppKernel.ui.loading(true);
+        const idx = await AppKernel.stores.inviteStore.reqInviteSpin();
+        if (idx === -1) return;
+
+        const info = AppKernel.stores.inviteStore.inviteInfo;
+        this.lblCount.string = "X" + info.remaining_spin_count;
+        this.btnDiabled.active = info.remaining_spin_count === 0;
+        this.startSpine(idx);
+
+        AppKernel.ui.loading(false)
     }
 
     private startSpine(index: number) {
@@ -82,7 +95,24 @@ export class UIInviteSpin extends UIPopup {
     protected onOpen(_params: unknown) {
         this.btnClose.interactable = true;
         this.btnSpin.interactable = true;
+        const info = AppKernel.stores.inviteStore.inviteInfo;
+        info.wheel_config.slots.forEach((config, index) => {
+            const childNode = this._rewardItems[index];
+            let sc: string = CURRENCY_TYPE.SC
+            if (index === 0) sc = sc.toLocaleLowerCase();
+            childNode.lblNum.string = formatGoodsNum(config.sc) + sc;
+        })
+
+        this.lblCount.string = "X" + info.remaining_spin_count;
+        this.btnDiabled.active = info.remaining_spin_count === 0;
     }
 }
 
 
+class TurntableReward {
+    lblNum: Label;
+
+    constructor(readonly node: Node) {
+        this.lblNum = find("lblNum", node).getComponent(Label);
+    }
+}

+ 9 - 0
assets/scripts/platform/SsqChat.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "f82ad48a-e43a-4b28-b52d-308bef2a937b",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 9 - 0
assets/scripts/platform/SsqChat.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "40c82e68-949b-489a-9708-9b81fb3fc31c",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 32 - 0
assets/scripts/platform/SsqChat/ISsqChatImpl.ts

@@ -0,0 +1,32 @@
+import AppConfig from "@scripts/app/AppConfig";
+
+export interface SsqUser {
+    GameID: number;
+    Channel: number;
+    vip?: number;
+}
+
+export interface ISsqChatImpl {
+    ensureReady(): Promise<void>;
+    bindUser(user: SsqUser | null): void;
+    openChat(): void;
+    closeChat(): void;
+}
+
+export function handleUserData(user: SsqUser, hostname = '') {
+    const prefix = "game2c";
+    const id = user?.GameID ? `${prefix}${user.Channel}_${user.GameID}` : null;
+    const info: Record<string, unknown> = { language: 'en' };
+    if (id && user) {
+        info.user_id = id;
+        info.user_name = id;
+        info.custom_fields_ext = {
+            ...(user.vip != null ? { VIP: String(user.vip) } : {}),
+            Brand: AppConfig.ProductName,
+            Site: hostname,
+            Channel: String(user.Channel),
+        };
+    }
+
+    return info;
+}

+ 9 - 0
assets/scripts/platform/SsqChat/ISsqChatImpl.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "7f8a83b7-0738-45b5-b0cb-3667499af6ee",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 80 - 0
assets/scripts/platform/SsqChat/SsqChatH5.ts

@@ -0,0 +1,80 @@
+import { handleUserData, ISsqChatImpl, SsqUser } from "./ISsqChatImpl";
+import { HTML5 } from "cc/env";
+interface SsqSDK { push(command: string, payload?: unknown): void; }
+type SsqWindow = Window & { ssq?: SsqSDK; __ssc?: { setting?: Record<string, unknown> } };
+
+export class SsqChatH5 implements ISsqChatImpl {
+    private readyPromise: Promise<void> | null = null;
+    private script: HTMLScriptElement | null = null;
+    private readonly src = 'https://plugin-code.salesmartly.com/js/project_607414_626816_1768878382.js';
+
+    private get browser(): SsqWindow {
+        if (!HTML5 || typeof window === 'undefined' || typeof document === 'undefined') {
+            throw new Error('当前平台暂不支持网页客服,请使用网页版联系客服。');
+        }
+        return window as SsqWindow;
+    }
+    /** 单次加载、并发复用,等待 SDK onReady 而不是仅等待 script.onload。 */
+    ensureReady(): Promise<void> {
+        if (this.readyPromise) return this.readyPromise;
+        this.readyPromise = this.load().catch(error => {
+            this.readyPromise = null;
+            throw error;
+        });
+        return this.readyPromise;
+    }
+    init(): Promise<void> { return this.ensureReady(); }
+
+    private load(): Promise<void> {
+        return new Promise((resolve, reject) => {
+            const browser = this.browser;
+            browser.__ssc = browser.__ssc || {};
+            browser.__ssc.setting = { ...browser.__ssc.setting, hideIcon: true };
+            let settled = false;
+            const finish = (error?: Error) => {
+                if (settled) return;
+                settled = true;
+                clearTimeout(timer);
+                if (this.script) { this.script.onload = null; this.script.onerror = null; }
+                if (error) {
+                    if (!browser.ssq) { this.script?.remove(); this.script = null; }
+                    reject(error);
+                } else resolve();
+            };
+            const timer = setTimeout(() => finish(new Error('客服初始化超时,请稍后重试。')), 15000);
+            const waitReady = () => {
+                try {
+                    if (!browser.ssq) throw new Error('客服脚本未正确初始化。');
+                    browser.ssq.push('onReady', () => finish());
+                } catch (error) { finish(error instanceof Error ? error : new Error(String(error))); }
+            };
+            if (browser.ssq) { waitReady(); return; }
+            const script = document.createElement('script');
+            this.script = script;
+            script.async = true;
+            script.src = this.src;
+            script.onload = waitReady;
+            script.onerror = () => finish(new Error('客服加载失败,请检查网络后重试。'));
+            (document.head || document.body).appendChild(script);
+        });
+    }
+
+    /** SDK 未提供此调用的完成回调,按 SDK 命令顺序先绑定再打开。 */
+    bindUser(user: SsqUser | null): void {
+        const browser = this.browser;
+        if (!browser.ssq) {
+            console.error('客服尚未初始化。')
+            return;
+        };
+
+        const info = handleUserData(user, window.location.hostname);
+        browser.ssq.push('setLoginInfo', info);
+    }
+    openChat(): void {
+        const sdk = this.browser.ssq;
+        if (!sdk) throw new Error('客服尚未初始化。');
+        sdk.push('chatOpen');
+    }
+    closeChat(): void { this.browser.ssq?.push('chatClose'); }
+
+}

+ 9 - 0
assets/scripts/platform/SsqChat/SsqChatH5.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "61ff83f5-770e-490f-bd7f-bb98af8d048a",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 66 - 0
assets/scripts/platform/SsqChat/SsqChatH5Native.ts

@@ -0,0 +1,66 @@
+import { Canvas, director, Node, WebView, Widget } from "cc";
+import { handleUserData, ISsqChatImpl, SsqUser } from "./ISsqChatImpl";
+import { ANDROID } from "cc/env";
+
+
+export class SsqChatNative implements ISsqChatImpl {
+    private _webView: WebView;
+    private _bondData: any;
+
+    ensureReady(): Promise<void> {
+        if (!this._webView) {
+            const node = new Node("SsqChat");
+            const scene = director.getScene();
+            const canvas = scene.getComponentInChildren(Canvas);
+            if (canvas) node.setParent(canvas.node);
+
+            const widget = node.addComponent(Widget);
+            widget.isAlignLeft = true;
+            widget.isAlignRight = true;
+            widget.isAlignBottom = true;
+            widget.isAlignTop = true;
+            widget.left = 0;
+            widget.right = 0;
+            widget.top = 0;
+            widget.bottom = 0;
+            widget.updateAlignment();
+
+
+            this._webView = node.addComponent(WebView);
+            this._webView.setJavascriptInterfaceScheme("ssqchat");
+            //@ts-ignore
+            this._webView.setOnJSCallback((_view, url) => {
+                if (url === 'ssqchat://close') {
+                    this._webView.node.active = false;
+                }
+            });
+        }
+        return null;
+    }
+
+    bindUser(user: SsqUser | null): void {
+        const hostname = ANDROID ? "app_android" : "app_ios";
+        this._bondData = handleUserData(user, hostname);
+    }
+
+    openChat(): void {
+        if (!this._webView) return;
+
+        if (!this._webView.node.active) this._webView.node.active = true;
+
+        let link = "http://192.168.1.248:8080/ssqchat.html";//AppKernel.stores.mainStore.onlineChat;
+        if (this._bondData) {
+            let params = JSON.stringify(this._bondData);
+            params = encodeURIComponent(params);
+            link = `${link}?${params}`;
+        }
+        console.log(link);
+        this._webView.url = link;
+    }
+
+    closeChat(): void {
+        if (!this._webView) return;
+        this._webView.node.active = false;
+    }
+
+}

+ 9 - 0
assets/scripts/platform/SsqChat/SsqChatH5Native.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "2ec05092-0ee5-4a46-82c4-09db00f0cf03",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 6 - 0
assets/scripts/platform/SsqChat/ssqChat.ts

@@ -0,0 +1,6 @@
+import { ANDROID, IOS } from "cc/env";
+import { SsqChatH5 } from "./SsqChatH5";
+import { SsqChatNative } from "./SsqChatH5Native";
+
+const ssqChat = (IOS || ANDROID) ? new SsqChatNative() : new SsqChatH5();
+export default ssqChat;

+ 9 - 0
assets/scripts/platform/SsqChat/ssqChat.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "f021542f-72e9-49fd-bef7-14b38462e4b1",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 1 - 1
assets/scripts/services/AppLobby.ts

@@ -17,7 +17,7 @@ class AppLobby {
             firstLaunch = false;
             AppKernel.sound.playBgm();
             // 自动登录
-            await mainStore.reqGetRoutes()
+            await mainStore.reqGetRoutes();
         }
 
         const isLogin = mainStore.isLogin;

+ 1 - 0
assets/scripts/store/index.ts

@@ -6,4 +6,5 @@ export * from './checkInStore/CheckInStore'
 export * from './vipStore/VipStore'
 export * from './withdrawStore/WithdrawStore'
 export * from './seasonPassStore/SeasonPassStore'
+export * from './inviteStore/InviteStore'
 export * from './handler'

+ 9 - 0
assets/scripts/store/inviteStore.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "1.2.0",
+  "importer": "directory",
+  "imported": true,
+  "uuid": "d7cdc4ce-d039-4f27-9834-c3134c384f8d",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 75 - 0
assets/scripts/store/inviteStore/InviteStore.ts

@@ -0,0 +1,75 @@
+import { APP_INVITE_BIND, APP_INVITE_INFO, APP_INVITE_REWARDS, APP_INVITE_SPIN, success } from "@scripts/api";
+import { Http } from "@scripts/request";
+import { IBindRes, IInviteInfo, IInviteRewards, IRewardItem, ISpinRes } from "./data";
+import { checkResponse } from "@scripts/api/ApiHelper";
+import { AppKernel } from "@scripts/app/AppKernel";
+import PagingData from "@scripts/utils/PagingData";
+
+
+class InviteStore {
+
+    private _inviteInfo: IInviteInfo;
+    public readonly rewardsPaging: PagingData<IRewardItem> = new PagingData(20, 1);
+
+    public get inviteInfo() { return this._inviteInfo; }
+
+    async reqInviteInfo() {
+        const res = await Http.call<IInviteInfo>(APP_INVITE_INFO);
+        if (checkResponse(res)) {
+            res.data.milestone_total_reward = res.data.milestone_config.reduce((previous, current) => {
+                return previous + current.reward;
+            }, 0);
+
+            this._inviteInfo = res.data;
+
+            AppKernel.events.emit('invite:update');
+        }
+    }
+
+    async reqInviteRewards(page: number) {
+        const pageSize = this.rewardsPaging.pageSize;
+        const res = await Http.call<IInviteRewards>(APP_INVITE_REWARDS, { page, pageSize });
+        if (success(res)) {
+            const total = res.data.list.total;
+            const array = res.data?.list?.data || [];
+            this.rewardsPaging.addData(page, array, total);
+        }
+    }
+
+    async reqNextRewards() {
+        if (!this.rewardsPaging.hasMore) return;
+        const next = this.rewardsPaging.getNextPage();
+        await this.reqInviteRewards(next);
+    }
+
+
+    async reqInviteBind(invite_code: string) {
+        const res = await Http.call<IBindRes>(APP_INVITE_BIND, { invite_code });
+        if (checkResponse(res)) {
+            this.reqInviteInfo();
+            return true;
+        }
+        return false;
+    }
+
+    checkInviteCode(invite_code: string) {
+        return invite_code && invite_code.length === 8;
+    }
+
+    async reqInviteSpin() {
+        const params = {
+            config_id: this.inviteInfo.config_id,
+            config_version: this.inviteInfo.config_version,
+        }
+        const res = await Http.call<ISpinRes>(APP_INVITE_SPIN, params);
+        if (checkResponse(res)) {
+            this._inviteInfo.remaining_spin_count = res.data.remaining_spin_count;
+            this.inviteInfo.total_spin_reward = res.data.total_spin_reward;
+            AppKernel.events.emit('invite:update');
+            return res.data.sort;
+        }
+        return -1;
+    }
+}
+
+export const inviteStore = new InviteStore(); 

+ 9 - 0
assets/scripts/store/inviteStore/InviteStore.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "15235fff-54ce-4699-8199-e23251b88ec3",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 153 - 0
assets/scripts/store/inviteStore/data.ts

@@ -0,0 +1,153 @@
+export interface IInviteInfo {
+    /** 当前平台/地区/渠道是否命中有效活动配置 */
+    activity_active: boolean;
+
+    /** 命中配置的绑定有效时长(小时);无命中配置时为 0 */
+    binding_duration_hours: number;
+
+    /** 绑定过期时间 Unix 秒(注册时间 + 绑定时长);无效时为 0 */
+    binding_expire_at: number;
+
+    /** 是否仍可绑定(未绑定 + 活动开启 + 未过绑定有效期) */
+    can_bind: boolean;
+
+    /** 命中活动 SCInviteFriendsConfigs.Id;未命中为 0 */
+    config_id: number;
+
+    /** 命中活动 Version;未命中为 0;与 wheel_config.version 一致 */
+    config_version: number;
+
+    /** 当前用户唯一邀请码(8 位) */
+    invite_code: string;
+
+    /** 带邀请码的注册链接 */
+    invite_link: string;
+
+    /** 是否已绑定邀请人 */
+    is_bound: boolean;
+
+    /** 下级充值里程碑奖励配置(按 id 升序);无命中配置时为空数组 */
+    milestone_config: {
+        id: number,
+        reward: number,
+        threshold: number
+    }[];
+
+    milestone_total_reward?: number;
+
+    /** 已绑定上级 UserID;未绑定为 0 */
+    parent_user_id: number;
+
+    /** 当前剩余可转盘次数 */
+    remaining_spin_count: number;
+
+    /** 累计绑定下级人数 */
+    total_bind_count: number;
+
+    /** 累计绑定/里程碑奖励 SC(展示币,两位小数) */
+    total_binding_reward: number;
+
+    /** 累计轮盘奖励 SC(展示币,两位小数) */
+    total_spin_reward: number;
+
+    /** 命中配置的转盘奖励;无命中时 version=0、slots 为空数组 */
+    wheel_config: IWheelConfig;
+}
+
+export interface IWheelConfig {
+    version: string;
+    slots: IWheelSlot[];
+}
+
+export interface IWheelSlot {
+    sc: number;
+    sort: number;
+}
+
+
+export interface IInviteRewards {
+    total_bind_count: number;
+    total_binding_reward: number;
+    total_spin_reward: number;
+
+    list: IRewardPage
+}
+
+export interface IRewardPage {
+    current_page: number;
+    per_page: number;
+    total: number;
+    from: number;
+    to: number;
+    last_page: number;
+    data: IRewardItem[];
+    first_page_url?: string;
+    last_page_url?: string;
+    next_page_url?: string;
+    prev_page_url?: string;
+    path?: string;
+}
+
+export interface IRewardItem {
+    /** 本条奖励 SC 数值 */
+    reward: number;
+
+    /** 获奖时间 Unix 秒 */
+    reward_time: number;
+
+    /** 奖励类型:1 下级充值里程碑;2 轮盘奖励 */
+    reward_type: 1 | 2;
+
+    /** 奖励来源 ID。reward_type=1 时为下级ID ; reward_type=2 时为 0 */
+    source_id: number;
+
+    /** reward_type=1 时下级用户名; reward_type=2 时为空字符串 */
+    source_username: string;
+
+    /** 当前用户累计绑定下级人数(与顶层统计一致) */
+    total_bind_count: number;
+
+    /** 当前用户累计绑定/里程碑奖励 */
+    total_binding_reward: number;
+
+    /** 当前用户累计轮盘奖励 */
+    total_spin_reward: number;
+}
+
+export interface IBindRes {
+    /** 上级邀请人 UserID */
+    parent_user_id: number;
+
+    /** bound:本次绑定成功; already_bound:此前已绑定,幂等返回 */
+    status: 'bound' | 'already_bound';
+
+    /** 本次给被邀请人的转盘次数;仅 status=bound 时返回*/
+    invitee_spin_granted: number;
+
+    /** 被邀请人 UserID;仅 status=bound 时返回 */
+    invitee_user_id: number;
+
+    /** 本次给邀请人的转盘次数;仅 status=bound 时返回 */
+    inviter_spin_granted: number;
+
+    /** 被邀请人剩余转盘次数;仅 status=bound 时返回 */
+    remaining_spin_count: number;
+
+    /** 邀请人累计绑定人数;仅 status=bound 时返回 */
+    total_bind_count: number;
+}
+
+
+export interface ISpinRes {
+    /** 剩余转盘次数 */
+    remaining_spin_count: number;
+
+    /** 本次奖励 SC(展示币,两位小数) */
+    reward: number;
+
+    /** 中奖档位 sort(与 wheel_config.slots[].sort 对应) */
+    sort: number;
+
+    /** 累计转盘奖励 SC */
+    total_spin_reward: number;
+}

+ 9 - 0
assets/scripts/store/inviteStore/data.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "b0829299-0c78-474f-aee8-101c20e1b16f",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

+ 5 - 0
assets/scripts/store/mainStore/MainStore.ts

@@ -60,6 +60,8 @@ class MainStore {
     private _noticesList: IBigWinItem[] = [];
     private _currencyKind: CurrencyType;
     private _lastNoticeIdx = 0;
+    private _onlineChat = "http://192.168.1.248:8080/ssqchat.html";
+    private _gameWrapper = "";
 
     private _otpTsMap: Record<OtpType, number> = {
         [OtpType.Main]: 0,
@@ -123,6 +125,9 @@ class MainStore {
 
     public get gcScore() { return this.userInfo?.InsureScore || 0 };
 
+    public get onlineChat() { return this._onlineChat; }
+
+    public get gameWrapper() { return this._gameWrapper; }
 
     constructor() {
         this._currencyKind = localStorageGet(LOCAL_CURRENCY_MODE, CURRENCY_TYPE.GC) as CurrencyType;

+ 8 - 0
assets/scripts/store/payStore/PayStore.ts

@@ -1,6 +1,7 @@
 import {
     APP_FIRST_PACK,
     APP_FIRST_PACK_VISIBLE,
+    APP_IOS_PAY,
     APP_PAYMENT_ORDER,
     APP_PAY_ORDER_LIST,
     APP_RECHARGE_CONFIG,
@@ -12,6 +13,7 @@ import {
     IFirstPack,
     IFirstPackVisible,
     IGoodsConfig,
+    IIOSOrderParams,
     IPaymentOrder,
     IPaymentOrderRequest,
     IPayOrderItem,
@@ -102,6 +104,12 @@ class PayStore {
         const res = await Http.call(APP_WEEKLY_PASS);
     }
 
+    async reqIOSOrder(params: IIOSOrderParams) {
+        await Http.call(APP_IOS_PAY, params);
+
+        return false;
+    }
+
     clear() {
         this._payOrderList = [];
     }

+ 8 - 0
assets/scripts/store/payStore/data.ts

@@ -129,4 +129,12 @@ export interface IFirstPack {
     next_sequence: number;
     gift_id: number;
     list: IFirstPackGoods[]
+}
+
+export interface IIOSOrderParams {
+    productID: string;
+    AdId?: string;
+    eventType?: string;
+    GiftsID: number;
+    payAmt: number; 
 }

+ 79 - 3
assets/scripts/utils/Helper.ts

@@ -1,11 +1,54 @@
 import { CASH_BASE } from '@scripts/constants/App';
-import { sys } from 'cc';
+import { CURRENCY_TYPE } from '@scripts/define/Define';
+import { native, sys } from 'cc';
 import { ANDROID, IOS } from 'cc/env';
 
 const STORAGE_ENCRYPTION_HEAD = 'a6072637';
 const STORAGE_ENCRYPTION_PASSWORD = 'xbd4jl';
 const STORAGE_ENCRYPTION_ENABLED = true;
 
+/** 在按钮点击回调中调用;Web 使用 Clipboard API,原生使用引擎剪贴板接口。 */
+export async function copyTextToClipboard(text: string): Promise<boolean> {
+    if (!text) return false;
+    if (sys.isNative) {
+        try {
+            if (typeof native.copyTextToClipboard !== 'function') return false;
+            native.copyTextToClipboard(text);
+            return true;
+        } catch (error) {
+            console.warn('[Clipboard] Native copy failed', error);
+            return false;
+        }
+    }
+
+    if (typeof navigator !== 'undefined' && navigator.clipboard?.writeText) {
+        try {
+            await navigator.clipboard.writeText(text);
+            return true;
+        } catch {
+            // 权限受限或旧浏览器时尝试兼容方式。
+        }
+    }
+    if (typeof document === 'undefined' || !document.body) return false;
+    const previousFocus = document.activeElement as HTMLElement | null;
+    const textarea = document.createElement('textarea');
+    textarea.value = text;
+    textarea.readOnly = true;
+    textarea.style.cssText = 'position:fixed;top:0;left:0;opacity:0;font-size:16px;pointer-events:none;';
+    document.body.appendChild(textarea);
+    try {
+        textarea.focus({ preventScroll: true });
+        textarea.select();
+        textarea.setSelectionRange(0, text.length);
+        return document.execCommand('copy');
+    } catch {
+        return false;
+    } finally {
+        textarea.remove();
+        previousFocus?.focus({ preventScroll: true });
+    }
+}
+
 /**
  * 将数字格式化为财务展示格式:使用千位分隔符并保留两位小数。
  * 例如:1234567.8 -> 1,234,567.80。
@@ -21,7 +64,10 @@ export function formatCurrency(value: number | string, decimal = 0): string {
     });
 }
 
-export function formatSCNum(value: number | string) {
+export function formatSCNum(value: number | string, unit = false) {
+    if (unit) {
+        return formatCurrency(value, 2) + CURRENCY_TYPE.SC
+    }
     return formatCurrency(value, 2);
 }
 
@@ -53,6 +99,24 @@ export function formatShortDateTime(value: string): string {
     return `${SHORT_MONTH_NAMES[month - 1]} ${day}, ${hour.toString().padStart(2, '0')}:${minute.toString().padStart(2, '0')}`;
 }
 
+export function formatTimestamp(timestamp: number): string {
+    // 1. 将秒转换为毫秒
+    const date = new Date(timestamp);
+
+    // 2. 获取各项时间分量并补零
+    const hours = String(date.getHours()).padStart(2, '0');
+    const minutes = String(date.getMinutes()).padStart(2, '0');
+    const seconds = String(date.getSeconds()).padStart(2, '0');
+
+    const day = String(date.getDate()).padStart(2, '0');
+    // getMonth() 返回的月份是从 0 开始的 (0-11),所以需要 +1
+    const month = String(date.getMonth() + 1).padStart(2, '0');
+    const year = date.getFullYear();
+
+    // 3. 按 hh:mm:ss dd-mm-yyyy 格式拼接
+    return `${hours}:${minutes}:${seconds} ${day}-${month}-${year}`;
+}
+
 /**
  * 商品货币显示
  * 小于 10,000 时展示完整数值;小于 1,000,000 时向下取整为 K;
@@ -275,6 +339,18 @@ export function getUrlParams(url: string) {
     return params;
 }
 
+export function toUrlParams(obj: any) {
+    const params = new URLSearchParams();
+    for (const key in obj) {
+        console.log(key, obj[key]);
+        if (!obj[key]) continue;
+
+        const value = encodeURIComponent(String(obj[key]));
+        params.append(encodeURIComponent(key), value)
+    }
+    return params.toString();
+}
+
 export function waitForSeconds(duration: number) {
     return new Promise((resolve, reject) => {
         setTimeout(resolve, duration * 1000)
@@ -347,4 +423,4 @@ export function parseMailRewardStr(str: string) {
         });
     }
     return result;
-}
+}

+ 68 - 0
assets/scripts/utils/PagingData.ts

@@ -0,0 +1,68 @@
+/** 仅管理已返回的分页数据;请求锁和过期请求取消由调用方负责。 */
+export default class PagingData<TData> {
+    private _total = 0;
+    private _list: TData[] = [];
+    private _pages: { [page: number]: TData[] } = {};
+    private _initialized = false;
+
+    public get total() { return this._total; }
+    public get initialized() { return this._initialized; }
+    public get hasMore() { return this.list.length !== this.total; }
+    public get pageCount() { return Math.ceil(this._total / this.pageSize) + this.firstPage; }
+
+    public get list() { return this._list; }
+
+    /**
+     * 
+     * @param pageSize 
+     * @param firstPage 
+     */
+    constructor(readonly pageSize = 20, readonly firstPage = 1) {
+    }
+
+    /** 首页返回视为刷新;其他页重复返回时覆盖,不重复追加。 */
+    addData(page: number, data: TData[], total: number): void {
+        if (!Number.isInteger(page) || page < this.firstPage) {
+            return;
+        }
+        if (!Number.isInteger(total) || total < 0) {
+            return;
+        }
+        if (!Array.isArray(data)) return;
+        if (page === this.firstPage) this.clear();
+        this._total = total;
+        this._initialized = true;
+        this._pages[page] = data.slice(0, this.pageSize);
+
+        this._list = [];
+        for (let i = this.firstPage; i < this.pageCount; ++i) {
+            const items = this._pages[i];
+            if (!items) break;
+
+            this._list.push(...items);
+        }
+    }
+
+    /** 下一页索引  如果没有下一页 则返回-1 */
+    getNextPage(): number {
+        if (!this._initialized) return this.firstPage;
+        for (let page = this.firstPage; page < this.pageCount; page += 1) {
+            const items = this._pages[page];
+            console.log(`page:${page} items:${items}`)
+            if (!items || items.length < this.pageSize) return page;
+        }
+        return -1;
+    }
+
+    /** 重置后 getNextPage() 再次返回 firstPage。 */
+    clear(): void {
+        this._total = 0;
+        this._list = [];
+        this._pages = {};
+        this._initialized = false;
+    }
+
+    getItem(index: number) {
+        return this.list[index];
+    }
+}   

+ 9 - 0
assets/scripts/utils/PagingData.ts.meta

@@ -0,0 +1,9 @@
+{
+  "ver": "4.0.24",
+  "importer": "typescript",
+  "imported": true,
+  "uuid": "042362cf-1363-4941-a10e-38577075bf00",
+  "files": [],
+  "subMetas": {},
+  "userData": {}
+}

Beberapa file tidak ditampilkan karena terlalu banyak file yang berubah dalam diff ini