123456789101112131415161718192021222324252627282930313233343536373839 |
- <template>
- <AdSingle
- :ad="getContentAdID"
- :showTag="false"
- :showCloseIcon="false"
- class="adsense-container" />
- </template>
- <script>
- import AdSingle from '@/components/ad/Ad'
- export default {
- name: 'Adsense',
- components: {
- AdSingle
- },
- computed: {
- getContentAdID () {
- return `equity_mobile_vip_${this.type}_code`
- }
- },
- data () {
- return {
- type: 'buy'
- }
- },
- created () {
- this.getQuery()
- },
- methods: {
- getQuery () {
- this.type = this.$route.query.type || 'buy'
- }
- }
- }
- </script>
- <style lang="scss">
- .adsense-container {
- margin-bottom: 8px;
- }
- </style>
|