<wxs src='../../pages/wxs/util.wxs' module='filter' />
<popup show="{{showPopup}}" opacity='6'>
  <view class="pop_content">
    <view style="color:gray;line-height: 1.5;">你已被停用<text>{{organStatus?'机构':'分享家'}}</text>身份，无法再通过分享来获得佣金。可联系对应工作人员重新启用（注：未到账佣金不受影响，验票后到账）
    </view>
    <view class="btns" bindtap="closePopup">确定</view>
  </view>
</popup>
<view class="bg">
  <view class="subtitleColor-bg">
    <view class="userInfo">
      <image src='{{info.avatar}}' mode="aspectFill" lazy-load="true"></image>
      <view class="userName">{{info.nickname}}</view>
      <view class="level {{info.roleTypeDisable==1 ?'stop_user':(info.sharerInfo.levelMax==1?'ordinary':(info.sharerInfo.levelMax==2?'copper':(info.sharerInfo.levelMax==3?'silver':(info.sharerInfo.levelMax==4?'gold':(info.sharerInfo.levelMax==5?'super':'')))))}}" wx:if="{{info.roleType=='sharer'}}">
        <text class="icon icon-sharer-level"></text>
        <text>{{info.sharerInfo.levelMax==1?'普通':(info.sharerInfo.levelMax==2?'铜牌':(info.sharerInfo.levelMax==3?'银牌':(info.sharerInfo.levelMax==4?'金牌':(info.sharerInfo.levelMax==5?'超级':''))))}}</text>
      </view>
      <view wx:if="{{info.roleType=='organ'}}" class="level  {{info.roleTypeDisable==1?'stop_user':'organTip'}}">机构</view>
      <view class="sharer-status font10" bindtap="showInstract" wx:if="{{info.roleTypeDisable==1 }}">已停用</view>
    </view>
    <view class="rule_ins" data-type="0" bindtap="jumptoIns">
      <text class="icon icon-exclamatory"></text>
      规则说明
    </view>
  </view>

  <view class="modular modular-pad" style="margin-top:0">
    <view class="modal-title">佣金钱包</view>
    <view class="modal-label color_gray">
      <view class="tab-row">
        <view class="col" data-url="/pages/sharingHome/wallet" bindtap='navigatorURl'>
          <view class="price">￥<text>{{coin.coinTatal || '0.00'}}</text></view>
          <view>总佣金</view>
        </view>
        <view class="col" data-url="/pages/sharingHome/wallet" bindtap='navigatorURl'>
          <view class="price">￥<text>{{coin.coinBalance || '0.00'}}</text></view>
          <view>剩余佣金</view>
        </view>
        <!-- todo：内容 -->
        <view class="col" data-url="/pages/sharingHome/inviteUser?type=1&roleType={{info.roleType}}" bindtap='navigatorURl'>
          <view class="price"><text>{{invitee.directMemberNum || '0'}}</text>人</view>
          <view>下级会员</view>
        </view>
      </view>
      <view>
        <view class="row-flex">
          <view class="col-8 link" data-url="/pages/sharingHome/willAccount" bindtap='navigatorURl'>
            <view class="font12">￥<text class="font18 subtitleColor">{{coin.coinUnpaidAccount || '0.00'}}</text></view>
            <view class='label'>
              <text class="font12">即将入账</text>
            </view>
          </view>
          <view class="col-8 link line" data-url="/pages/sharingHome/wallet" bindtap='navigatorURl'>
            <view style="flex: 1;">
              <view class="font12">￥<text class="font18 subtitleColor">{{coin.coinReflect>0?coin.coinReflect:'0.00' }}</text></view>
              <view class='label'>
                <text class="font12">已提现</text>
              </view>
            </view>
          </view>
          <view class="col-8 link" data-url="/pages/sharingHome/wallet" bindtap='navigatorURl'>
            <view class="font12">￥<text class="font18 subtitleColor">{{coin.coinUsageAmount>0?coin.coinUsageAmount:'0.00'}}</text></view>
            <view class='label'>
              <text class="font12">已使用</text>
            </view>
          </view>
        </view>
      </view>
    </view>
  </view>
  <!-- <view class="share-num color_gray">
    <view class="share-num-item" data-url="/pages/sharingHome/inviteUser?type=0&roleType={{info.roleType}}" bindtap='navigatorURl'>
      <view class="person font12"><text class="subtitleColor">{{invitee.directMemberNum || 0}}</text>人</view>
      <view class="font12">一级会员</view>
    </view>
    <view class="share-num-item" data-url="/pages/sharingHome/inviteUser?type=1&roleType={{info.roleType}}" bindtap='navigatorURl'>
      <view class="person font12"><text class="subtitleColor">{{invitee.directSharerNum || 0}}</text>人</view>
      <view class="font12">{{info.roleType == 'sharer' ? '下级分享家':'下级机构'}}</view>
    </view>
    <view class="share-num-item" data-url="/pages/sharingHome/inviteUser?type=2&roleType={{info.roleType}}" bindtap='navigatorURl'>
      <view class="person font12"><text class="subtitleColor">{{invitee.indirectMemberNum || 0}}</text>人</view>
      <view class="font12">间接会员</view>
    </view>
  </view> -->
  <!-- <view class="modular modular-pad" wx:if="{{info.roleType=='sharer'}}">
    <view class="modal-title title-link ">
      <view class="share_title">
        <text>分享家等级</text>
        <text class="upgrade_ins subtitleColor" data-type="1" bindtap="jumptoIns">晋级说明 <text class="icon icon-arrow font12"></text></text>
      </view>
    </view>
    <view class="modal-label share_level">
      <view class="next-level">
        <view class="upgrade">
          {{info.sharerInfo.levelMax==5?'当前为':'升级至'}}<text class="subtitleColor">{{sharerLevelInfo.level}}</text>
        </view>
        <view class="power">
          <view class="power_title">可享权益：</view>
          <view class="power_item">1）邀请下级购买3天及以上活动的返佣比例提升：
            <text>
              <text class="subtitleColor">{{sharerLevelInfo.scaleCurrent+'%'+(info.sharerInfo.levelMax<5?('→'+sharerLevelInfo.scaleNext+'%'):'')}}</text><text class="icon icon-promote"></text>
              </text>
          </view>
          <view class="power_item">2）获得<text class="subtitleColor">{{sharerLevelInfo.price}}枚宝贝币</text>，可用来兑换抢购特权或购买抵现</view>
          <view class="power_item">3）获得<text class="subtitleColor">升级福利</text>（{{filter.getSharerPower(info.sharerInfo.levelMax)}}）</view>
        </view>
      </view>
      <block wx:if="{{info.sharerInfo.levelMax<5}}">
        <view class="method method_1">
          <view class="method_title">途径1</view>
          <view class="method_ins">邀请{{sharerLevelInfo.levelPlan1}}名新用户报名2天内活动（{{sharerLevelInfo.level_exp1+'/'+sharerLevelInfo.levelPlan1}}）</view>
          <view class="step_line">
            <view class="line"></view>
            <view class="cercle_box" style="{{'left:'+sharerLevelInfo.percent1}}">
              <view class="cercle"></view>
            </view>
          </view>
        </view>
        <view class="method method_2">
          <view class="method_title">途径2</view>
          <view class="method_ins">邀请{{sharerLevelInfo.levelPlan2}}名用户报名3天及以上活动（{{sharerLevelInfo.level_exp2+'/'+sharerLevelInfo.levelPlan2}}）</view>
          <view class="step_line">
            <view class="line"></view>
            <view class="cercle_box" style="{{'left:'+sharerLevelInfo.percent2}}">
              <view class="cercle"></view>
            </view>
          </view>
          <view class="tip">满足任意一个途径要求即可晋级</view>
        </view>
      </block>
    </view>
  </view> -->
  <view class="modular modular-pad">
    <view class="modal-label">
      <physicalForCard title="分销产品" icon="'icon-sale-product'" link="/pages/sharingHome/shareActivity"></physicalForCard>
    </view>
  </view>
  <!-- <view class="modular modular-pad" wx:if="{{info.roleType=='sharer'}}">
    <view class="modal-label">
      <physicalForCard title="分享家排行榜" icon="'icon-sharer-rank'" link="/pages/sharingHome/rankList"></physicalForCard>
    </view>
  </view> -->
</view>
<downTimer listData="{{swipeList}}" isShareGroup></downTimer>

