<!--pages/integral/index.wxml-->
<navigator title="积分兑换" canBack="{{true}}" />
<view class="integralWrapper">
    <view class="currentIntegral">
        <view class="number"> 当前积分： {{ integral }} </view>
        <view class="primaryTextBtn" bind:tap="jumpToRecord"> 查看积分明细 </view>
    </view>
    <view class="ticketList" wx:if="{{list.length}}">
        <view wx:for="{{list}}" wx:key="id" class="item"> 
            <discount-coupon data="{{item}}" type="{{2}}" />
        </view>
    </view>
    <empty wx:else bind:refresh="refresh" text="暂无可兑换的优惠券" />
</view>