Browse Source

Merge branch 'master' of http://git.mokasz.com/zouyong/mk_framework

kaka 5 năm trước cách đây
mục cha
commit
0439559fff

+ 287 - 271
assets/resources/module/cashNormal/cashNormal.prefab

@@ -19,25 +19,22 @@
     "_children": [
       {
         "__id__": 2
-      },
-      {
-        "__id__": 42
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 49
-      },
-      {
         "__id__": 50
       },
       {
         "__id__": 51
+      },
+      {
+        "__id__": 52
       }
     ],
     "_prefab": {
-      "__id__": 52
+      "__id__": 53
     },
     "_opacity": 255,
     "_color": {
@@ -104,20 +101,23 @@
         "__id__": 13
       },
       {
-        "__id__": 26
+        "__id__": 33
       },
       {
-        "__id__": 37
+        "__id__": 44
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 40
+        "__id__": 47
+      },
+      {
+        "__id__": 48
       }
     ],
     "_prefab": {
-      "__id__": 41
+      "__id__": 49
     },
     "_opacity": 255,
     "_color": {
@@ -536,19 +536,22 @@
     "_children": [
       {
         "__id__": 14
+      },
+      {
+        "__id__": 23
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 23
+        "__id__": 30
       },
       {
-        "__id__": 24
+        "__id__": 31
       }
     ],
     "_prefab": {
-      "__id__": 25
+      "__id__": 32
     },
     "_opacity": 255,
     "_color": {
@@ -561,19 +564,19 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 750,
-      "height": 140
+      "height": 500
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
       "x": 0.5,
-      "y": 0.5
+      "y": 0
     },
     "_trs": {
       "__type__": "TypedArray",
       "ctor": "Float64Array",
       "array": [
         0,
-        596.935,
+        526.935,
         0,
         0,
         0,
@@ -644,7 +647,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        0,
+        72,
         0,
         0,
         0,
@@ -932,6 +935,237 @@
     "sync": false
   },
   {
+    "__type__": "cc.Node",
+    "_name": "关闭按钮",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 13
+    },
+    "_children": [
+      {
+        "__id__": 24
+      }
+    ],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 27
+      },
+      {
+        "__id__": 28
+      }
+    ],
+    "_prefab": {
+      "__id__": 29
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 100,
+      "height": 100
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        -325,
+        72,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Node",
+    "_name": "按钮纹理",
+    "_objFlags": 0,
+    "_parent": {
+      "__id__": 23
+    },
+    "_children": [],
+    "_active": true,
+    "_components": [
+      {
+        "__id__": 25
+      }
+    ],
+    "_prefab": {
+      "__id__": 26
+    },
+    "_opacity": 255,
+    "_color": {
+      "__type__": "cc.Color",
+      "r": 255,
+      "g": 255,
+      "b": 255,
+      "a": 255
+    },
+    "_contentSize": {
+      "__type__": "cc.Size",
+      "width": 22,
+      "height": 36
+    },
+    "_anchorPoint": {
+      "__type__": "cc.Vec2",
+      "x": 0.5,
+      "y": 0.5
+    },
+    "_trs": {
+      "__type__": "TypedArray",
+      "ctor": "Float64Array",
+      "array": [
+        0,
+        0,
+        0,
+        0,
+        0,
+        0,
+        1,
+        1,
+        1,
+        1
+      ]
+    },
+    "_eulerAngles": {
+      "__type__": "cc.Vec3",
+      "x": 0,
+      "y": 0,
+      "z": 0
+    },
+    "_skewX": 0,
+    "_skewY": 0,
+    "_is3DNode": false,
+    "_groupIndex": 0,
+    "groupIndex": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Sprite",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 24
+    },
+    "_enabled": true,
+    "_materials": [
+      {
+        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
+      }
+    ],
+    "_srcBlendFactor": 770,
+    "_dstBlendFactor": 771,
+    "_spriteFrame": {
+      "__uuid__": "96791d9f-b2a7-406c-84c0-d63af62e60ea"
+    },
+    "_type": 0,
+    "_sizeMode": 1,
+    "_fillType": 0,
+    "_fillCenter": {
+      "__type__": "cc.Vec2",
+      "x": 0,
+      "y": 0
+    },
+    "_fillStart": 0,
+    "_fillRange": 0,
+    "_isTrimmedMode": true,
+    "_atlas": null,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "18ca563c-e8dc-4633-bf04-5fdd65113bb0"
+    },
+    "fileId": "0dlg0I2lZG1qc4IeCj/tO2",
+    "sync": false
+  },
+  {
+    "__type__": "cdc50kCRVVBa5gcp4XXxVO+",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "node_panel": {
+      "__id__": 1
+    },
+    "transition_type": 3,
+    "onComplete": [],
+    "_id": ""
+  },
+  {
+    "__type__": "cc.Widget",
+    "_name": "",
+    "_objFlags": 0,
+    "node": {
+      "__id__": 23
+    },
+    "_enabled": true,
+    "alignMode": 1,
+    "_target": null,
+    "_alignFlags": 8,
+    "_left": 0,
+    "_right": 0,
+    "_top": 18,
+    "_bottom": 0,
+    "_verticalCenter": 0,
+    "_horizontalCenter": 0,
+    "_isAbsLeft": true,
+    "_isAbsRight": true,
+    "_isAbsTop": true,
+    "_isAbsBottom": true,
+    "_isAbsHorizontalCenter": true,
+    "_isAbsVerticalCenter": true,
+    "_originalWidth": 0,
+    "_originalHeight": 0,
+    "_id": ""
+  },
+  {
+    "__type__": "cc.PrefabInfo",
+    "root": {
+      "__id__": 1
+    },
+    "asset": {
+      "__uuid__": "18ca563c-e8dc-4633-bf04-5fdd65113bb0"
+    },
+    "fileId": "2cmqLl4atKsLJuZC2Zq8dq",
+    "sync": false
+  },
+  {
     "__type__": "cc.Sprite",
     "_name": "",
     "_objFlags": 0,
@@ -972,12 +1206,14 @@
     },
     "_enabled": true,
     "alignMode": 1,
