Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xiaoxiaoleTuia
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王剑峰
xiaoxiaoleTuia
Commits
f11a8fb1
Commit
f11a8fb1
authored
Feb 29, 2020
by
张华挺
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
handleInspireVideo
parent
1dd27f04
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
index.html
egret/index.html
+2
-0
inspireVideo.ts
egret/src/inspireVideo.ts
+9
-3
MapScene.ts
egret/src/mapScene/MapScene.ts
+3
-2
No files found.
egret/index.html
View file @
f11a8fb1
...
...
@@ -170,6 +170,8 @@
var
TASignScreen
=
'328187'
// 暂停插屏广告位
var
TAPauseScreen
=
'328188'
// 激励视频兜底广告位
var
TAInspireOther
=
'328189'
</script>
<div
id=
"video-contanier"
></div>
...
...
egret/src/inspireVideo.ts
View file @
f11a8fb1
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"
])
}
}
egret/src/mapScene/MapScene.ts
View file @
f11a8fb1
...
...
@@ -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
=>
{
handle
Inspire
Video
(
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
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment