<!-- 我的卡券tab -->
<view class="coupon-tab">
    <view class="coupon-tab-item {{statusTab==index?'active':''}}" wx:for="{{statusMenu}}" wx:key="index"
        data-current="{{index}}" data-type="{{item.type}}" wx:for-index="index" bindtap="statusChange">{{item.text}}
    </view>
</view>

<!-- 卡券类型 -->
<view class="couponCut">
    <text class="{{currentTab==index?'active':''}}" wx:for="{{couponMenu}}" wx:key="index" data-current="{{index}}"
        data-type="{{item.type}}" wx:for-index="index" bindtap="couponChange">{{item.text}}</text>
</view>

<!-- 卡券列表 -->
<view class="couponList">
    <view class="coupon-null" wx:if="{{default == true}}">
        <image src="/static/mall_icon/coupon-null00.png" mode="widthFix"></image>
        <view class="coupon-text">暂无优惠券</view>
    </view>
    <view wx:else>
        <view wx:for="{{couponList}}" wx:key="index">
            <view wx:if="{{item.type==1}}">
                <view class="couponDraw-list-label couponDraw-list-blue">
                    <view class="couponDraw-list-tips">免费劵</view>
                    <view class="couponDraw-list-price">
                        <image class="coupon-icon" src="{{item.cover}}" mode="heightFix"></image>
                    </view>
                    <view class="couponDraw-list-text">
                        <view class="couponDraw-list-name">
                            {{item.title}}<text>{{item.whole}}</text><text>{{item.way}}</text></view>
                        <block wx:if="{{item.status==1}}">
                            <view class="couponDraw-list-btn" wx:if="{{item.verification_type==1}}" bindtap="detailLink"
                                data-verification="{{item.verification_type}}" data-couponid="{{item.user_coupon_id}}"
                                data-itemtype="{{item.type}}">去使用</view>
                            <view class="couponDraw-list-btn" wx:else bindtap="detailLink"
                                data-verification="{{item.verification_type}}" data-itemtype="{{item.type}}"
                                data-couponid="{{item.user_coupon_id}}">查看券码</view>
                        </block>
                        <block wx:elif="{{item.status==2}}">
                            <view class="couponDraw-list-btn loose">已使用</view>
                        </block>
                        <block wx:elif="{{item.status==3}}">
                            <view class="couponDraw-list-btn loose">已失效</view>
                        </block>
                        <view class="couponDraw-list-time">{{item.time}}</view>
                    </view>
                </view>
            </view>
            <view wx:if="{{item.type==2}}">
                <view class="couponDraw-list-label">
                    <view class="couponDraw-list-tips">代金券</view>
                    <view class="couponDraw-list-price">
                        <view class="couponDraw-list-part"><text class="price-tips">￥</text>{{item.price}}</view>
                    </view>
                    <view class="couponDraw-list-text">
                        <view class="couponDraw-list-name">
                            {{item.title}}<text>{{item.whole}}</text><text>{{item.way}}</text></view>
                        <block wx:if="{{item.status==1}}">
                            <view class="couponDraw-list-btn" wx:if="{{item.verification_type==1}}" bindtap="detailLink"
                                data-verification="{{item.verification_type}}" data-couponid="{{item.user_coupon_id}}"
                                data-itemtype="{{item.type}}">去使用</view>
                            <view class="couponDraw-list-btn" wx:else bindtap="detailLink"
                                data-verification="{{item.verification_type}}" data-itemtype="{{item.type}}"
                                data-couponid="{{item.user_coupon_id}}">查看券码</view>
                        </block>
                        <block wx:elif="{{item.status==2}}">
                            <view class="couponDraw-list-btn loose">已使用</view>
                        </block>
                        <block wx:elif="{{item.status==3}}">
                            <view class="couponDraw-list-btn loose">已失效</view>
                        </block>
                        <view class="couponDraw-list-time">{{item.time}}</view>
                    </view>
                </view>
            </view>
            <view wx:if="{{item.type==3}}">
                <view class="couponDraw-list-label couponDraw-list-red">
                    <view class="couponDraw-list-tips">提货卡</view>
                    <view class="couponDraw-list-price">
                        <image class="coupon-icon" src="{{item.cover}}" mode="heightFix"></image>
                    </view>
                    <view class="couponDraw-list-text">
                        <view class="couponDraw-list-name">
                            {{item.title}}<text>{{item.whole}}</text><text>{{item.way}}</text></view>
                        <block wx:if="{{item.status==1}}">
                            <view class="couponDraw-list-btn" wx:if="{{item.verification_type==1}}" bindtap="detailLink"
                                data-verification="{{item.verification_type}}" data-couponid="{{item.user_coupon_id}}"
                                data-itemtype="{{item.type}}">去使用</view>
                            <view class="couponDraw-list-btn" wx:else bindtap="detailLink"
                                data-verification="{{item.verification_type}}" data-itemtype="{{item.type}}"
                                data-couponid="{{item.user_coupon_id}}">查看券码</view>
                        </block>

                        <block wx:elif="{{item.status==2}}">
                            <view class="couponDraw-list-btn loose">已使用</view>
                        </block>
                        <block wx:elif="{{item.status==3}}">
                            <view class="couponDraw-list-btn loose">已失效</view>
                        </block>
                        <view class="couponDraw-list-time">{{item.time}}</view>
                    </view>
                </view>
            </view>
        </view>
        <view class="nomore" wx:if="{{nomore==true}}">没有更多了~</view>
    </view>
</view>