<view class='banner' style="background:{{style.backgroundColor}};width:{{style.width}}%;height:{{style.height * 2}}rpx;margin:{{style.margin.top* 2 }}rpx {{style.margin.right* 2 }}rpx {{style.margin.bottom* 2 }}rpx {{style.margin.left* 2 }}rpx;padding:{{style.padding.top* 2 }}rpx {{style.padding.right* 2 }}rpx {{style.padding.bottom* 2 }}rpx {{style.padding.left* 2 }}rpx;">
    <swiper class="swiper" indicator-dots="{{false}}" autoplay="{{true}}" interval="{{5000}}" duration="{{500}}" circular="{{true}}">
        <block wx:for="{{list}}" wx:for-item="banner" wx:key="index">
            <swiper-item bind:tap="goNovaURL" data-item="{{banner}}">
                <block wx:if="{{!banner.type||banner.type=='link'||banner.type=='image'}}">
                    <image class="swiper-image" src="{{banner.image}}" style="width:{{style.imageWidth * 2}}rpx;height:{{style.imageHeight * 2}}rpx;border-radius:{{style.borderRadius * 2}}rpx;" />
                </block>
                <block wx:if="{{banner.type== 'video'}}">
                    <video id="video" controls="{{true}}" poster="{{banner.image}}" style="width:100%;" src="{{banner.url}}" style="width:{{style.imageWidth * 2}}rpx;height:{{style.imageHeight * 2}}rpx;border-radius:{{style.borderRadius * 2}}rpx;" />
                </block>
            </swiper-item>
        </block>
    </swiper>
</view>