doc: add ad
parent
21fd0c74e8
commit
b3a0263c03
|
@ -59,7 +59,7 @@
|
||||||
gtag('config', 'UA-151755889-1');
|
gtag('config', 'UA-151755889-1');
|
||||||
</script>
|
</script>
|
||||||
<!-- Hotjar Tracking Code for http://vue.ant.design -->
|
<!-- Hotjar Tracking Code for http://vue.ant.design -->
|
||||||
<script>
|
<!-- <script>
|
||||||
(function (h, o, t, j, a, r) {
|
(function (h, o, t, j, a, r) {
|
||||||
if (location.href.indexOf('iframe') === -1) {
|
if (location.href.indexOf('iframe') === -1) {
|
||||||
h.hj =
|
h.hj =
|
||||||
|
@ -78,6 +78,7 @@
|
||||||
a.appendChild(r);
|
a.appendChild(r);
|
||||||
}
|
}
|
||||||
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
|
})(window, document, 'https://static.hotjar.com/c/hotjar-', '.js?sv=');
|
||||||
</script>
|
</script> -->
|
||||||
|
<script type="text/javascript" src="https://cdn.wwads.cn/js/makemoney.js" async></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -1,27 +1,39 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div id="rice">
|
||||||
<div ref="inner" class="wwads-cn wwads-horizontal" data-id="62" style="max-width: 350px"></div>
|
<div class="wwads-cn wwads-vertical" data-id="62" style="max-width: 200px"></div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { defineComponent } from 'vue';
|
import { defineComponent } from 'vue';
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
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: 125px;
|
||||||
|
position: fixed;
|
||||||
|
z-index: 19;
|
||||||
|
bottom: 10px;
|
||||||
|
right: 10px;
|
||||||
|
padding: 10px;
|
||||||
|
border-radius: 3px;
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
<Footer />
|
<Footer />
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<RightBottomAd :is-c-n="isZhCN" :is-mobile="isMobile" />
|
<WWAdsVue v-if="isZhCN && !isMobile" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
|
@ -93,6 +93,7 @@ import RightBottomAd from '../components/rice/right_bottom_rice.vue';
|
||||||
import { CloseOutlined, MenuOutlined } from '@ant-design/icons-vue';
|
import { CloseOutlined, MenuOutlined } from '@ant-design/icons-vue';
|
||||||
import ThemeIcon from './ThemeIcon.vue';
|
import ThemeIcon from './ThemeIcon.vue';
|
||||||
import surelyVueVue from '../components/surelyVue.vue';
|
import surelyVueVue from '../components/surelyVue.vue';
|
||||||
|
import WWAdsVue from '../components/rice/WWAds.vue';
|
||||||
|
|
||||||
const rControl = /[\u0000-\u001f]/g;
|
const rControl = /[\u0000-\u001f]/g;
|
||||||
const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.?/]+/g;
|
const rSpecial = /[\s~`!@#$%^&*()\-_+=[\]{}|\\;:"'<>,.?/]+/g;
|
||||||
|
@ -112,6 +113,7 @@ export default defineComponent({
|
||||||
MenuOutlined,
|
MenuOutlined,
|
||||||
ThemeIcon,
|
ThemeIcon,
|
||||||
surelyVueVue,
|
surelyVueVue,
|
||||||
|
WWAdsVue,
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
|
|
Loading…
Reference in New Issue