-    "_target": null,
+    "_target": {
+      "__id__": 2
+    },
     "_alignFlags": 1,
     "_left": 0,
     "_right": 0,
-    "_top": 0.06500000000005457,
-    "_bottom": 0,
+    "_top": -359.93499999999995,
+    "_bottom": 1193.935,
     "_verticalCenter": 0,
     "_horizontalCenter": 0,
     "_isAbsLeft": true,
@@ -987,7 +1223,7 @@
     "_isAbsHorizontalCenter": true,
     "_isAbsVerticalCenter": true,
     "_originalWidth": 0,
-    "_originalHeight": 0,
+    "_originalHeight": 140,
     "_id": ""
   },
   {
@@ -1010,23 +1246,23 @@
     },
     "_children": [
       {
-        "__id__": 27
+        "__id__": 34
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 33
+        "__id__": 40
       },
       {
-        "__id__": 34
+        "__id__": 41
       },
       {
-        "__id__": 35
+        "__id__": 42
       }
     ],
     "_prefab": {
-      "__id__": 36
+      "__id__": 43
     },
     "_opacity": 255,
     "_color": {
@@ -1080,24 +1316,24 @@
     "_name": "view",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 26
+      "__id__": 33
     },
     "_children": [
       {
-        "__id__": 28
+        "__id__": 35
       }
     ],
     "_active": true,
     "_components": [
       {
-        "__id__": 30
+        "__id__": 37
       },
       {
-        "__id__": 31
+        "__id__": 38
       }
     ],
     "_prefab": {
-      "__id__": 32
+      "__id__": 39
     },
     "_opacity": 255,
     "_color": {
@@ -1151,13 +1387,13 @@
     "_name": "content",
     "_objFlags": 0,
     "_parent": {
-      "__id__": 27
+      "__id__": 34
     },
     "_children": [],
     "_active": true,
     "_components": [],
     "_prefab": {
-      "__id__": 29
+      "__id__": 36
     },
     "_opacity": 255,
     "_color": {
@@ -1222,7 +1458,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 27
+      "__id__": 34
     },
     "_enabled": true,
     "_materials": [
@@ -1242,7 +1478,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 27
+      "__id__": 34
     },
     "_enabled": true,
     "alignMode": 1,
@@ -1282,7 +1518,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 26
+      "__id__": 33
     },
     "_enabled": true,
     "horizontal": false,
