Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
home-with-kids-mp
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
3c8f179e
authored
2020-01-21 16:48:30 +0800
by
simon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
默认提交
1 parent
796b6df0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
src/pages/detail/detail.js
src/pages/index/index.js
src/pages/detail/detail.js
View file @
3c8f179
...
...
@@ -68,13 +68,16 @@ Page({
_this
.
onReplayHandler
();
}).
catch
((
err
)
=>
{});;
this
.
initData
();
if
(
app
.
globalData
.
adConfigure
&&
app
.
globalData
.
adConfigure
.
ad_config_03
==
1
)
{
this
.
addRewardedVideo
();
}
});
wx
.
aldstat
.
sendEvent
(
'进入页面'
,
{
'页面名字'
:
'视频详情页'
});
// 检查是否添加激励广告
this
.
checkPlayTimes
().
then
((
result
)
=>
{
if
(
wx
.
createRewardedVideoAd
)
{
rewardedVideoAd
=
wx
.
createRewardedVideoAd
({
...
...
src/pages/index/index.js
View file @
3c8f179
...
...
@@ -34,8 +34,6 @@ Page({
],
adConfigure
:
{},
//广告位配置
options
:
{},
config
:
{},
NewYear
:
false
},
onShareAppMessage
(
res
)
{
if
(
res
.
from
===
'button'
)
{
...
...
@@ -62,19 +60,21 @@ Page({
this
.
setData
({
options
})
this
.
initData
();
this
.
setData
({
config
:
app
.
config
,
ENV
:
app
.
config
.
ENV
,
NewYear
:
app
.
config
.
ENV
==
"NewYear"
})
wx
.
aldstat
.
sendEvent
(
'进入页面'
,
{
'页面名字'
:
'首页'
});
this
.
queryAdConfigure
().
then
((
result
)
=>
{
this
.
initData
();
this
.
addInterstitialAd
();
if
(
app
.
globalData
.
adConfigure
&&
app
.
globalData
.
adConfigure
.
ad_config_02
==
1
)
{
this
.
showInterstitialAd
();
}
if
(
app
.
globalData
.
adConfigure
&&
app
.
globalData
.
adConfigure
.
ad_config_01
==
1
)
{
this
.
addInterstitialAd
();
}
});
},
...
...
Please
register
or
sign in
to post a comment