<view>
  <view class="header" a:if="{{moduleshow}}">
    <view class="search flex-box-ce">
      <image mode="widthFix" src="../../../image/ss.png" />
      <input placeholder="请输入员工姓名搜索" onInput="bindKeyInput" onConfirm="bindKeyInput" class="flex-1" />
      <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
    </view>
  </view>
  <view class="main">
    <view class="headScreen flex-no-wrap margin-bottom" a:if="{{moduleshow}}">
      <text a:for="{{smdsHead}}" class="{{item.id == smdsins?'active':'' }}" onTap="activeItem" data-id="{{item.id}}">{{ item.name }}</text>
    </view>
  </view>
  <scroll-view class="scroll" scroll-y="{{true}}" a:if="{{list.length>0}}" onScrollToLower="onScrollToLower">
    <view a:if="{{moduleshow}}" style="height:.2rem;background-color:#f5f7fa;"></view>
    <view a:if="{{!moduleshow}}" style="height:.7rem;background-color:#f5f7fa;color: #848484;padding-left: .3rem;line-height:.7rem;font-size:.28rem;">
      {{ itemparams.name }} ({{ itemparams.val }})
    </view>
    <view a:for="{{list}}" class="flex-box-ce item" data-item="{{item}}" onTap="openDetail">
      <img-box id="{{item.userInfo.id}}" name="{{item.userInfo.name}}" height="70rpx" width="70rpx" fSize="24rpx"></img-box>
      <view class="flex-1" style="margin-left:0.2rem">
        <view class="name flex-1" style="font-size:0.32rem;margin-bottom:6rpx">{{item.userInfo.name}}</view>
          <view class="fontColorX font-flex-word" style="font-size: 0.28rem;width: 4.5rem;padding:0.1rem 0" a:if="{{item.dept_list.length>0}}">
            <text a:for="{{item.dept_list}}" a:for-item="item2" a:for-index="index2">{{ item2.name }}<text a:if="{{item.dept_list.length - index2 > 1}}">,</text></text>
          </view>
      </view>
      <view class="orangeBox">{{item.str}}</view>
    </view>
    <view class="noDatas" a:if="{{isData}}">没有更多咯</view>
  </scroll-view>
  <no-data a:if="{{list.length==0}}"></no-data>
</view>