<!-- packageH/stock/promotion_center/promotion_center.wxml -->
<stock-header data="{{ agent }}"></stock-header>
<view class="main">
  <income-list transportAward="{{ agent.transport_award }}" transductiveAgencyAward="{{ agent.transductive_agency_award }}" transductiveAward="{{ agent.transductive_award }}" sidewaysAward="{{ agent.sideways_award }}" />
  <view class="promotion-center">
    <van-tabs active="{{currentShowType}}" bind:change="switchTabs">
      <van-tab title="走货奖励" name="1"></van-tab>
      <van-tab title="直推代理奖" name="2">
        <view class="tab-content">
          <view>
            <view class="proxy-item" wx:for="{{ awardData }}" wx:for-item="awardItem" wx:key="id">
              <view class="proxy-header">
                <image src="{{ awardItem.avatar }}" class="proxy-member-avatar" />
                <view class="proxy-order-info">
                  <view>
                    <text class="proxy-member-nickname">{{ awardItem.nickname }}</text>
                    <text class="proxy-order-amount" v-amount>{{ awardItem.award_amount }}</text>
                  </view>
                  <view class="proxy-order-info-footer">
                    <text class="proxy-member-level">{{ awardItem.level_name }}</text>
                    <text class="proxy-order-status">{{ awardItem.award_status_text }}</text>
                  </view>
                </view>
              </view>
              <view class="proxy-order-time">{{ awardItem.created_at }}</view>
            </view>
          </view>
        </view>
      </van-tab>
      <van-tab title="直推奖" name="3"></van-tab>
      <van-tab title="平级奖" name="4"></van-tab>
    </van-tabs>
    <view class="tab-content" hidden="{{ hiddenNormalList }}">
      <view class="order-list">
        <order-item class="order-item" data="{{ awardItem }}" wx:for="{{ awardData }}" wx:for-item="awardItem" wx:key="index" />
      </view>
    </view>
  </view>
</view>