<template>
    <div class="banner_2">
        <a class="banner_2_a" href="http://nzgxw.org.cn/" v-if="imgurl.image_url == null" target="_blank" :title="imgurl.introduce">
            <img class="banner_2_img" :src="imgurl.thumb" :alt="imgurl.introduce" :id="imgurl.ad_tag" data-tag="imgurl.ad_tag">
        </a>
        <a class="banner_2_a" :href="imgurl.image_url" v-else :title="imgurl.introduce">
            <img class="banner_2_img" :src="imgurl.image_src" :alt="imgurl.introduce" :id="imgurl.ad_tag" data-tag="imgurl.ad_tag">
        </a>
    </div>
</template>

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

<style lang="less" scoped>
    .banner_2 {
        width: 350px;
        height: 139px;
        .banner_2_img {
            width: 350px;
            height: 139px;
        }
    }
</style>