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 @@
...
@@ -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>
...
...
egret/src/inspireVideo.ts
View file @
f11a8fb1
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"
])
}
}
}
egret/src/mapScene/MapScene.ts
View file @
f11a8fb1
...
@@ -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
=>
{
handle
Inspire
Video
(
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
)
}
}
...
...
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