1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-11 12:49:30 +08:00

修复广告id变量引用问题

This commit is contained in:
liuyiwuqing
2024-05-28 17:34:34 +08:00
parent 9721932c34
commit 0386c66b70
+2 -2
View File
@@ -71,7 +71,7 @@ export default {
adLoad() {
if (wx.createRewardedVideoAd) {
videoAd = wx.createRewardedVideoAd({
adUnitId: haloAdConfig.rewardedVideoAd //你的广告key
adUnitId: this.$haloAdConfig.rewardedVideoAd //你的广告key
})
videoAd.onError(err => {
})
@@ -86,7 +86,7 @@ export default {
}
},
openVideoAd: function () {
if (videoAd && haloAdConfig.rewardedVideoAd != '') {
if (videoAd && this.$haloAdConfig.rewardedVideoAd != '') {
videoAd.show().catch(err => {
// 失败重试
console.log("广告拉取失败")