<!--downline.wxml-->
<view class="user_info">
  <view class="avatar">
    <image src="{{userInfo.headimgurl}}"></image>
  </view>
  <view class="user_desc">
    <view class="user_name">{{userInfo.nickname}}</view>
    <view class="withdraw">
      <view class="withdraw_btn" data-attr="content">加入时间：{{userData.create_time}}</view>
    </view>
  </view>
</view>

<view class="btn_group">
  <view class="btn_row">
    <navigator url="./distribution/distribution" hover-class="none" class="btn_item">
      <view class="btn_icon iconfont icon-money"></view>
      <view class="btn_name">分销佣金</view>
      <view class="btn_text">{{userMoney.share_finish?userMoney.share_finish:'0.00'}}元</view>
    </navigator>
    <navigator url="./detail/detail?user_id={{userData.uid}}" hover-class="none" class="btn_item">
      <view class="btn_icon iconfont icon-mingxi"></view>
      <view class="btn_name">提现明细</view>
      <view class="btn_text">佣金提现明细</view>
    </navigator>
    <navigator url="./orderList/orderList?user_id={{userData.uid}}" hover-class="none" class="btn_item">
      <view class="btn_icon iconfont icon-allorder"></view>
      <view class="btn_name">分销订单</view>
      <view class="btn_text">{{orderCount?orderCount:'0'}}个订单</view>
    </navigator>
  </view>
  <view class="btn_row">
    <navigator url="./branch/branch?user_id={{userData.uid}}" hover-class="none" class="btn_item">
      <view class="btn_icon iconfont icon-team"></view>
      <view class="btn_name">我的团队</view>
      <view class="btn_text">{{downlineCount?downlineCount:'0'}}个成员</view>
    </navigator>
    <view hover-class="none" class="btn_item" bindtap="showQRCode">
      <view class="btn_icon iconfont icon-qrcode"></view>
      <view class="btn_name">二维码</view>
      <view class="btn_text">推广二维码</view>
    </view>
  </view>
</view>

<view class="box">
  <view class="main_title">分销如何赚钱</view>
  <view class="row">
    <view class="title">第一步</view>
    <view class="content">转发商品详情或极速上线商城小程序给微信好友；</view>
  </view>
  <view class="row">
    <view class="title">第二步</view>
    <view class="content">从您转发的商品详情或者小程序进入商城的好友，系统将自动锁定成为您的客户, 他们在极速上线商城小程序中购买任何商品，您都可以获得分销佣金；</view>
  </view>
  <view class="row">
    <view class="title">第三步</view>
    <view class="content">您可以在分销中心查看【我的团队】和【分销订单】，好友确认收货后佣金方可提现。</view>
  </view>
  <view class="tips">说明：转发后系统会自动记录，您的好友访问之后，系统会自动检测并记录客户关系。如果您的好友已被其他人抢先发展成了客户或者在您转发之前已经访问过极速上线商城小程序，他就不能成为您的客户，以最早发展成为客户为准。</view>
</view>