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> <template>
<div <div
v-show="show" v-if="show"
class="wwads-cn wwads-vertical" class="wwads-cn wwads-vertical"
data-id="148" data-id="148"
style="z-index:10000;position:fixed;bottom:33px;right:5px;max-width:200px;padding:10px;border-radius:5px;" style="z-index:10000;position:fixed;bottom:33px;right:5px;max-width:200px;padding:10px;border-radius:5px;"
@@ -11,22 +11,12 @@
export default { export default {
data() { data() {
return { return {
show: false show: true
} }
}, },
created() { created() {
const _this = this
if (window._AdBlockInit === undefined) { if (window._AdBlockInit === undefined) {
_this.show = false 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)
} }
} }
} }

View File

@@ -10,12 +10,15 @@
<span v-if="$store.state.settings.caseNumber"> </span> <span v-if="$store.state.settings.caseNumber"> </span>
<a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a> <a href="https://beian.miit.gov.cn/#/Integrated/index" target="_blank">{{ $store.state.settings.caseNumber }}</a>
</div> </div>
<wwads />
</section> </section>
</template> </template>
<script> <script>
import wwads from '@/components/Ad'
export default { export default {
name: 'AppMain', name: 'AppMain',
components: { wwads },
computed: { computed: {
cachedViews() { cachedViews() {
return this.$store.state.tagsView.cachedViews return this.$store.state.tagsView.cachedViews
@@ -23,12 +26,6 @@ export default {
key() { key() {
return this.$route.path return this.$route.path
} }
},
watch: {
'$route.path': {
handler: function() {
}
}
} }
} }
</script> </script>

View File

@@ -17,9 +17,6 @@ import './assets/styles/element-variables.scss'
// global css // global css
import './assets/styles/index.scss' import './assets/styles/index.scss'
// AD
import components from '@/components/Ad/components.js'
import App from './App' import App from './App'
import store from './store' import store from './store'
import router from './router/routers' import router from './router/routers'
@@ -33,7 +30,6 @@ Vue.use(dict)
Vue.use(Element, { Vue.use(Element, {
size: Cookies.get('size') || 'small' // set element-ui default size size: Cookies.get('size') || 'small' // set element-ui default size
}) })
Vue.use(components)
Vue.config.productionTip = false Vue.config.productionTip = false

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container">
<div v-if="crud.props.searchToggle"> <div v-if="crud.props.searchToggle">

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<!--表单组件--> <!--表单组件-->
<el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu > 0" :title="crud.status.title" width="500px"> <el-dialog append-to-body :close-on-click-modal="false" :before-close="crud.cancelCU" :visible="crud.status.cu > 0" :title="crud.status.title" width="500px">
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container">
<eHeader :dict="dict" :permission="permission" /> <eHeader :dict="dict" :permission="permission" />

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container">
<div v-if="crud.props.searchToggle"> <div v-if="crud.props.searchToggle">

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container">
<div v-if="crud.props.searchToggle"> <div v-if="crud.props.searchToggle">

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<!--工具栏--> <!--工具栏-->
<div class="head-container"> <div class="head-container">
<div v-if="crud.props.searchToggle"> <div v-if="crud.props.searchToggle">

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<el-row :gutter="20"> <el-row :gutter="20">
<el-col :xs="24" :sm="24" :md="8" :lg="6" :xl="5" style="margin-bottom: 10px"> <el-col :xs="24" :sm="24" :md="8" :lg="6" :xl="5" style="margin-bottom: 10px">
<el-card class="box-card"> <el-card class="box-card">

View File

@@ -1,7 +1,5 @@
<template> <template>
<div class="app-container"> <div class="app-container">===
<!--广告-->
<wwads />
<el-row :gutter="20"> <el-row :gutter="20">
<!--侧边部门数据--> <!--侧边部门数据-->
<el-col :xs="9" :sm="6" :md="5" :lg="4" :xl="4"> <el-col :xs="9" :sm="6" :md="5" :lg="4" :xl="4">