test ad
This commit is contained in:
24
src/components/Ad/index.vue
Normal file
24
src/components/Ad/index.vue
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<template>
|
||||||
|
<div
|
||||||
|
v-if="show"
|
||||||
|
id="ww-container"
|
||||||
|
class="wwads-cn wwads-vertical"
|
||||||
|
data-id="148"
|
||||||
|
style="z-index:10000;padding: 12px 10px;"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
show: true
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
if (window._AdBlockInit === undefined) {
|
||||||
|
this.show = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
@@ -32,6 +32,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
|
<Ad />
|
||||||
<!-- 底部 -->
|
<!-- 底部 -->
|
||||||
<div v-if="$store.state.settings.showFooter" id="el-login-footer">
|
<div v-if="$store.state.settings.showFooter" id="el-login-footer">
|
||||||
<span v-html="$store.state.settings.footerTxt" />
|
<span v-html="$store.state.settings.footerTxt" />
|
||||||
@@ -42,6 +43,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
import Ad from '@/components/Ad'
|
||||||
import { encrypt } from '@/utils/rsaEncrypt'
|
import { encrypt } from '@/utils/rsaEncrypt'
|
||||||
import Config from '@/settings'
|
import Config from '@/settings'
|
||||||
import { getCodeImg } from '@/api/login'
|
import { getCodeImg } from '@/api/login'
|
||||||
@@ -50,6 +52,7 @@ import qs from 'qs'
|
|||||||
import Background from '@/assets/images/background.webp'
|
import Background from '@/assets/images/background.webp'
|
||||||
export default {
|
export default {
|
||||||
name: 'Login',
|
name: 'Login',
|
||||||
|
components: { Ad },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
Background: Background,
|
Background: Background,
|
||||||
|
|||||||
Reference in New Issue
Block a user