<!--packageI/allowanceIndex/allowanceIndex/allowanceIndex.wxml-->
<view id="allowanceIndex">
    <view class="nav">
        <view class="img">
            <image src="{{avatarInfo.avatar}}" alt="" />
        </view>
        <view class="user">
            <view class="isname">{{ avatarInfo.nickname }}</view>
            <view class="leave">{{ avatarInfo.level_name }}</view>
        </view>
    </view>
    <view class="centenbox">
        <view class="Totalawards">
            <view class="Totalawards_top">
                <view class="Totalawards_top_left">奖励总额</view>
                <view class="Totalawards_top_right">￥{{ avatarInfo.total }}</view>
            </view>
            <view class="Totalawards_bottom">
                <view class="Totalawards_bottom_box" catchtap="toUrl" data-key="0">
                    <view class="Totalawards_bottom_box_top">{{ avatarInfo.order_award }}</view>
                    <view class="Totalawards_bottom_box_bottom">极差奖励</view>
                </view>
                <view class="Totalawards_bottom_box" catchtap="toUrl" data-key="1">
                    <view class="Totalawards_bottom_box_top">{{ avatarInfo.level_award }}</view>
                    <view class="Totalawards_bottom_box_bottom">层级奖励</view>
                </view>
                <view class="Totalawards_bottom_box" catchtap="toUrl" data-key="2">
                    <view class="Totalawards_bottom_box_top">{{ avatarInfo.subsidy_award }}</view>
                    <view class="Totalawards_bottom_box_bottom">补贴奖励</view>
                </view>
                <view class="Totalawards_bottom_box" catchtap="toUrl" data-key="3">
                    <view class="Totalawards_bottom_box_top">{{ avatarInfo.performance_award }}</view>
                    <view class="Totalawards_bottom_box_bottom">业绩奖励</view>
                </view>
            </view>
        </view>
    </view>
    <view class="linebox" catchtap="goteam">
        <view class="linebox_txt">团队业绩</view>
        <icon class="iconfont icon-advertise-next"></icon>
    </view>
    <view class="listbox">
        <van-tabs v-model="active">
            <van-tab title="奖励记录"></van-tab>
        </van-tabs>
        <view class="list" wx:for="{{list}}" wx:key="index">
            <view class="list_left">
                <view class="order">订单号：{{item.order_sn?item.order_sn:''}}</view>
                <view class="date">{{item.created_at}}</view>
            </view>
            <view class="list_right">
                <view class="recode">+{{item.award_amounts}}</view>
                <view class="txt">{{ item.type_name }}</view>
            </view>
        </view>
    </view>
</view>