默认提交
Showing
2 changed files
with
12 additions
and
9 deletions
... | @@ -68,13 +68,16 @@ Page({ | ... | @@ -68,13 +68,16 @@ Page({ |
68 | _this.onReplayHandler(); | 68 | _this.onReplayHandler(); |
69 | }).catch((err) => {});; | 69 | }).catch((err) => {});; |
70 | this.initData(); | 70 | this.initData(); |
71 | if (app.globalData.adConfigure && app.globalData.adConfigure.ad_config_03 == 1) { | ||
72 | this.addRewardedVideo(); | ||
73 | } | ||
71 | }); | 74 | }); |
72 | 75 | ||
73 | wx.aldstat.sendEvent('进入页面', { | 76 | wx.aldstat.sendEvent('进入页面', { |
74 | '页面名字': '视频详情页' | 77 | '页面名字': '视频详情页' |
75 | }); | 78 | }); |
76 | 79 | ||
77 | 80 | // 检查是否添加激励广告 | |
78 | this.checkPlayTimes().then((result) => { | 81 | this.checkPlayTimes().then((result) => { |
79 | if (wx.createRewardedVideoAd) { | 82 | if (wx.createRewardedVideoAd) { |
80 | rewardedVideoAd = wx.createRewardedVideoAd({ | 83 | rewardedVideoAd = wx.createRewardedVideoAd({ | ... | ... |
... | @@ -34,8 +34,6 @@ Page({ | ... | @@ -34,8 +34,6 @@ Page({ |
34 | ], | 34 | ], |
35 | adConfigure: {}, //广告位配置 | 35 | adConfigure: {}, //广告位配置 |
36 | options: {}, | 36 | options: {}, |
37 | config: {}, | ||
38 | NewYear: false | ||
39 | }, | 37 | }, |
40 | onShareAppMessage(res) { | 38 | onShareAppMessage(res) { |
41 | if (res.from === 'button') { | 39 | if (res.from === 'button') { |
... | @@ -62,19 +60,21 @@ Page({ | ... | @@ -62,19 +60,21 @@ Page({ |
62 | this.setData({ | 60 | this.setData({ |
63 | options | 61 | options |
64 | }) | 62 | }) |
65 | this.initData(); | 63 | |
66 | this.setData({ | ||
67 | config: app.config, | ||
68 | ENV: app.config.ENV, | ||
69 | NewYear: app.config.ENV == "NewYear" | ||
70 | }) | ||
71 | wx.aldstat.sendEvent('进入页面', { | 64 | wx.aldstat.sendEvent('进入页面', { |
72 | '页面名字': '首页' | 65 | '页面名字': '首页' |
73 | }); | 66 | }); |
67 | |||
68 | this.queryAdConfigure().then((result) => { | ||
69 | this.initData(); | ||
74 | this.addInterstitialAd(); | 70 | this.addInterstitialAd(); |
75 | if (app.globalData.adConfigure && app.globalData.adConfigure.ad_config_02 == 1) { | 71 | if (app.globalData.adConfigure && app.globalData.adConfigure.ad_config_02 == 1) { |
76 | this.showInterstitialAd(); | 72 | this.showInterstitialAd(); |
77 | } | 73 | } |
74 | if (app.globalData.adConfigure && app.globalData.adConfigure.ad_config_01 == 1) { | ||
75 | this.addInterstitialAd(); | ||
76 | } | ||
77 | }); | ||
78 | 78 | ||
79 | }, | 79 | }, |
80 | 80 | ... | ... |
-
Please register or sign in to post a comment