This commit is contained in:
Zheng Jie
2022-08-01 18:23:14 +08:00
parent 6ffcc5435f
commit 27e01670ba
12 changed files with 14 additions and 52 deletions

View File

@@ -1,5 +0,0 @@
import wwads from '@/components/Ad'
export default (Vue) => {
Vue.component('wwads', wwads)
}

View File

@@ -1,6 +1,6 @@
<template>
<div
v-show="show"
v-if="show"
class="wwads-cn wwads-vertical"
data-id="148"
style="z-index:10000;position:fixed;bottom:33px;right:5px;max-width:200px;padding:10px;border-radius:5px;"
@@ -11,22 +11,12 @@
export default {
data() {
return {
show: false
show: true
}
},
created() {
const _this = this
if (window._AdBlockInit === undefined) {
_this.show = false
} else {
const oScript = document.createElement('script')
oScript.type = 'text/javascript'
oScript.src = '//cdn.wwads.cn/js/makemoney.js'
document.body.appendChild(oScript)
window._AdBlockInit()
setTimeout(function() {
_this.show = true
}, 650)
this.show = false
}
}
}