<template>
    <!-- 广告位 -->
    <div class="adversing" v-if="imgurl">
        <div class="inner">
            <a href="http://www.baidu.com" title="三农资讯网_广告位2" v-if="imgurl.image_url==null" target="_blank">
                <img :src="imgurl.thumb" alt="三农资讯网_广告位2">
            </a>
            <a :href="imgurl.image_url" title="三农资讯网_广告位2" v-else>
                <img :src="imgurl.image_src" alt="三农资讯网_广告位2">
            </a>
        </div>
    </div>
</template>

<script setup>
const props = defineProps({
    imgurl: String
});
</script>

<style lang="less">
// 广告位logo
.adversing {
    width: 100%;
    height: 90px;
    margin: 30px 0 30px;

    img {
        width: 1200px;
        height: 90px;
    }
}
</style>