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.
38 lines
903 B
38 lines
903 B
3 weeks ago
|
<template>
|
||
|
<!-- ok -->
|
||
|
<view class="wanlpage-banner" :style="[pageData.style]">
|
||
|
<swiper class="screen-swiper square-dot" :style="{height: pageData.params.height}" :indicator-dots="true" :circular="true" :autoplay="true" :interval="pageData.params.interval" duration="500">
|
||
|
<swiper-item v-for="(image, keys) in pageData.data" :key="keys" @tap="$wanlshop.on(image.link)">
|
||
|
<image :src="$wanlshop.oss(image.image, 414, 0, 1, 'transparent', 'png')" mode="aspectFill"></image>
|
||
|
</swiper-item>
|
||
|
</swiper>
|
||
|
</view>
|
||
|
</template>
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "WanlPageBanner",
|
||
|
props: {
|
||
|
pageData: {
|
||
|
type: Object,
|
||
|
default: function() {
|
||
|
return {
|
||
|
name: '',
|
||
|
type: '',
|
||
|
params: [],
|
||
|
style: [],
|
||
|
data: []
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
<style lang="scss">
|
||
|
.screen-swiper{
|
||
|
min-height: 100rpx !important;
|
||
|
image{
|
||
|
overflow: hidden;
|
||
|
}
|
||
|
}
|
||
|
</style>
|