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

handleInspireVideo

parent 1dd27f04
......@@ -170,6 +170,8 @@
var TASignScreen = '328187'
// 暂停插屏广告位
var TAPauseScreen = '328188'
// 激励视频兜底广告位
var TAInspireOther = '328189'
</script>
<div id="video-contanier"></div>
......
export const handleInspireVideo = (
import { NetManager } from "../libs/tw/manager/NetManager";
export default function (
returnCallback: (s: boolean) => void,
completeCallback: Function,
slotid: string,
type: number,
isIndex = false
) => {
) {
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";
import { createEffect2MovieClip } from "../effect/createEffect2";
import { NetName } from "../../libs/tw/enum/NetName";
import { handleVideo } from "../myVideo/videoCtrl";
import handleInspireVideo from "../inspireVideo";
import { getUrl } from "../myVideo/getDefaultConfig";
let doHelpFlag = false;
......@@ -65,7 +66,7 @@ export default class MapScene extends Scene {
NetManager.ins.showLog(getlogItem(14))
this["wuhanGroup"].addEventListener(egret.TouchEvent.TOUCH_TAP, () => {
NetManager.ins.clickLog(getlogItem(14))
handleVideo(s => {
handleInspireVideo(s => {
if (s) {
Loading.instace.show();
NetManager.ins.getIconAward(succ => {
......@@ -310,7 +311,7 @@ export default class MapScene extends Scene {
}, () => {
//上面没回调过。就显示toast
if (!this['tuiaRewardMark']) showToast("活动未完成,无法领取奖励");
})
}, window["TAInspireAct"])
}, 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