From add84f6e4be1fbd61e96e4e3f10b94e755317b16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=8E=AB=E5=94=90=E5=B0=BC?= <1431128779@qq.com> Date: Tue, 2 Jul 2024 17:43:18 +0800 Subject: [PATCH] =?UTF-8?q?update:=20=E6=96=87=E7=AB=A0=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E5=B9=BF=E5=91=8A=E5=AD=97=E6=AE=B5=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pagesA/advertise/advertise.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pagesA/advertise/advertise.vue b/pagesA/advertise/advertise.vue index aec759b..0fe750a 100644 --- a/pagesA/advertise/advertise.vue +++ b/pagesA/advertise/advertise.vue @@ -55,8 +55,8 @@ export default { } }, computed: { - adConfigs() { - return this.$tm.vx.getters().getConfigs.adConfig; + toolsPluginConfigs() { + return this.$tm.vx.getters().getConfigs?.pluginConfig?.toolsPlugin || {}; } }, onLoad(options) { @@ -76,7 +76,7 @@ export default { adLoad() { if (wx.createRewardedVideoAd) { videoAd = wx.createRewardedVideoAd({ - adUnitId: this.adConfigs.rewardedVideoAdId //你的广告key + adUnitId: this.toolsPluginConfigs.rewardedVideoAdId //你的广告key }) videoAd.onError(err => { }) @@ -91,7 +91,7 @@ export default { } }, openVideoAd: function () { - if (videoAd && this.adConfigs.rewardedVideoAdId != '') { + if (videoAd && this.toolsPluginConfigs.rewardedVideoAdId !== '') { videoAd.show().catch(err => { // 失败重试 console.log("广告拉取失败")