<!-- <view class='container1'>
  <view class='list1'>
    <view class='list'>
      <text class='listinfo'>姓名：</text>
      <view class='info'>
        <view class='infodetail'>{{realName}}</view>
      </view>
    </view>
    <view class='list'>
      <text class='listinfo'>身份证号码：</text>
      <view class='info'>
        <view class='infodetail'>{{idNum}}</view>
      </view>
    </view>
    <view class='list'>
      <text class='listinfo'>工资详情：</text>
      <view class='info'>
        <picker class="infodetail1" mode="date" fields='month' start='2000-01' end='2300-01' bindchange="bindMultiPickerChange" bindcolumnchange="bindMultiPickerColumnChange">
          <view wx:if='{{multiArray[0]}}'> {{multiArray[0]}}年{{multiArray[1]}}月</view>
          <view wx:else> 点击选择时间查看该月工资明细</view>
        </picker>
      </view>
    </view>
  </view>

  <view class='detail' wx:if='{{show}}'>
    <text class='tip'>请选择要查看的时间</text>
  </view>


  <view class='detail1' wx:if='{{detailFlag==2}}'>
    <text class='tip'>无法查询到该月的薪资记录</text>
    <text class='tip'>（如果无法查询到记录，可能当月工资条未上传）</text>
  </view>

  <view class='detail2' wx:if='{{detailFlag==3}}'>
    <view class='list'>
      <text class='listinfo1'>姓名：</text>
      <view class='info'>
        <view class='infodetail'>{{data.name}}</view>
      </view>
    </view>

    <view class='list'>
      <text class='listinfo1'>身份证号</text>
      <view class='info'>
        <view class='infodetail'>{{data.idCardNumber}}</view>
      </view>
    </view>




    <view class='list2'>
      <text class='listinfo1'>公司名称：</text>
      <view class='info'>
        <view class='infodetail'>{{data.companyName}}</view>
      </view>
    </view>
    <view class='list'>
      <text class='listinfo1'>员工号码：</text>
      <view class='info'>
        <view class='infodetail'>{{data.workNumber}}</view>
      </view>
    </view>
    <view class='list'>
      <text class='listinfo1'>工资月份</text>
      <view class='info'>
        <view class='infodetail'>{{data.payrollDate}}</view>
      </view>
    </view>
    <view class='list'>
      <text class='listinfo1'>休加工资：</text>
      <view class='info'>
        <view class='infodetail'>{{realName}}</view>
      </view>
    </view>
    <view class='list' wx:for="{{payDetailArr}}" wx:for-index="idx" wx:for-item="item" wx:key='*this'>
      <view class='listinfo1'>{{item.key}}</view>
      <view class='info'>
        <view class='infodetail'>{{item.value}}</view>
      </view>
    </view>



    <view class='line'></view>

    <view class='list3'>
      <text class='rightinfo'>应发合计：</text>
      <text class='rightinfo1'>{{data.grossPayment}}</text>
    </view>

    <view class='list4'>
      <text class='rightinfo'>扣款合计：</text>
      <text class='rightinfo1'>{{data.totalChargeback}}</text>
    </view>

    <view class='list5'>
      <text class='rightinfo2'>实发工资：</text>
      <text class='rightinfo3'>{{data.netPayment}}</text>
    </view>

  </view>
</view> -->

<wxs src="./index.wxs" module="Tools" />
<view class="container">

  <view class="header">
    <view class="cell">
      <text>认证姓名：</text>
      <text>{{realName}}</text>
    </view>
    <view class="cell">
      <text>身份证号：</text>
      <text>{{idNum}}</text>
    </view>
  </view>

  <view class="content" wx:for='{{list}}' wx:key='{{index}}'  data-id="{{item.id}}" bindtap="todetail">
    <view class="content-cell">
      <text class="money">￥{{item.netPayment}}</text>
      <text class="time">{{Tools.formatDate(item.payrollDate)}}</text>
    </view>
    <view class="content-cell">
      <text class="time">{{item.companyName}}</text>
      <text class="time color">查看工资明细>></text>
    </view>
  </view>

  <view class="tips" wx:if='{{list.length}}'>
    <image src="../../images/tixing.png" mode="widthFix"></image>
    <text>仅提供最近两个月的工资条查询。例如9月可以查看8月和7月的工资信息。</text>
  </view>

  <view class="empty" wx:if='{{!list.length}}'>近两个月没有您的工资条，努力工作吧</view>
</view>