<template>
	<div class="wrapper">
		<a v-if="advertText.link" :href="advertText.link">
			<marquee>{{advertText.words}}</marquee>
		</a>
		<a v-else href="javascript:;">
			<marquee>{{advertText.words}}</marquee>
		</a>
	</div>
</template>
<script>
	import { mapGetters, mapMutations } from 'vuex'

	export default {
		computed: {
			...mapGetters({
                'advertText': 'advertText',
            }),
		},
		mounted() {
			
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
.wrapper {
	width: 100%;
	height: 20px;
	line-height: 20px;
	background: rgba(0, 0, 0, 0.3);
	font-size: 12px;

	a {
		display: block;
		height: 100%;
		color: #fff;
	}
}
</style>
