focus.wxml 820 Bytes
<wxs src="../../../wxs/helper.wxs" module="helper" />
<view class="resource-focus">
    <swiper class="swiper-wrapper" indicator-dots="{{indicatorDots}}"
            autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}"
            circular="{{circular}}" bindchange="swiperChange">
        <block wx:for="{{swiperList}}" wx:key="{{index}}">
            <swiper-item>
                <anchor url="{{item.url}}">
                    <image mode="widthFix" src="{{helper.image(item.src, 750, 480)}}" class="slide-image"/>
                </anchor>
            </swiper-item>
        </block>
    </swiper>
    <view class="dots">
        <block wx:for="{{swiperList}}" wx:key="unique">
            <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view>
        </block>
    </view>
</view>