|
@@ -1,5 +1,6 @@
|
|
|
import { GUIManager } from "../../../engines/gui/GUIManager";
|
|
|
import GUIMediator from "../../../engines/gui/GUIMediator";
|
|
|
+import { LiangLiangSDK } from "../../../platforms/libs/liangliangSDK";
|
|
|
import { PlatformManager } from "../../../platforms/PlatformManager";
|
|
|
import UI_WX_S_01 from "../../../ui/WXSExport/UI_WX_S_01";
|
|
|
import Main from "../../Main";
|
|
@@ -43,12 +44,20 @@ export default class WXS01Mediator extends GUIMediator
|
|
|
}
|
|
|
|
|
|
private CloseButtonClick():void{
|
|
|
- //1.广告
|
|
|
- //2.cpa
|
|
|
- this.VideoCallBack();
|
|
|
+ if(LiangLiangSDK.CanWuChu()){
|
|
|
+ //1.广告
|
|
|
+ PlatformManager.showRewardedVideo(this.videoCallBack.bind(this),this.videoCallBack.bind(this));
|
|
|
+ //2.cpa
|
|
|
+ PlatformManager.randomNavigate2Mini();
|
|
|
+ }
|
|
|
+ this.gotoWxs02();
|
|
|
+ }
|
|
|
+
|
|
|
+ private videoCallBack():void{
|
|
|
+ this.gotoWxs02();
|
|
|
}
|
|
|
|
|
|
- private VideoCallBack():void{
|
|
|
+ private gotoWxs02():void{
|
|
|
this.HideSelf();
|
|
|
GUIManager.single.Show(UIKeys.WXS02);
|
|
|
}
|