<!--pages/picture/picture.wxml-->
<view class="container">
    <view class="page-body">
        <view class="page-section page-section-spacing swiper">
            <swiper    autoplay="true" interval="{{interval}}" duration="{{duration}}"    
                circular="true" current="{{swiperCurrent}}"    bindchange="swiperChange">
                <block wx:for="{{img_url}}" >
                    <swiper-item>
                        <view class="swiper-item"> 
                            <image src="{{item}}"></image>
                        </view>
                    </swiper-item>
                </block>
            </swiper>
        </view>
        <view class="dots"> 
            <block wx:for="{{img_url}}" wx:key="unique"> 
                <view class="dot{{index == swiperCurrent ? ' active' : ''}}"></view> 
            </block> 
        </view>
    </view>
    <!--内容-->
    <view class="view-bg top40">
        <view class="countdown">
            <view class="names">
                    <text>距离投票结束还有</text>
            </view>
            <view class="time" >
                <text>{{day}}</text>天 <text>{{hou}}</text>时<text>{{min}}</text>分<text>{{sec}}</text>秒
            </view>
            <view class="tab">
                <view class="list">
                 {{tab_number}}<text>人</text>
                    <text>参与者</text>
                </view>
                <view class="list">
                 {{tab_vote}}<text>票</text>
                    <text>投票数</text>
                </view>
                <view class="list">
                 {{tab_visit}}<text>次</text>
                    <text>访问量</text>
                </view>
            </view>
        </view>
        <!--投票内容-->
        <view class="picture_conter">
                    <view class="img">
                        <view class="id">{{ids}}<text>号</text></view>
                        <image    mode="aspectFill" src="{{img}}"></image>
                    </view>
                    <rich-text class="rule-center" nodes="{{text}}"></rich-text>
                    <!--view class="text">
                        简介：{{text}}
                    </view-->
                    <view class="name" bindtap="personal">
                        {{name}} <text>{{number}}</text>
                    </view>
                    <button class="add" bindtap="vote" data-id="{{ids}}">
                        投票
                    </button>
        </view>
    </view>
    <!--报名-->
    <!--view class="signup" bindtap="sign">
        我要报名
    </view-->
    <view class=" sign-rule" bindtap="rule">
                活动规则
        </view>
    <!---->
</view>
