kaka 4 лет назад
Родитель
Сommit
c96d7f81ed

+ 2 - 0
assets/script/before/main/FactoryIcon.ts

@@ -147,6 +147,8 @@ export class FactoryIcon extends cc.Component {
             //     //mk.audio.playEffect('redmoney');
             //     gData.gameData.gameStyle.dpFlyRedAni();
             // }
+
+            
         }
         else {
             mk.tip.pop('商品已满!')

+ 2 - 0
assets/script/before/main/FarmIcon.ts

@@ -182,6 +182,8 @@ export class FarmIcon extends cc.Component {
             this.plantIcon.spriteFrame = await mk.loader.load("game/coregame/texture/plant_icons/plantIcon_" + this.plantID, cc.SpriteFrame);
             this.plantIcon.getComponent(cc.Animation).play();
             this.plantIcon.getComponent(cc.Animation).on(cc.Animation.EventType.FINISHED, this.onPlantAnimationFinish, this);
+
+            
         }
         else {
             mk.tip.pop('农田已满,无法继续生产');

+ 1 - 0
assets/script/game/data/GameData.ts

@@ -1447,6 +1447,7 @@ export enum VideoAdType {
     video_init_17 = '点击生产按钮',
     video_init_18 = '离开游戏领红包',
     video_init_19 = '定时弹出红包',
+    video_init_20 = '插队',
 }
 
 export enum InterFullAdType {

+ 3 - 0
assets/script/game/data/module/WalletCashOutData.ts

@@ -4,6 +4,7 @@
  * @description 提现数据
  */
 import { Data } from "../../../mk/data/Data";
+import { DataEventId } from "../GameData";
 
 export class WalletCashOutData extends Data {
 
@@ -70,6 +71,8 @@ export class WalletCashOutData extends Data {
             gData.receiptNotice.receip_rmb = cashData[id - 1].money;
             mk.ui.openPanel('module/newNotice/newNotice');
         }
+
+        mk.data.sendDataEvent(DataEventId.Sundry, '红包币提现成功');
     }
 
 }

+ 8 - 9
assets/script/game/module/newNotice/LineUpUI.ts

@@ -1,3 +1,4 @@
+import { VideoAdType } from "../../data/GameData";
 
 
 const { ccclass, property } = cc._decorator;
@@ -8,23 +9,20 @@ export default class LineUpUI extends cc.Component {
     private lbl_tip: cc.Label = null;
 
 
-    start(){
+    start() {
         gData.lineUpUIData.refresh = false;
         this.lbl_tip.string = `提现排队中,你前面还有${gData.lineUpUIData.personCount}人`;
     }
 
-    update(dt)
-    {
-        if(gData.lineUpUIData.refresh)
-        {
+    update(dt) {
+        if (gData.lineUpUIData.refresh) {
             console.log('lineUp=====>', gData.lineUpUIData.personCount);
             gData.lineUpUIData.refresh = false;
             this.lbl_tip.string = `提现排队中,你前面还有${gData.lineUpUIData.personCount}人`;
         }
     }
 
-    private clickVideoBtn()
-    {
+    private clickVideoBtn() {
         mk.audio.playEffect("button");
 
         // 看广告
@@ -32,14 +30,15 @@ export default class LineUpUI extends cc.Component {
             mk.console.log("watchAD:" + success);
             if (success) {
                 mk.tip.pop('插队成功');
+                mk.ad.videoAdType = VideoAdType.video_init_20;
                 gData.adData.watchVideo(null);
                 //gData.walletCashOutData.HttpCashOut2(gData.lineUpUIData.cashId);
             }
         });
-        
+
 
     }
-    private clickCloseBtn(){
+    private clickCloseBtn() {
 
         mk.audio.playEffect("button");
     }