<view>
  <view class="header">
    <van-tabs active="{{ active }}" scroll-top="{{scrollTop}}" sticky="{{true}}" bind:change="onChange">
      <van-tab title="全部"  name="0"></van-tab>
      <van-tab title="获得"  name="1"></van-tab>
      <van-tab title="失败"  name="3"></van-tab>
    </van-tabs>
  </view>
  <view class="love_gift_queue"  wx:if="{{love_gift_queue_list}}">
    <view wx:for="{{love_gift_queue_list}}" wx:key="index" class="{{index === 0 ? 'love-item first-love-item' : 'love-item'}}">
      <view class="love-item-top">
        <view class="love-status">{{item.type_name}}</view>
        <view class="{{item.type == 1 ? 'un-love-value' : item.type == 2 || item.type == 3 ? 'get-love-value' : ''}}">{{item.type == 1 ? '+' : item.type == 2 || item.type == 3 ? '-' : ''}}{{item.amount}}</view>
      </view>
      <view class="love-item-bottom">
        <view class="love-status">{{item.created_at}}</view>
        <view>剩余额度: {{item.present}}</view>
      </view>
    </view>
  </view>
</view>
