<!--packageF/wxFriendExtend/friendRewardRecord/friendRewardRecord.wxml-->

<van-tabs active="{{ tabIndex }}" bind:change="changeTab" sticky swipeable>
  <van-tab title="全部" name="0"></van-tab>
  <van-tab title="未发放" name="1"></van-tab>
  <van-tab title="已发放" name="2"></van-tab>
  <van-tab title="已失效" name="3"></van-tab>
</van-tabs>

<view class="list">
  <view class="item" wx:for="{{listData}}">
    <view class="info">
      <view class="time">{{item.created_at}}</view>
      <view class="status {{state_arr[item.state]}}">{{item.state_desc}}</view>
    </view>
    <view class="content">
      {{item.reward_desc}}
    </view>
  </view>

</view>

<view wx:if="{{listData.length==0 && networkLoading}}" class="blank">
  <image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
</view>