<template>
	<view class="advert-box">
		<image :src="getImgPath(img)" mode="aspectFill"></image>
	</view>
</template>

<script>
	export default {
		props: {
			img: {
				type: String,
				default: () => '/static/frontend/advert.png'
			},
		}
	};
</script>

<style lang="scss" scoped>
	.advert-box {
		width: 690rpx;
		height: 110rpx;
		margin: 30rpx auto 0;
		background: transparent;
		image {
			width: 100%;
			height: 100%;
		}
	}
</style>