update
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<div
|
<div id="ww-container">
|
||||||
v-if="show"
|
<div
|
||||||
class="wwads-cn wwads-vertical"
|
v-if="show"
|
||||||
data-id="148"
|
class="wwads-cn wwads-vertical"
|
||||||
style="z-index:10000;position:fixed;bottom:33px;right:1px;max-width:200px;padding: 12px 10px;border-radius:5px;"
|
data-id="148"
|
||||||
/>
|
style="z-index:10000;position:fixed;bottom:33px;right:1px;max-width:200px;padding: 12px 10px;border-radius:5px;"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@@ -16,10 +16,20 @@ router.beforeEach((to, from, next) => {
|
|||||||
var _hmt = _hmt || [];
|
var _hmt = _hmt || [];
|
||||||
(function() {
|
(function() {
|
||||||
// 百度统计
|
// 百度统计
|
||||||
var hm = document.createElement('script')
|
const hm = document.createElement('script')
|
||||||
hm.src = 'https://hm.baidu.com/hm.js?300a24a5326d0e7a0ff1b14c4e8d9056'
|
hm.src = 'https://hm.baidu.com/hm.js?300a24a5326d0e7a0ff1b14c4e8d9056'
|
||||||
var s = document.getElementsByTagName('script')[0]
|
const s = document.getElementsByTagName('script')[0]
|
||||||
s.parentNode.insertBefore(hm, s)
|
s.parentNode.insertBefore(hm, s)
|
||||||
|
// define ads element
|
||||||
|
const ads = document.getElementById('ww-container')
|
||||||
|
// ad parent node
|
||||||
|
const prn = ads.parentNode
|
||||||
|
// lets clone ads block
|
||||||
|
const cln = ads.cloneNode(true)
|
||||||
|
// remove the current ads block completely
|
||||||
|
prn.removeChild(ads)
|
||||||
|
// append a newly cloned one
|
||||||
|
prn.appendChild(cln)
|
||||||
})()
|
})()
|
||||||
}, 0)
|
}, 0)
|
||||||
if (to.meta.title) {
|
if (to.meta.title) {
|
||||||
|
|||||||
Reference in New Issue
Block a user