<!--packageH/consumerReward/consumerRewardIndex/consumerRewardIndex.wxml-->

<view class="r_top_box">
  <view class="image">
    <image src="{{member.avatar}}"></image>
  </view>
  <view>
    <view class="r_top_box_name">{{member.nickname}}</view>
  </view>
</view>
<view class="esp" bindtap="gotoConsumerRewardApply">
  <view class="num">领取收益</view>
  <i class="iconfont icon-member_right"></i>
</view>
<view class="count">累计收益: <span class="price">{{totalPrice}}</span></view>
<view class="count withdraw-box">
  <view style="display: flex;">可提现金额：<view class="price"> {{ withdraw_amount }}</view></view>
  <view class="withdraw-btn" catchtap="gotoWithdraw">去提现</view>
</view>
<view class="hr"></view>

<view class="listTitle">奖励明细</view>
<view class="listItems">
  <view class="listItem" wx:for="{{listData}}" wx:key="index">
    <view class="desc">
      <view class="order" wx:if="{{item.has_one_order}}">{{item.has_one_order.order_sn}}</view>
      <view class="time">时间：{{item.created_at}}</view>
    </view>
    <view class="price">+{{item.reward_amount}}</view>
  </view>
</view>