|
|
@@ -2,7 +2,7 @@
|
|
|
* @Author: mojunshou 1637302775@qq.com
|
|
|
* @Date: 2025-03-21 11:57:43
|
|
|
* @LastEditors: mojunshou 1637302775@qq.com
|
|
|
- * @LastEditTime: 2025-04-25 15:03:54
|
|
|
+ * @LastEditTime: 2025-04-25 11:10:04
|
|
|
* @Description: 惊喜翻倍弹窗
|
|
|
*/
|
|
|
import { _decorator, instantiate, Label, Node, Prefab, UITransform } from 'cc';
|
|
|
@@ -14,6 +14,7 @@ import { ADHandler } from '../common/manager/ADHandler';
|
|
|
import { smc } from '../common/SingletonModuleComp';
|
|
|
import { BricsItem } from './BricsItem';
|
|
|
import { DCHandler } from '../common/manager/DCHandler';
|
|
|
+import { ServerHandler } from '../common/manager/ServerHandler';
|
|
|
|
|
|
const { ccclass, property } = _decorator;
|
|
|
|
|
|
@@ -78,9 +79,8 @@ export class DoubleRewardsView extends VMParent {
|
|
|
|
|
|
|
|
|
btn_alittle() {
|
|
|
- // ServerHandler.inst.getLittleRewards();
|
|
|
oops.gui.remove(UIID.DoubleRewards);
|
|
|
- //插屏广告
|
|
|
+ ServerHandler.inst.getLittleRewards();
|
|
|
ADHandler.inst.showAd(AD_TYPE.Double_Close);
|
|
|
DCHandler.inst.reportData(2000401);
|
|
|
DCHandler.inst.reportData(2000403);
|
|
|
@@ -104,13 +104,14 @@ export class DoubleRewardsView extends VMParent {
|
|
|
if (this.isAuto) {
|
|
|
this.isAuto = false;
|
|
|
oops.gui.remove(UIID.DoubleRewards);
|
|
|
- //插屏广告
|
|
|
+ ServerHandler.inst.getLittleRewards();
|
|
|
ADHandler.inst.showAd(AD_TYPE.Double_Close);
|
|
|
DCHandler.inst.reportData(2000402);
|
|
|
DCHandler.inst.reportData(2000403);
|
|
|
}
|
|
|
-
|
|
|
- this.unschedule(this.callback);
|
|
|
+ if (this.callback) {
|
|
|
+ this.unschedule(this.callback);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
this.schedule(this.callback, 1, this.data.time - 1);
|