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> <template>
<div> <div id="rice">
<div ref="inner" class="wwads-cn wwads-horizontal" data-id="62" style="max-width: 350px" /> <div class="wwads-cn wwads-horizontal" data-id="62" style="max-width: 350px" />
</div> </div>
</template> </template>
<script> <script>
export default { export default {
mounted() { // mounted() {
this.load(); // this.load();
}, // },
methods: { // methods: {
load() { // load() {
if (this.scriptDom) { // if (this.scriptDom) {
this.$el.removeChild(this.scriptDom); // this.$el.removeChild(this.scriptDom);
} // }
this.$refs.inner.innerHTML = ''; // this.$refs.inner.innerHTML = '';
const e = document.createElement('script'); // const e = document.createElement('script');
e.src = 'https://wwads.cn/js/makemoney.js'; // e.src = 'https://wwads.cn/js/makemoney.js';
e.async = true; // e.async = true;
this.$el.appendChild(e); // this.$el.appendChild(e);
this.scriptDom = e; // this.scriptDom = e;
}, // },
}, // },
}; };
</script> </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 { Provider, create } from '../../components/_util/store';
import NProgress from 'nprogress'; import NProgress from 'nprogress';
import MobileMenu from '../../components/vc-drawer/src'; import MobileMenu from '../../components/vc-drawer/src';
// import TopAd from './top_ad'; import WWAds from './WWAds.vue';
import GoogleAds from './GoogleAds'; import GoogleAds from './GoogleAds';
import SurelyVue from './surelyVue'; import SurelyVue from './surelyVue';
@ -303,6 +303,7 @@ export default {
<a-col xxl={20} xl={19} lg={19} md={18} sm={24} xs={24}> <a-col xxl={20} xl={19} lg={19} md={18} sm={24} xs={24}>
<section class="main-container main-container-component"> <section class="main-container main-container-component">
{showAd ? <GeektimeAds isMobile={isMobile} /> : null} {showAd ? <GeektimeAds isMobile={isMobile} /> : null}
<WWAds />
{!isMobile ? ( {!isMobile ? (
<div class={['toc-affix', isCN ? 'toc-affix-cn' : '']} style="width: 150px;"> <div class={['toc-affix', isCN ? 'toc-affix-cn' : '']} style="width: 150px;">
{this.getSubMenu(isCN)} {this.getSubMenu(isCN)}

View File

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

View File

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