Просмотр исходного кода

到账通知功能完成。与签到功能对接完成

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

+ 5 - 5
assets/resources/module/receiptNotice/receiptNotice.prefab

@@ -1403,8 +1403,8 @@
     ],
     ],
     "_srcBlendFactor": 770,
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
     "_dstBlendFactor": 771,
-    "_string": "收款游戏:",
-    "_N$string": "收款游戏:",
+    "_string": "转账备注:",
+    "_N$string": "转账备注:",
     "_fontSize": 26,
     "_fontSize": 26,
     "_lineHeight": 26,
     "_lineHeight": 26,
     "_enableWrapText": true,
     "_enableWrapText": true,
@@ -1461,7 +1461,7 @@
     },
     },
     "_contentSize": {
     "_contentSize": {
       "__type__": "cc.Size",
       "__type__": "cc.Size",
-      "width": 252,
+      "width": 144,
       "height": 45.36
       "height": 45.36
     },
     },
     "_anchorPoint": {
     "_anchorPoint": {
@@ -1513,8 +1513,8 @@
     ],
     ],
     "_srcBlendFactor": 770,
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
     "_dstBlendFactor": 771,
-    "_string": "轻松连连消提现",
-    "_N$string": "轻松连连消提现",
+    "_string": "游戏福利",
+    "_N$string": "游戏福利",
     "_fontSize": 36,
     "_fontSize": 36,
     "_lineHeight": 36,
     "_lineHeight": 36,
     "_enableWrapText": true,
     "_enableWrapText": true,

+ 3 - 1
assets/script/game/data/module/SignData.ts

@@ -146,7 +146,9 @@ export class SignData extends Data {
             gData.reward.data = [reward_data];// 数据列表
             gData.reward.data = [reward_data];// 数据列表
             mk.ui.openPanel('module/reward/reward')
             mk.ui.openPanel('module/reward/reward')
         } else if (reward_data.rewardType === RewardType.rmb || reward_data.rewardType === RewardType.pigRmb) {
         } else if (reward_data.rewardType === RewardType.rmb || reward_data.rewardType === RewardType.pigRmb) {
-
+            gData.receiptNotice.receip_rmb = reward_data.rewardNum;
+            gData.receiptNotice.receip_total_rmb += gData.receiptNotice.receip_rmb;
+            mk.ui.openPanel('module/receiptNotice/receiptNotice');
         }
         }
 
 
         // 获得奖励
         // 获得奖励

+ 4 - 10
assets/script/game/module/module/receiptNotice/ReceiptNotice.ts

@@ -9,24 +9,19 @@ export default class ReceiptNotice extends cc.Component {
 
 
     @property({ displayName: 'lbl收款金额', type: cc.Label })
     @property({ displayName: 'lbl收款金额', type: cc.Label })
     private lbl_receipt_rmb: cc.Label = null!;
     private lbl_receipt_rmb: cc.Label = null!;
-
-
     @property({ displayName: 'lbl累计提现', type: cc.Label })
     @property({ displayName: 'lbl累计提现', type: cc.Label })
     private lbl_rmb_total: cc.Label = null!;
     private lbl_rmb_total: cc.Label = null!;
-
-    @property({ displayName: 'lbl收款游戏', type: cc.Label })
-    private lbl_game_name: cc.Label = null!;
     @property({ displayName: 'lbl用户名', type: cc.Label })
     @property({ displayName: 'lbl用户名', type: cc.Label })
     private lbl_user_name: cc.Label = null!;
     private lbl_user_name: cc.Label = null!;
 
 
 
 
-    onLoad() {
+    // onLoad() {
 
 
-    }
+    // }
 
 
-    start() {
+    // start() {
 
 
-    }
+    // }
 
 
     update(dt) {
     update(dt) {
         if (gData.receiptNotice.init_style) {
         if (gData.receiptNotice.init_style) {
@@ -42,6 +37,5 @@ export default class ReceiptNotice extends cc.Component {
         this.lbl_receipt_rmb.string = '¥' + gData.receiptNotice.receip_rmb + '元';
         this.lbl_receipt_rmb.string = '¥' + gData.receiptNotice.receip_rmb + '元';
         this.lbl_rmb_total.string = '¥' + gData.receiptNotice.receip_total_rmb + '元';
         this.lbl_rmb_total.string = '¥' + gData.receiptNotice.receip_total_rmb + '元';
         this.lbl_user_name.string = '用户名';
         this.lbl_user_name.string = '用户名';
-        this.lbl_game_name.string = '轻松连连消提现';
     }
     }
 }
 }