diff --git a/components/dt-video/dt-video.js b/components/dt-video/dt-video.js index 381aea2..75618de 100644 --- a/components/dt-video/dt-video.js +++ b/components/dt-video/dt-video.js @@ -387,19 +387,7 @@ this.uid = value; } } catch (e) {} - // 在页面onLoad回调事件中创建插屏广告实例 - if (wx.createInterstitialAd) { - this.interstitialAd = wx.createInterstitialAd({ - adUnitId: 'adunit-4e9e95b202421a08' - }); - this.interstitialAd.onLoad(() => {}); - this.interstitialAd.onError(err => { - console.log(err); - }); - this.interstitialAd.onClose(() => { - uni.createVideoContext(`video${this.current}`, this).play(); - }); - } + }, mounted: function mounted() { // this.title = '第' + 1 + '集' @@ -414,18 +402,7 @@ return; }, timeupdate: function (e) { - const time = parseInt(e.detail.currentTime); - const row = this.list[this.current]; - if (row.order < 10 && (time === 20 || time === 60)) { - setTimeout(() => { - this.interstitialAd - .show() - .then(() => { - uni.createVideoContext(`video${this.current}`, this).pause(); - }) - .catch(err => {}); - }, 1000); - } + }, progress(e) {