@@ -1294,10 +1530,10 @@
     "scrollEvents": [],
     "cancelInnerEvents": false,
     "_N$content": {
-      "__id__": 28
+      "__id__": 35
     },
     "content": {
-      "__id__": 28
+      "__id__": 35
     },
     "_N$horizontalScrollBar": null,
     "_N$verticalScrollBar": null,
@@ -1308,7 +1544,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 26
+      "__id__": 33
     },
     "_enabled": true,
     "pre_item": [
@@ -1327,7 +1563,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 26
+      "__id__": 33
     },
     "_enabled": true,
     "alignMode": 1,
@@ -1373,11 +1609,11 @@
     "_active": true,
     "_components": [
       {
-        "__id__": 38
+        "__id__": 45
       }
     ],
     "_prefab": {
-      "__id__": 39
+      "__id__": 46
     },
     "_opacity": 255,
     "_color": {
@@ -1431,7 +1667,7 @@
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 37
+      "__id__": 44
     },
     "_enabled": true,
     "_materials": [
@@ -1500,234 +1736,13 @@
     "_id": ""
   },
   {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__uuid__": "18ca563c-e8dc-4633-bf04-5fdd65113bb0"
-    },
-    "fileId": "94yiGj0RFACpXt5xGEvfHf",
-    "sync": false
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "关闭按钮",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 1
-    },
-    "_children": [
-      {
-        "__id__": 43
-      }
-    ],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 46
-      },
-      {
-        "__id__": 47
-      }
-    ],
-    "_prefab": {
-      "__id__": 48
-    },
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 100,
-      "height": 100
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        -325,
-        596.033,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Node",
-    "_name": "按钮纹理",
-    "_objFlags": 0,
-    "_parent": {
-      "__id__": 42
-    },
-    "_children": [],
-    "_active": true,
-    "_components": [
-      {
-        "__id__": 44
-      }
-    ],
-    "_prefab": {
-      "__id__": 45
-    },
-    "_opacity": 255,
-    "_color": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_contentSize": {
-      "__type__": "cc.Size",
-      "width": 22,
-      "height": 36
-    },
-    "_anchorPoint": {
-      "__type__": "cc.Vec2",
-      "x": 0.5,
-      "y": 0.5
-    },
-    "_trs": {
-      "__type__": "TypedArray",
-      "ctor": "Float64Array",
-      "array": [
-        0,
-        0,
-        0,
-        0,
-        0,
-        0,
-        1,
-        1,
-        1,
-        1
-      ]
-    },
-    "_eulerAngles": {
-      "__type__": "cc.Vec3",
-      "x": 0,
-      "y": 0,
-      "z": 0
-    },
-    "_skewX": 0,
-    "_skewY": 0,
-    "_is3DNode": false,
-    "_groupIndex": 0,
-    "groupIndex": 0,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Sprite",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 43
-    },
-    "_enabled": true,
-    "_materials": [
-      {
-        "__uuid__": "eca5d2f2-8ef6-41c2-bbe6-f9c79d09c432"
-      }
-    ],
-    "_srcBlendFactor": 770,
-    "_dstBlendFactor": 771,
-    "_spriteFrame": {
-      "__uuid__": "96791d9f-b2a7-406c-84c0-d63af62e60ea"
-    },
-    "_type": 0,
-    "_sizeMode": 1,
-    "_fillType": 0,
-    "_fillCenter": {
-      "__type__": "cc.Vec2",
-      "x": 0,
-      "y": 0
-    },
-    "_fillStart": 0,
-    "_fillRange": 0,
-    "_isTrimmedMode": true,
-    "_atlas": null,
-    "_id": ""
-  },
-  {
-    "__type__": "cc.PrefabInfo",
-    "root": {
-      "__id__": 1
-    },
-    "asset": {
-      "__uuid__": "18ca563c-e8dc-4633-bf04-5fdd65113bb0"
-    },
-    "fileId": "2fogzjyg1Eeb4o3xdTj4nf",
-    "sync": false
-  },
-  {
-    "__type__": "cdc50kCRVVBa5gcp4XXxVO+",
-    "_name": "",
-    "_objFlags": 0,
-    "node": {
-      "__id__": 42
-    },
-    "_enabled": true,
-    "node_panel": {
-      "__id__": 1
-    },
-    "transition_type": 3,
-    "onComplete": [],
-    "_id": ""
-  },
-  {
-    "__type__": "cc.Widget",
+    "__type__": "173866Ll/lFN6TBCxDmQuqC",
     "_name": "",
     "_objFlags": 0,
     "node": {
-      "__id__": 42
+      "__id__": 2
     },
     "_enabled": true,
-    "alignMode": 1,
-    "_target": null,
-    "_alignFlags": 9,
-    "_left": 0,
-    "_right": 0,
-    "_top": 20.966999999999985,
-    "_bottom": 0,
-    "_verticalCenter": 0,
-    "_horizontalCenter": 0,
-    "_isAbsLeft": true,
-    "_isAbsRight": true,
-    "_isAbsTop": true,
-    "_isAbsBottom": true,
-    "_isAbsHorizontalCenter": true,
-    "_isAbsVerticalCenter": true,
-    "_originalWidth": 0,
-    "_originalHeight": 0,
     "_id": ""
   },
   {
@@ -1738,7 +1753,7 @@
     "asset": {
       "__uuid__": "18ca563c-e8dc-4633-bf04-5fdd65113bb0"
     },
-    "fileId": "c8jvBP2fNFRbU3kLiQJ9Sl",
+    "fileId": "94yiGj0RFACpXt5xGEvfHf",
     "sync": false
   },
   {
@@ -1777,13 +1792,13 @@
     },
     "_enabled": true,
     "scroll_view": {
-      "__id__": 33
+      "__id__": 40
     },
     "lbl_rmb_total": {
       "__id__": 19
     },
     "lbl_none": {
-      "__id__": 38
+      "__id__": 45
     },
     "_id": ""
   },
