You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
mianxueyoupin/components/wanl-page-advert-image/wanl-page-advert-image.vue

31 lines
658 B

<template>
<view>
<view class="wanlpage-advert-image" v-for="(item, index) in advertData" :key="item.id" v-if="item.id == pageData.data[0].advertLink" @tap="onAdvert(item)">
<image :src="$wanlshop.oss(item.media, 414, 0, 1, 'transparent', 'png')" :style="[pageData.style]"></image>
</view>
</view>
</template>
<script>
export default {
name: "WanlPageAdvertImage",
props: {
pageData: {
type: Object,
default: function() {
return {
name: '图片组件',
type: 'image',
params: [],
style: []
}
}
},
advertData: {
type: Array,
default: () => []
}
}
}
</script>
<style>
</style>