<template>
    <div class="adversing" v-if="imgurl">
        <div class="inner">
            <a href="http://nzgxw.org.cn/" v-if="imgurl.image_url==null" target="_blank" :title="imgurl.place_name" data-tag="imgurl.ad_tag">
                <img :src="imgurl.thumb" :alt="imgurl.place_name">
            </a>
            <a :href="imgurl.image_url" v-else :title="imgurl.ad_name" data-tag="imgurl.ad_tag">
                <img :src="imgurl.image_src" :alt="imgurl.ad_name">
            </a>
        </div>
    </div>
</template>

<script setup>
//import {onMounted } from 'vue';
const props = defineProps({
    imgurl: Array
});
//广告移动至客户端获取，并且按照标识单独获取
</script>

<style lang="less">
// 广告位logo
.adversing {
    width: 1200px;
    height: 90px;
    margin:0 auto;
    margin-top: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    a {
        display: block;
    }
    img {
        width: 100%;
        height: 90px;
    }  
}
</style>