| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import { VideoAdType } from "../../data/GameData";
- const { ccclass, property } = cc._decorator;
- @ccclass
- export default class LineUpUI extends cc.Component {
- @property(cc.Label)
- private lbl_tip: cc.Label = null;
- start() {
- gData.lineUpUIData.refresh = false;
- this.lbl_tip.string = `提现排队中,你前面还有${gData.lineUpUIData.personCount}人`;
- }
- 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() {
- mk.audio.playEffect("button");
- // 看广告
- mk.ad.watchAd((success: boolean) => {
- 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() {
- mk.audio.playEffect("button");
- }
- }
|