薛鸿潇 5 лет назад
Родитель
Сommit
e592c5fef7

+ 6 - 58
assets/resources/module/receiptNotice/receiptNotice.prefab

@@ -859,71 +859,18 @@
     "_id": ""
   },
   {
-    "__type__": "cc.Button",
+    "__type__": "cdc50kCRVVBa5gcp4XXxVO+",
     "_name": "",
     "_objFlags": 0,
     "node": {
       "__id__": 15
     },
     "_enabled": true,
-    "_normalMaterial": null,
-    "_grayMaterial": null,
-    "duration": 0.1,
-    "zoomScale": 1.2,
-    "clickEvents": [],
-    "_N$interactable": true,
-    "_N$enableAutoGrayEffect": false,
-    "_N$transition": 3,
-    "transition": 3,
-    "_N$normalColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_N$pressedColor": {
-      "__type__": "cc.Color",
-      "r": 211,
-      "g": 211,
-      "b": 211,
-      "a": 255
-    },
-    "pressedColor": {
-      "__type__": "cc.Color",
-      "r": 211,
-      "g": 211,
-      "b": 211,
-      "a": 255
-    },
-    "_N$hoverColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "hoverColor": {
-      "__type__": "cc.Color",
-      "r": 255,
-      "g": 255,
-      "b": 255,
-      "a": 255
-    },
-    "_N$disabledColor": {
-      "__type__": "cc.Color",
-      "r": 124,
-      "g": 124,
-      "b": 124,
-      "a": 255
+    "node_panel": {
+      "__id__": 1
     },
-    "_N$normalSprite": null,
-    "_N$pressedSprite": null,
-    "pressedSprite": null,
-    "_N$hoverSprite": null,
-    "hoverSprite": null,
-    "_N$disabledSprite": null,
-    "_N$target": null,
+    "transition_type": 3,
+    "onComplete": [],
     "_id": ""
   },
   {
@@ -2277,6 +2224,7 @@
     "node_panel": {
       "__id__": 1
     },
+    "transition_type": 0,
     "onComplete": [],
     "_id": ""
   },

+ 6 - 1
assets/script/game/component/BtnClosePanel.ts

@@ -9,13 +9,18 @@ export default class BtnClosePanel extends cc.Component {
 
     @property({ displayName: '关闭界面', tooltip: '', type: cc.Node })
     private node_panel: cc.Node = null!;;
+    @property({ displayName: '点击效果', tooltip: "仅支持 NONE 和 SCALE", type: cc.Enum(cc.Button.Transition) })
+    public transition_type: cc.Button.Transition = cc.Button.Transition.NONE;
     @property({ displayName: '完成回调', tooltip: "面板打开完成后触发", type: cc.Component.EventHandler })
     public onComplete: cc.Component.EventHandler[] = [];
 
     /** 阻断点击 */
     public block_click: boolean = false;
     onLoad() {
-        if (!this.node.getComponent(cc.Button)) this.node.addComponent(cc.Button);
+        if (!this.node.getComponent(cc.Button)) {
+            let btn_comp = this.node.addComponent(cc.Button);
+            btn_comp.transition = this.transition_type;
+        }
     }
 
     start() {

+ 12 - 0
assets/script/game/data/module/ReceiptNoticeData.ts

@@ -11,6 +11,7 @@ export class ReceiptNoticeData extends Data {
     public init_style = true;
 
     private _receip_rmb: number = 0;
+    /** 到账毛币数量 */
     set receip_rmb(value: number) {
         this._receip_rmb = value;
         this.init_style = true;
@@ -18,4 +19,15 @@ export class ReceiptNoticeData extends Data {
     get receip_rmb() {
         return this._receip_rmb;
     }
+
+    private _receip_total_rmb: number = 0;
+    /** 到账毛币总数 */
+    set receip_total_rmb(value: number) {
+        this._receip_total_rmb = value;
+        this.init_style = true;
+    }
+    get receip_total_rmb() {
+        return this._receip_total_rmb;
+    }
+
 }

+ 3 - 0
assets/script/game/module/module/receiptNotice/ReceiptNotice.ts

@@ -40,5 +40,8 @@ export default class ReceiptNotice extends cc.Component {
      */
     private initStyle() {
         this.lbl_receipt_rmb.string = '¥' + gData.receiptNotice.receip_rmb + '元';
+        this.lbl_rmb_total.string = '¥' + gData.receiptNotice.receip_total_rmb + '元';
+        this.lbl_user_name.string = '用户名';
+        this.lbl_game_name.string = '轻松连连消提现';
     }
 }