<!--pages/dis-centers/dis-center.wxml-->
<view class='container'>

  <!-- 用户信息 -->
  <view class="user-information">
    <view class="user-info-box">
      <view class="user-head-portrait">
        <image src="{{loginResult.pic?loginResult.pic:'../../images/icon/head04.png'}}"></image>
        <!-- <open-data type="userAvatarUrl"></open-data> -->
      </view>
      <view class="username">{{loginResult.nickName}}</view>
      <!-- <open-data type="userNickName"></open-data> -->
    </view>
    <!-- 等级入口 -->
    <view class="enter-grade" bindtap="toSalesmanLevel">
      <view class="grade-icon">
        <image src="../../images/icon/grade.png"></image>
      </view>
      <view class="grade-text">{{distInfo.levelName}}</view>
    </view>
    <view class="notice" bindtap="toNotice" data-dist="true">
      <view class="notice-icon">
        <image src="../../images/icon/notice.png"></image>
      </view>
      <!-- <view class="notice-txt">升级到高级分销员，赚取更多佣金！</view> -->
      <swiper vertical='true' autoplay='true' duration='1000' class='swiper-cont'>
        <block wx:for='{{disNotice}}' wx:key='index'>
          <swiper-item class="items">{{item.msgTitle}}</swiper-item>
        </block>
      </swiper>
      <view class="right-more">
        <image src="../../images/icon/more2.png"></image>
      </view>
    </view>
  </view>

  <view class='user-info'>
    <view class='info-cont'>
      <!-- 竖排 -->
      <!-- <view class='total-income'>
        <view class='income-dt '>
          <view class='total'>总收益（元）</view>
          <view class='num '>498.98</view>
        </view>
        <view class='rule '>
          <text class='symbol-what'>?</text>
          <text class='rule-tip'>提现规则</text>
        </view>
      </view>
      <view class='withdraw'>
        <text class='could-draw'>可提现金额： 100.00元</text>
        <text class='draw-btn'>提现</text>
      </view> -->

      <!-- 横排 -->
      <view class='income'>
        <view class='income-left'>
          <view class='item'>我的余额（元）</view>
          <view class='num'>{{wxs.toPrice(settledAmount)}}</view>
        </view>
        <view class='income-right'>
          <view class='item'>总收益（元）</view>
          <view class='num'>{{wxs.toPrice(addupAmount)}}</view>
        </view>

      </view>
      <!-- <view class='rule ' bindtap='toWalletCashRulePage'>
          <text class='symbol-what'>?</text>
          <text class='rule-tip'>提现规则</text>
        </view> -->
      <view class='draw-btn' bindtap="toWithdrawal">立即提现</view>
    </view>
  </view>

  <view class='lists'>
    <view class='list-item' bindtap='toPromotionProdPage'>
      <image src='../../images/icon/tuiguang02.png' class='icon' mode="widthFix"></image>
      <text class='item-text'>推广商品</text>
    </view>
    <view class='list-item' bindtap="toInvitationCards">
      <image src='../../images/icon/tuiguang01.png' class='icon' mode="widthFix"></image>
      <text class='item-text'>邀请好友</text>
    </view>

    <!-- <view class='list-item'>
      <image src='../../images/icon/tuiguang03.png' class='icon' mode="widthFix"></image>
      <text class='item-text'>推广海报</text>
    </view> -->
  </view>


  <view class='sorting-menu'>
    <view class='menu-cont'>
      <view class='menu-cont-list' bindtap='toMyUserPage'>
        <view class='icon'>
          <image src='../../images/icon/menu-01.png' mode="widthFix"></image>
        </view>
        <view class='list-title'>我的用户</view>
        <text class='arrow'></text>
      </view>
      <view class='menu-cont-list' bindtap='toPromotionOrderPage'>
        <view class='icon'>
          <image src='../../images/icon/menu-02.png' mode="widthFix"></image>
        </view>
        <view class='list-title'>我的推广</view>
        <text class='arrow'></text>
      </view>
    </view>
    <view class='menu-cont'>
      <view class='menu-cont-list' bindtap='toIncomeDetailsPage'>
        <view class='icon'>
          <image src='../../images/icon/menu-03.png' mode="widthFix"></image>
        </view>
        <view class='list-title'>收益明细</view>
        <text class='arrow'></text>
      </view>
      <view class='menu-cont-list' bindtap='toWalletCashPage'>
        <view class='icon'>
          <image src='../../images/icon/menu-04.png' mode="widthFix"></image>
        </view>
        <view class='list-title'>提现记录</view>
        <text class='arrow'></text>
      </view>
    </view>
  </view>
</view>

<wxs module="wxs" src="../../wxs/number.wxs" />