<!-- 优惠券 -->
<view class="coupon tabBarContent">
    <!-- 轮播图 -->
    <view class="banner">
        <swiper class="banner-swiper" indicator-dots autoplay circular interval="3500" indicator-color="#ebebeb"
            indicator-active-color="#fff">
            <swiper-item>
                <image class="banner-img"
                    src="https://www.lvmeimall.com/storage/images/2020/10/30/bc03beedf6f32e22fc3122a03e17edaa.jpg"
                    mode="aspectFill"></image>
            </swiper-item>
        </swiper>
    </view>

    <view class="couponList">
        <view class="couponTitle">
            <text>优惠券</text>
            <view class="couponTitle-more" bindtap="linkMy">
                我的卡券<image src="/static/mall_icon/mall_arrow.png"></image>
            </view>
        </view>
        <view class="couponLabel">
            <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="couponEject">
            
            <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 class="couponEject-list-label" wx:for="{{couponList}}" wx:key="index">

                    <view wx:if="{{item.type==1}}">
                        <view class="couponEject-list-line"></view>
                        <view class="couponEject-list-tips">{{item.type_text}}</view>
                        <image class="couponEject-list-back" src="/static/mall_icon/mallCoupon_back.png"></image>
                        <view class="couponEject-list-cont couponEject-list-blue">
                            <view class="couponEject-list-left">
                                <view class="couponEject-list-price">
                                    <image class="coupon-icon" src="{{item.cover}}" mode="heightFix"></image>
                                </view>
                                <view class="couponEject-list-name">
                                    {{item.title}}<text>{{item.whole}}</text><text>{{item.way}}</text></view>
                            </view>
                            <view class="couponEject-list-btn" bindtap="receive" data-id="{{item.coupon_id}}">立即领取
                            </view>
                        </view>
                    </view>
                    <view wx:elif="{{item.type==2}}">
                        <view class="couponEject-list-line"></view>
                        <view class="couponEject-list-tips couponEject-list-tips-yellow">{{item.type_text}}</view>
                        <image class="couponEject-list-back" src="/static/mall_icon/mallCoupon_back_yellow.png"></image>
                        <view class="couponEject-list-cont">
                            <view class="couponEject-list-left">
                                <view class="couponEject-list-price2"><text class="price-tips">￥</text>{{item.price}}
                                </view>
                                <view class="couponEject-list-name">
                                    {{item.title}}<text>{{item.whole}}</text><text>{{item.way}}</text></view>
                            </view>
                            <view class="couponEject-list-btn couponEject-list-yellow" bindtap="receive"
                                data-id="{{item.coupon_id}}">立即领取</view>
                        </view>
                    </view>
                    <view wx:elif="{{item.type==3}}">
                        <view class="couponEject-list-line"></view>
                        <view class="couponEject-list-tips couponEject-list-tips-red">{{item.type_text}}</view>
                        <image class="couponEject-list-back" src="/static/mall_icon/mallCoupon_back_red.png"></image>
                        <view class="couponEject-list-cont">
                            <view class="couponEject-list-left">
                                <view class="couponEject-list-price">
                                    <image class="coupon-icon" src="{{item.cover}}" mode="heightFix"></image>
                                </view>
                                <view class="couponEject-list-name">
                                    {{item.title}}<text>{{item.whole}}</text><text>{{item.way}}</text></view>
                            </view>
                            <view class="couponEject-list-btn couponEject-list-red" bindtap="receive"
                                data-id="{{item.coupon_id}}">立即领取</view>
                        </view>
                    </view>
                </view>
                <view class="nomore" wx:if="{{nomore==true}}">没有更多了~</view>
            </view>

        </view>
    </view>
</view>

<storeTabBar pages-url="pages/ticket/index"></storeTabBar>