@@ -1803,9 +1818,10 @@
       "a": 230
     },
     "design_block_node": {
-      "__id__": 37
+      "__id__": 44
     },
     "bClickClose": false,
+    "onComplete": [],
     "_id": ""
   },
   {

+ 10 - 10
assets/resources/module/cashNormal/cashNormalItem.prefab

@@ -275,8 +275,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "签到提现",
-    "_N$string": "签到提现",
+    "_string": "提现类型",
+    "_N$string": "提现类型",
     "_fontSize": 32,
     "_lineHeight": 40,
     "_enableWrapText": true,
@@ -333,7 +333,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 117.38,
+      "width": 122.25,
       "height": 50.4
     },
     "_anchorPoint": {
@@ -385,8 +385,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "2021.03.05",
-    "_N$string": "2021.03.05",
+    "_string": "2020.00.00",
+    "_N$string": "2020.00.00",
     "_fontSize": 24,
     "_lineHeight": 40,
     "_enableWrapText": true,
@@ -495,8 +495,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "¥0.30元",
-    "_N$string": "¥0.30元",
+    "_string": "¥0.00元",
+    "_N$string": "¥0.00元",
     "_fontSize": 40,
     "_lineHeight": 40,
     "_enableWrapText": true,
@@ -553,7 +553,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 228.52,
+      "width": 242.34,
       "height": 37.8
     },
     "_anchorPoint": {
@@ -605,8 +605,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "红包码:AABBCC",
-    "_N$string": "红包码:AABBCC",
+    "_string": "红包码:ABCDEFG",
+    "_N$string": "红包码:ABCDEFG",
     "_fontSize": 30,
     "_lineHeight": 30,
     "_enableWrapText": true,

+ 1 - 1
assets/script/game/component/NumberAnim.ts

@@ -18,7 +18,7 @@ export default class NumberAnim extends cc.Component {
      * @param new_value 目标值
      */
     public setValue(new_value: number, toFixed: number = 0) {
-        if (!new_value || this.targetProgress == new_value) return;
+        if (this.targetProgress == new_value) return;
         this.toFixed = toFixed;
         this.len_target = new_value.toString().length;
         this.targetProgress = new_value;

+ 34 - 9
assets/script/game/data/module/CashNormalData.ts

@@ -16,13 +16,14 @@ export class CashNormalData extends Data {
             return;
         }
         console.log(response.data);
-        if (response.data.CashStatusList) {
-            response.data.CashStatusList.forEach(item_data => {
+        if (response.data) {
+            response.data.forEach(item_data => {
                 for (const key in item_data) {
-                    item_data[key] = parseInt(item_data[key])
+                    item_data[key] = parseInt(item_data[key]);
                 }
             });
-            this.list_data = response.data.CashStatusList;
+            this.list_data = response.data;
+            this.initReceipTotalRMB();
         }
     }
     /** 数据列表 */
@@ -46,8 +47,18 @@ export class CashNormalData extends Data {
         return this._receip_total_rmb;
     }
 
-    /** 提现类型 */
-    public cash_type = ['', 'BOSS提现', '每日提现', '夺宝提现', '钱庄提现', '招募任务提现', '每日招募提现', '累计招募提现', '', '彩蛋提现', '福袋提现', '福袋提现'];
+    /**
+     * 初始化提现总数
+     */
+    private initReceipTotalRMB() {
+        let temp_total_count = 0;
+        const count = this.list_data.length;
+        for (let i = 0; i < count; i++) {
+            temp_total_count += this.list_data[i].amount;
+        }
+        this.receip_total_rmb = temp_total_count;
+    }
+
 
     /** 客户端造 假数据 */
     private initTestData() {
@@ -81,6 +92,23 @@ export class CashNormalData extends Data {
         return new_list_data;
     }
 
+    // public cash_type = ['', 'BOSS提现', '每日提现', '夺宝提现', '钱庄提现', '招募任务提现', '每日招募提现', '累计招募提现', '', '彩蛋提现', '福袋提现', '福袋提现'];
+    /** 提现类型 */
+    public cash_type = {
+        1: '红包提现',// 常规提现
+        2: '每日提现',
+        3: '夺宝提现',
+        4: '富翁银行提现',
+        5: '裂变任务提现',
+        6: '裂变每日提现',
+        7: '裂变累计提现',
+        8: '彩蛋任务提现',
+        9: '常规彩蛋任务提现',
+        10: '福袋提现',// 视频红包提现
+        11: '大额福袋',// 视频红包提现(公众号)
+        12: '存钱罐提现',
+        13: '签到提现',// 现金提现
+    }
 }
 
 /**
@@ -101,7 +129,4 @@ export type TCashList = {
     CashMode: number,
     /** 红包码 */
     withdrawalCode: string,
-}
-export enum ECashType {
-    assss = 1,
 }

+ 6 - 5
assets/script/game/data/module/PigBankData.ts

@@ -36,14 +36,15 @@ export class PigBankData extends Data {
         }
 
         if (response.CashMode == 0) {//星云打款
-            // 打开提现到账界面
-            gData.receiptNotice.receip_rmb = gData.gameData.gameData.piggyBank;
-            gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
-            mk.ui.openPanel('module/receiptNotice/receiptNotice');
         }
         else if (response.CashMode == 1) {//公众号打款
-
         }
+
+        // 打开提现到账界面
+        gData.receiptNotice.receip_rmb = gData.gameData.gameData.piggyBank;
+        gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
+        mk.ui.openPanel('module/receiptNotice/receiptNotice');
+        gData.gameData.gameData.piggyBank = 0;
         gData.gameData.gameData.isWithdrawable = 0;
         gData.cashNormal.getRecord();// 请求新的提现记录
 

+ 1 - 0
assets/script/game/data/module/RewardData.ts

@@ -53,6 +53,7 @@ export class RewardData extends Data {
         const i_count = gData.reward.data.length;
         for (let i = 0; i < i_count; i++) {
             if (gData.reward.data[i].rewardType === RewardType.rmb) continue;
+            if (gData.reward.data[i].rewardNum == 0) continue;
             let start_node_pos = new cc.Vec2(0, -300);
             mk.fly.PlayCoinAnim(gData.reward.data[i].rewardType, 10, start_node_pos, '', () => {
                 is_add_money && this.addReward();

+ 28 - 2
assets/script/game/game/Game.ts

@@ -57,6 +57,30 @@ export default class Game extends cc.Component {
             this.initGuide();
             gData.gameData.setProp(GameProp.newPlayer, 1);
         }
+        // // 测试代码
+        // this.schedule(() => {
+
+        //     let data = {
+        //         videoRedMoney: {
+        //             videoRewardList: [
+        //                 {
+        //                     rewardType: 1,
+        //                     rewardNum: 500
+        //                 },
+        //                 {
+        //                     rewardType: 2,
+        //                     rewardNum: 0
+        //                 },
+        //                 {
+        //                     rewardType: 3,
+        //                     rewardNum: 0
+        //                 }
+        //             ]
+        //         }
+        //     };
+        //     gData.reward.adData = data;
+        //     mk.ui.openPanel('module/reward/reward')
+        // }, 3)
     }
 
     private initGuide() {
@@ -112,8 +136,10 @@ export default class Game extends cc.Component {
         // this.lbl_rmb.node.getComponent('NumberAnim').setValue(gData.gameData.gameData.piggyBank);
 
         const new_count = gData.gameData.gameData.piggyBank / 100;
-        if (new_count != 0 && this.lbl_rmb.string != new_count.toFixed(2)) {
-            this.lbl_rmb.node.getComponent(NumberAnim).setValue(parseFloat(new_count.toFixed(2)), 2);
+        if (parseInt(this.lbl_rmb.string) != 0 && new_count != 0) {
+            if (this.lbl_rmb.string != new_count.toFixed(2)) {
+                this.lbl_rmb.node.getComponent(NumberAnim).setValue(parseFloat(new_count.toFixed(2)), 2);
+            }
         }
         gData.gameData.init_coin = false;
     }

+ 1 - 1
assets/script/game/module/cashNormal/CashNormal.ts

@@ -35,7 +35,7 @@ export default class CashNormal extends cc.Component {
      * 初始化累计提现
      */
     private initTotal() {
-        this.lbl_rmb_total.string = '¥' + gData.cashNormal.receip_total_rmb + '元';
+        this.lbl_rmb_total.string = '¥' + (gData.cashNormal.receip_total_rmb / 100).toFixed(2) + '元';
     }
 
     /**

+ 2 - 2
assets/script/game/module/cashNormal/CashNormalItem.ts

@@ -31,9 +31,9 @@ export default class CashNormalItem extends cc.Component {
     }
     private initStyle(item_data: TCashList) {
 
-        this.lbl_cash_type.string = gData.cashNormal.cash_type[item_data.cashType];
+        this.lbl_cash_type.string = gData.cashNormal.cash_type[item_data.cashType] || '未知类型';
         this.lbl_cash_time.string = mk.time.getNowDayString(item_data.applyTime * 1000);
         this.lbl_red_ma.string = item_data.withdrawalCode ? '红包码:' + item_data.withdrawalCode : '';
-        this.lbl_rmb_value.string = '¥' + item_data.amount + '元';
+        this.lbl_rmb_value.string = '¥' + (item_data.amount / 100).toFixed(2) + '元';
     }
 }

+ 4 - 0
assets/script/mk/system/FlySystem.ts

@@ -65,6 +65,10 @@ export default class FlySystem extends cc.Component {
                 }
                 else if (type == RewardType.pigRmb) {
                     url = 'Canvas/界面层/game/node_ui/顶部个人信息/金猪币按钮/icon_zb';
+                } else {
+                    // 未知类型
+                    mk.pool.return('game/prefab/coin', target);
+                    return;
                 }
                 end = url;
             }