feat: hide wwads for non-zh user
This commit is contained in:
parent
1956217fe7
commit
aebd224338
@ -9,7 +9,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.show = navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i)
|
this.show = navigator.userAgent.match(/(iPhone|iPod|Android|ios|iPad)/i) && navigator.language.indexOf('zh') > -1
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,3 +1,15 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="wwads-cn wwads-vertical" data-id="296" style="margin-bottom: 20px;"></div>
|
<div v-if="show" class="wwads-cn wwads-vertical" data-id="296" style="margin-bottom: 20px;"></div>
|
||||||
</template>
|
</template>
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
show: false
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
this.show = navigator.language.indexOf('zh') > -1
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user