<wxs src="../../../utils/filter.wxs" module="filters" />

<view class="container">
    <view class="userBox">
        <view class="left">
            <image class='avatar' src='{{ userInfo.avatar}}'></image>
            <view class="identity">
                <view class="nickName">{{ allIncome.name}}</view>
                <view class="tag">{{allIncome.level}}</view>
            </view>
        </view>
        <view class="right" bindtap="jump" data-url="commission">查看分销规则</view>
    </view>
    <view class="statistics">
        <view class="above">
            <view class="left">
                <view class="label">可提现金额（元）</view>
                <view class="money">{{filters.twoDecimal(allIncome.withdraw)}}</view>
            </view>
            <view class="withdrawal" bindtap="jump" data-url="withdrawal">
                去提现
                <image src="/static/rbtn.png" class="rbtn" />
            </view>
        </view>
        <view class="below">
            <view class="box" bindtap="jump" data-url="lxDetail">
                <view class="label">今日收益（元）</view>
                <view class="money">{{filters.twoDecimal(allIncome.todayIncome)}}</view>
            </view>
            <view class="box" bindtap="jump" data-url="lxDetail">
                <view class="label rtext">累计收益（元）</view>
                <view class="money rtext" style="padding-right:20rpx;">{{filters.twoDecimal(allIncome.income)}}</view>
            </view>
        </view>
    </view>
    <view class="boxs">
        <view class="box" bindtap="jump" data-url="history">
            <image src="../../image/b1.png" class="b1" />
            <view class="name">邀请记录</view>
        </view>
        <view class="box" bindtap="jump" data-url="management">
            <image src="../../image/b2.png" class="b2" />
            <view class="name">订单管理</view>
        </view>
        <view class="box" bindtap="jump" data-url="lxDetail">
            <image src="../../image/b3.png" class="b3" />
            <view class="name">收益报表</view>
        </view>
    </view>
    <view class="bottom">
        <button class="resetBtn btn" bindtap="openInvite">
            邀请用户
        </button>
    </view>
    <InvitePop id="InvitePop"></InvitePop>
</view>