Commit f11a8fb1 authored by 张华挺's avatar 张华挺

handleInspireVideo

parent 1dd27f04
...@@ -170,6 +170,8 @@ ...@@ -170,6 +170,8 @@
var TASignScreen = '328187' var TASignScreen = '328187'
// 暂停插屏广告位 // 暂停插屏广告位
var TAPauseScreen = '328188' var TAPauseScreen = '328188'
// 激励视频兜底广告位
var TAInspireOther = '328189'
</script> </script>
<div id="video-contanier"></div> <div id="video-contanier"></div>
......
export const handleInspireVideo = ( import { NetManager } from "../libs/tw/manager/NetManager";
export default function (
returnCallback: (s: boolean) => void, returnCallback: (s: boolean) => void,
completeCallback: Function, completeCallback: Function,
slotid: string, slotid: string,
type: number, type: number,
isIndex = false isIndex = false
) => { ) {
window["showTTAd"](isIndex ? window["TTIndexVideo"] : window["TTOtherVideo"], 2) window["showTTAd"](isIndex ? window["TTIndexVideo"] : window["TTOtherVideo"], 2)
window["dianxingVideoPlay"] = window["lastInspireShow"] = () => {
NetManager.ins.getTuiaAd(() => {
returnCallback(true)
}, null, isIndex ? window["TAInspireAct"] : window["TAInspireOther"])
}
} }
...@@ -27,6 +27,7 @@ import RedBagAni, { createRedBagIcon } from "./RedBagAni"; ...@@ -27,6 +27,7 @@ import RedBagAni, { createRedBagIcon } from "./RedBagAni";
import { createEffect2MovieClip } from "../effect/createEffect2"; import { createEffect2MovieClip } from "../effect/createEffect2";
import { NetName } from "../../libs/tw/enum/NetName"; import { NetName } from "../../libs/tw/enum/NetName";
import { handleVideo } from "../myVideo/videoCtrl"; import { handleVideo } from "../myVideo/videoCtrl";
import handleInspireVideo from "../inspireVideo";
import { getUrl } from "../myVideo/getDefaultConfig"; import { getUrl } from "../myVideo/getDefaultConfig";
let doHelpFlag = false; let doHelpFlag = false;
...@@ -65,7 +66,7 @@ export default class MapScene extends Scene { ...@@ -65,7 +66,7 @@ export default class MapScene extends Scene {
NetManager.ins.showLog(getlogItem(14)) NetManager.ins.showLog(getlogItem(14))
this["wuhanGroup"].addEventListener(egret.TouchEvent.TOUCH_TAP, () => { this["wuhanGroup"].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(14)) NetManager.ins.clickLog(getlogItem(14))
handleVideo(s => { handleInspireVideo(s => {
if (s) { if (s) {
Loading.instace.show(); Loading.instace.show();
NetManager.ins.getIconAward(succ => { NetManager.ins.getIconAward(succ => {
...@@ -310,7 +311,7 @@ export default class MapScene extends Scene { ...@@ -310,7 +311,7 @@ export default class MapScene extends Scene {
}, () => { }, () => {
//上面没回调过。就显示toast //上面没回调过。就显示toast
if (!this['tuiaRewardMark']) showToast("活动未完成,无法领取奖励"); if (!this['tuiaRewardMark']) showToast("活动未完成,无法领取奖励");
}) }, window["TAInspireAct"])
}, this) }, this)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment