
<!-- 月份 -->
<view class="month-title" wx:if="{{type==1}}">
         <view class="month-title-left">
           <view>所属月份：{{month}}</view>
           <!-- <image mode="aspectFit" src="/static/images/upgrade/icon-calendar.png"></image> -->
         </view>
         <view class="month-title-right">
            <block >
            <image bindtap="lastMonth" mode="aspectFit" src="/static/images/upgrade/icon-arrow-left.png"></image>
             <view  bindtap="lastMonth" class="last-month">上月</view>
            </block>
            <block >
            <view class="next-month" bindtap="nextMonth">
            下月</view>
            <image bindtap="nextMonth" mode="aspectFit" src="/static/images/upgrade/icon-arrow-right.png"></image>
          </block>
         </view>
          
       </view>
<view class="container">
  <view class="main-module" wx:if="{{servantType==99}}">
    <view class="coupon-block" style="text-align: center;">
      <text class="num">{{blance}}</text>
      <view class="tip-wrapper" bindtap="showTip1">
        <text class="module-text">可提现金额</text>
        <image class="tip-img" mode="aspectFit"
          src='https://jzmall.lifejingzhi.com/file/jzmall/weixin/distribution/icon-why.png'></image>
      </view>
    </view>
  </view>
  <view class="main-module amount-module" style="display: block;height: auto;">
    <view class="head" wx:if="{{salaryList.length > 0}}">
      <view class="title">项目</view>
      <view wx:if="{{type==2}}" class="title">日期</view>
      <view class="title">金额</view>
    </view>

    <!-- 总工资 每月薪资list type=2 -->
    <view class="salary" wx:if="{{type==2}}" wx:for="{{salaryList}}" wx:key="index">
      <view class="total">
        <view class="title">{{item.salaryTypeName}}</view>
        <view class="num">{{item.createTime}}</view>
        <view class="num">{{item.salary}}</view>
        <text wx:if="{{type!=2}}" class="{{item.isShow?'arrow-hide':'arrow-show'}}"
          data-salary-type="{{item.salaryType}}" bindtap="getSalaryDetail"></text>
      </view>
    </view>

   
    <!-- 薪资明细 月工资是那几个项构成 -->
    <view wx:if="{{type!=2}}" class="salary" wx:for="{{salaryList}}" wx:key="index">
      <view class="total">
        <view class="title">{{item.salaryTypeName}}</view>
        <view class="num">{{item.createTime}}</view>
        <view class="num">￥{{item.salary}}</view>
        <view class="btn-show" wx:if="{{item.salaryType>=5&&item.salaryType<=30}}" data-salaryType="{{item.salaryType}}" bindtap="getSalaryDetail">
          <image wx:if="{{item.isShow}}"  class="arrow-show" src="/static/images/arrow-up.png"></image>
           <image wx:else=""  class="arrow-show" src="/static/images/arrow_down.png"></image>
        </view>
      </view>
      <view class="detail" wx:if="{{item.isShow}}" wx:for="{{item.details}}" wx:for-item="detail" wx:key="index">
        <view style="display: flex;flex-direction: row; width: 580rpx;">
          <view class="item">{{detail.salaryTypeName}}</view>
          <view class="item">{{detail.createTime}}</view>
          <view class="item">{{detail.salary}}元</view>
        </view>
      </view>
    </view>



    <view class="salary" style="border: unset;height: 76rpx;" wx:if="{{salaryList.length > 0}}">
      <view class="title"></view>
      <view class="num">总计：￥{{total}}</view>
    </view>

    <view class="no-order" wx:if="{{salaryList.length <= 0}}">
      <view class="c">
        <text>还没有任何服务费记录呢</text>
      </view>
    </view>
  </view>

  <view class="btn current-btn" wx:if="{{blance>0&&servantType==99}}" bindtap="goCheckAuth">立即提现
  </view>
  <view class="btn" wx:if="{{servantType==99}}" bindtap="goList">查看提现记录</view>
  <view class="btn" bindtap="goBack">返回</view>

</view>


<!-- 实名认证弹框 -->
<view class="back" wx:if="{{showAuth}}"> </view>
<view class="auth" wx:if="{{showAuth}}">
  <view class="form">
    <view class="title">平台实名认证</view>
    <view class="form-item">
      <view class="label">真实姓名</view>
      <input bindinput="bindinputName" value="{{name}}" placeholder="身份证上名称" />
    </view>
    <view class="form-item">
      <view class="label">身份证</view>
      <input bindinput="bindinputNid" type="idcard" value="{{nid}}" placeholder="请输入身份证号" maxlength="18" />
    </view>

    <!-- <view class="form-item">
      <view class="label">手机号</view>
      <input value="{{mobile}}" placeholder="手机号" disabled type="number" />
    </view> -->
    <view class="warning">
      温馨提示：微信平台最新规定，提现必须实名，否则无法提现
    </view>
    <view class="warning">
      <text>认证注意事项：\r\n1.您的微信帐号必须已经在微信认证 \r\n2.填写的身份证需是您认证微信帐号时的身份证</text>
    </view>

    <view class="agree-terms">
      <checkbox-group bindchange="onChange">
        <checkbox value="{{checked}}" shape="square" icon-size="14px" checked-color="#09afff" />
      </checkbox-group>
      <text class="user-agree">我自愿遵守并同意</text>
      <text class="user-terms" ontap="userProtocol">《共享经济合作伙伴协议》</text>
    </view>
    <view class="footer">
      <view class="fbtn" bindtap="goCancel">取消</view>
      <view class="fbtn btnConfirm" bindtap="cashoutAuth">提交</view>
    </view>
  </view>
</view>