doc: add google ad

pull/5966/head
tangjinzhou 2 years ago
parent 07907ca7f3
commit 6cd099d691

@ -10,10 +10,10 @@
</a-carousel>
</template>
<template v-else-if="showGoogleAd">
<template v-if="isCN">
<!-- <template v-if="isCN">
<WWAds :key="`WWAds_${$route.path}`" />
</template>
<google-ads-top v-else :key="`GoogleAdsTop_${$route.path}`" />
</template> -->
<google-ads-top :key="`GoogleAdsTop_${$route.path}`" />
</template>
</div>
</template>
@ -23,19 +23,19 @@ import dayjs from 'dayjs';
import isBetween from 'dayjs/plugin/isBetween';
dayjs.extend(isBetween);
import GoogleAdsTop from './GoogleAdsTop.vue';
import WWAds from './WWAds.vue';
// import WWAds from './WWAds.vue';
const isEffective = (start, end) => {
return dayjs().isBetween(start, end);
};
export default {
components: {
GoogleAdsTop,
WWAds,
// WWAds,
},
props: ['isCN', 'isMobile'],
data() {
return {
show: false,
show: true,
showGoogleAd: location.host.indexOf('antdv.com') > -1,
cnAds: [
{

@ -37,8 +37,8 @@
</template>
<a-col :xxxl="20" :xxl="20" :xl="19" :lg="18" :md="18" :sm="24" :xs="24">
<section :class="mainContainerClass">
<!-- <TopAd :is-c-n="isZhCN" /> -->
<WWAdsVue v-if="isZhCN" />
<TopAd v-else />
<Demo v-if="isDemo" :page-data="pageData" :is-zh-c-n="isZhCN">
<component :is="matchCom" />
</Demo>

Loading…
Cancel
Save