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
}
}
}

View File

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

View File

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

View File

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

View File

@@ -1,7 +1,5 @@
<template>
<div class="app-container">
<!--广告-->
<wwads />
<div class="app-container">===
<!--表单组件-->
<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">

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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