| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- /*
- * @Author: mojunshou 1637302775@qq.com
- * @Date: 2025-03-21 11:45:43
- * @LastEditors: mojunshou 1637302775@qq.com
- * @LastEditTime: 2025-04-10 15:07:56
- * @Description: 提现必返
- */
- import { _decorator, Label } from 'cc';
- import { oops } from 'db://oops-framework/core/Oops';
- import { DeviceUtil } from 'db://oops-framework/core/utils/DeviceUtil';
- import { GameComponent } from "db://oops-framework/module/common/GameComponent";
- import { UIID } from '../common/config/GameUIConfig';
- import { CocosHandler } from '../common/manager/CocosHandler';
- const { ccclass, property } = _decorator;
- /** 显示对象控制 */
- @ccclass('CashRebateView')
- export class CashRebateView extends GameComponent {
- private _num: number = 0;
- private lab_num: Label = null!;
- protected start() {
- this.lab_num = this.node.getChildByPath("Sprite/lab_num")!.uiLabel;
- }
- private btn_ok() {
- //看广告
- if (DeviceUtil.isNative && DeviceUtil.isAndroid) {
- CocosHandler.inst.ad_interstitial("105");
- } else {
- oops.gui.remove(UIID.CashRebate);
- }
- }
- private btn_close() {
- //看广告
- if (DeviceUtil.isNative && DeviceUtil.isAndroid) {
- CocosHandler.inst.ad_interstitial("105");
- } else {
- oops.gui.remove(UIID.CashRebate);
- }
- }
- }
|