index.wxml 1.68 KB
<!--packageWorkspace/pages/residentManage/components/staffSelectPopup/index.wxml-->
<popup title="选择员工" show="{{ show }}" bindconfirm="confirm" height="85%" bindcancel="hidePopup" class="staff-wrap">
  <view class="search-input">
    <image src="/images/search.png" class="search-icon" />
    <input type="text" placeholder="员工查询" class="input" value="{{ keyword }}" placeholder-class="input-placeholder" bindinput="input" bindconfirm="search" />
    <block wx:if="{{ keyword }}">
      <image src="/images/clear.png" class="search-clear" bindtap="clear" />
    </block>
  </view>
  <block wx:if="{{isFlag}}">
    <scroll-view class="staff-select-box" scroll-top="{{scrollTop}}"  style="height: calc(100% - var(--fontSize82));" enhanced="{{true}}" show-scrollbar="{{false}}" scroll-y bindscrolltolower="mineReachBottom">
      <view class="staff-box" wx:if="{{staffList.length>0}}">
        <block wx:for="{{staffList}}" wx:key="index">
          <view class="item {{selectItem.staffId == item.id ? 'active' : ''}}" bindtap="choose" data-item="{{item}}">
            <view class="staff_item">
              <view class="text-hide">{{item.staffName}}</view>
            </view>
            <view class="mark" wx:if="{{selectItem.staffId == item.id}}">
              <gl-image class="icon" src="/equity/mark.png" />
            </view>
          </view>
        </block>
		<view class="list-nothing" wx:if="{{requestLoading}}">加载中</view>
        <block wx:if="{{nothing}}">
          <view class="list-nothing">到底了~</view>
        </block>
      </view>
      <view class="no-data" wx:if="{{!staffList.length}}">
        <empty-data />
      </view>
    </scroll-view>
  </block>

</popup>