<!--packageI/newRetailInventoryDetails/newRetailSalesExtension/newRetailSalesExtension.wxml-->
<view id="newRetail-extension">
  <view class="top-member-box">
    <image class="member-acator" src="{{info.avatar}}" alt="" />
    <view class="member-info">
      <view class="member-name">{{ info.nickname }}</view>
      <view class="member-grade" wx:if="{{info.level_name}}">{{ info.level_name }}</view>
    </view>
  </view>
  <!-- <view class="grand-num">
    累计收益：
    <view class="red-color">￥{{ info.total_money }}</view>
  </view> -->

  <view class="statistics-box">
    <!-- <view class="statistics-child" wx:for="{{info.reward}}" wx:for-item="rewards">
      <view class="statistics-num red-color">{{ rewards.total_money }}</view>
      <view class="statistics-name" wx:if="{{rewards.state == 1}}">招商奖</view>
      <view class="statistics-name" wx:if="{{rewards.state == 2}}">平级奖</view>
      <view class="statistics-name" wx:if="{{rewards.state == 3}}">差价奖</view>
      <view class="statistics-name" wx:if="{{rewards.state == 4}}">销售奖</view>
    </view> -->
    <block >
      <view class="statistics-child">
        <view class="statistics-num red-color">{{ info.right_number || "--" }}</view>
        <view class="statistics-name">股权数量</view>
      </view>
      <view class="statistics-child">
        <view class="statistics-num red-color">{{ info.right_money || "--" }}</view>
        <view class="statistics-name">股权分红</view>
      </view>
    </block>
  </view>

  <van-tabs active="{{ activeName }}" bind:change="handleClick" sticky>
    <van-tab title="{{items}}" wx:for="{{titleArr}}" wx:for-index="ind" wx:for-item="items">
      <view class="content" wx:if="{{dataList[ind] && dataList[ind].list.length > 0}}">
        <view class="li" wx:for="{{dataList[ind].list}}" wx:for-index="index" wx:for-item="item">
          <view class="p">
            <view class="left">{{ ind == 0 ? item.state_name : "股权数量"+item.number }}</view>
            <div wx:if="{{ind == 1}}">单价{{ item.money }}</div>
            <view class="red right">{{ ind == 0 ? (Number(item.change_num) > 0 ? '+'+item.change_num : item.change_num) : item.total_money }}</view>
          </view>
          <view class="p">
            <view class="time left">{{item.created_at}}</view>
            <view class="right" style="font-size:12px;">{{ ind == 0 ? "" : item.state_name }}</view>
          </view>
        </view>
      </view>
      <view wx:if="{{dataList[ind]&&dataList[ind].list.length == 0}}" class="blank-box">
        <image src="https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png" mode='widthFix'></image>
      </view>
    </van-tab>
  </van-tabs>
</view>