doc: update ad

pull/5403/head
tangjinzhou 2022-03-19 16:46:03 +08:00
parent acaad27135
commit 3a85220a57
4 changed files with 35 additions and 20 deletions

View File

@ -1,26 +1,38 @@
<template>
<div>
<div ref="inner" class="wwads-cn wwads-horizontal" data-id="62" style="max-width: 350px" />
<div id="rice">
<div class="wwads-cn wwads-horizontal" data-id="62" style="max-width: 350px" />
</div>
</template>
<script>
export default {
mounted() {
this.load();
},
methods: {
load() {
if (this.scriptDom) {
this.$el.removeChild(this.scriptDom);
}
this.$refs.inner.innerHTML = '';
const e = document.createElement('script');
e.src = 'https://wwads.cn/js/makemoney.js';
e.async = true;
this.$el.appendChild(e);
this.scriptDom = e;
},
},
// mounted() {
// this.load();
// },
// methods: {
// load() {
// if (this.scriptDom) {
// this.$el.removeChild(this.scriptDom);
// }
// this.$refs.inner.innerHTML = '';
// const e = document.createElement('script');
// e.src = 'https://wwads.cn/js/makemoney.js';
// e.async = true;
// this.$el.appendChild(e);
// this.scriptDom = e;
// },
// },
};
</script>
<style scoped>
#rice {
/* width: 180px; */
/* position: fixed; */
/* z-index: 19; */
padding: 10px;
border-radius: 3px;
font-size: 13px;
float: right;
/* background-color: red;
max-height: 150px; */
}
</style>

View File

@ -14,7 +14,7 @@ import { isZhCN } from '../utils/util';
import { Provider, create } from '../../components/_util/store';
import NProgress from 'nprogress';
import MobileMenu from '../../components/vc-drawer/src';
// import TopAd from './top_ad';
import WWAds from './WWAds.vue';
import GoogleAds from './GoogleAds';
import SurelyVue from './surelyVue';
@ -303,6 +303,7 @@ export default {
<a-col xxl={20} xl={19} lg={19} md={18} sm={24} xs={24}>
<section class="main-container main-container-component">
{showAd ? <GeektimeAds isMobile={isMobile} /> : null}
<WWAds />
{!isMobile ? (
<div class={['toc-affix', isCN ? 'toc-affix-cn' : '']} style="width: 150px;">
{this.getSubMenu(isCN)}

View File

@ -82,6 +82,7 @@
</style>
</div>
</div>
<script type="text/javascript" src="https://cdn.wwads.cn/js/makemoney.js" async></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151755889-1"></script>
<script>

View File

@ -47,6 +47,7 @@
<div id="app">
<router-view></router-view>
</div>
<script type="text/javascript" src="https://cdn.wwads.cn/js/makemoney.js" async></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151755889-1"></script>
<script>