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