<view class="container">
    <page-loding wx:if="{{showLoding}}"></page-loding>
    <view class="title-tip" wx:if="{{list.length>0}}">请选择洗车券</view>
    <view class="list">
        <view bindtap="selectItem" class="{{item.available!=1?'item item-notavailable':selectID==item.code?'active item':'item'}}" data-available="{{item.available}}" data-code="{{item.code}}" wx:for="{{list}}" wx:key="index">
            <view class="top">
                <view class="radio"></view>
                <view class="code">{{item.code}}</view>
            </view>
            <view class="location">可使用网点：<block wx:for="{{item.agent}}" wx:for-index="i" wx:for-item="s">{{s.t_name+(i<item.agent.length-1?'、':'')}} </block>
            </view>
            <view class="indate">有效期：{{item.starttime}} - {{item.deadline}}</view>
        </view>
    </view>
    <view class="no-content" wx:if="{{list.length==0&&!loading}}">
        <image src="/img/nocontent.png"></image>
        <view>暂无洗车券</view>
    </view>
    <view bindtap="toScan" class="scan-btn" wx:if="{{!isScan}}">扫码启动</view>
    <view bindtap="toStart" class="{{list.length>0?'scan-btn':'scan-btn scan-btn-unavailable'}}" wx:if="{{isScan}}">立即启动</view>
</view>
