3c8f179e by simon

默认提交

1 parent 796b6df0
......@@ -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({
......
......@@ -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();
}
});
},
......