<!--packageF/storeManagement/storeIntegralList/storeIntegralList.wxml-->
<view>
<view class="stkcky">
  <view class="header-search" wx:if="{{!memberId}}">
    <van-search value="{{keyword}}" bindsearch="handSearch" clearable shape="round" style="flex: 1;"
      placeholder="搜索会员">
    </van-search>
  </view>
  <van-tabs active="{{incomeType}}" bindchange="changeType" class="status-tab">
    <van-tab title="全部" name="0"></van-tab>
    <van-tab title="收入" name="1"></van-tab>
    <van-tab title="支出" name="-1"></van-tab>
  </van-tabs>
</view>

<view class="list" wx:if="{{networkLoading && listData.length>0}}">
  <block wx:if="{{memberId}}">
    <view class="item" wx:for="{{listData}}" wx:key="id">
      <view class="top">
        <view class="title text-overHide">{{item.source_name}}</view>
        <text class="point-income redText" wx:if="{{item.point_income_type == 1}}">+{{item.point}}</text>
        <text class="point-income greenText" wx:else>{{item.point}}</text>
      </view>
      <view class="current-point">{{integral_text}}：{{item.after_point}}</view>
      <view class="time">{{item.created_at}}</view>
    </view>
  </block>
  <block wx:else>
    <view class="member-item" wx:for="{{listData}}" wx:key="id">
      <view class="top">
        <view class="title text-overHide">{{item.source_name}}</view>
        <view class="time">{{item.created_at}}</view>
      </view>
      <view class="member">
        <view class="avatar">
          <image src="{{item.has_one_member ? item.has_one_member.avatar : ''}}" />
        </view>
        <view class="info">
          <view class="nickname text-overHide">{{item.has_one_member ? item.has_one_member.nickname : ''}}</view>
          <view class="current-num">{{integral_text}}：{{item.after_point}}</view>
        </view>
        <view class="point-income redText" wx:if="{{item.type == 1}}">+{{item.point}}</view>
        <view class="point-income greenText" wx:else>{{item.point}}</view>
      </view>
    </view>
  </block>
</view>


</view>


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