<!--packageE/commodityDividends/commodityDividends.wxml-->
<view id="superior">
    <view class="r_top_box">
		<view class="user_info">
			<view class="image">
				<image src="{{info.avatar_image}}" alt="" />
			</view>
			<view>
				<view class="r_top_box_name">{{info.nickname}}</view>
				<!-- <view class="r_top_box_leve" wx:if="{{info.level_name}}">{{info.level_name}}</view> -->
			</view>
		</view>
		<view class="desc">
			累计奖励：￥{{award_total}}
		</view>
     
    </view>

    <view class="line"></view>
    <van-tabs show="{{active}}" bind:change="swichTabTItem">
      <van-tab title="奖励记录"></van-tab>
      <!-- <van-tab title="未结算"></van-tab>
      <van-tab title="已结算"></van-tab> -->
    </van-tabs>
    <view wx:for="{{list}}" wx:key="index" wx:if="{{list.length > 0}}" catchtap="shows" data-ind="{{index}}">
      <view class="r_ls" >
        <view class="r_ls_r" style="text-align: left">
          <view class='span' class="r_li_o">{{item.order_sn}}</view>
          <view class='span' class="r_li_t">{{item.created_at}}</view>
        </view>
        <view class="r_ls_r" style="text-align: right">
          <view class='span' class="r_li_m">￥{{item.amount}}</view>
          <view class='span' class="r_li_s">奖励比例:{{item.ratio}}%</view>
        </view>
      </view>
      <block wx:if="{{index == ind}}">
        <view class="s_box">
          <view class="s_box_i">
            <image src="{{item.buy_member.avatar_image}}" alt="" />
          </view>
          <view class="s_box_t">{{item.buy_member.nickname}}</view>
        </view>
        <view class="s_shop">
          <view class="s_shop_i">
            <image src="{{item.goods_thumb}}" alt="" />
          </view>
          <view class="s_shop_r">
            <view>{{item.goods_title}}</view>
            <view>实付 ￥{{item.goods_price}}</view>
          </view>
        </view>
      </block>
    </view>
  </view>
