<template>
    <div class="adversing" v-if="imgurl">
        <div class="inner">
            <a :href="imgurl.ad_url" v-if="imgurl.image_url==null" target="_blank" :title="imgurl.introduce">
                <img :src="imgurl.thumb" :alt="imgurl.introduce" :id="imgurl.ad_tag"  data-tag="imgurl.ad_tag">
            </a>
            <a :href="imgurl.image_url" v-else :title="imgurl.introduce">
                <img :src="imgurl.image_src" :alt="imgurl.introduce" :id="imgurl.ad_tag" data-tag="imgurl.ad_tag">
            </a>
        </div>
    </div>
</template>

<script setup>
const props = defineProps({
    skinId: Number,//皮肤id
    adData: Array,//广告池
    adTag: String,//广告标识
});
const imgurl = requestAd(props.adData,props.adTag)
</script>

<style lang="less" scoped>
    @import url('@/assets/css/ad/adversing.less');
</style>