From b170de975d5958f8247b6b1657fb27ccee899e4a Mon Sep 17 00:00:00 2001 From: zby Date: Thu, 29 Dec 2022 08:56:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=8F=E8=94=BD=E8=A7=86=E9=A2=91=E5=B9=BF?= =?UTF-8?q?=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/dt-video/dt-video.js | 27 ++------------------------- 1 file changed, 2 insertions(+), 25 deletions(-) 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) {