selectStaff.axml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <view class="all-date">
  2. <view class="data-tier" catchTap="onClose"></view>
  3. <view class="staff-header {{isShow?'showPop':''}}">
  4. <form onReset="onReset">
  5. <view class="search flex-box flex-v-ce">
  6. <image mode="scaleToFill" src="../../../image/ss.png"/>
  7. <input placeholder="请输入姓名搜索" onInput="bindKeyInput" class="flex-1"/>
  8. <button a:if="{{isVal}}" class="delVal" formType="reset">×</button>
  9. </view>
  10. </form>
  11. <scroll-view class="staff-ul" scroll-y="{{true}}">
  12. <view class="flex-box flex-v-ce userItem" a:for="{{userList}}" a:if="{{item.name.indexOf(keyVal)>= 0}}">
  13. <label class="flex-box flex-v-ce flex-1">
  14. <img-box name="{{item.name}}" imgUrl="{{item.img_url}}" height="70rpx" width="70rpx"></img-box>
  15. <text style="margin-left:20rpx;" class="flex-1">{{item.name}}</text>
  16. <checkbox onChange="radioChange" data-index="{{index}}" data-item="{{item}}" checked="{{item.checked}}" name="{{item.id}}" value="{{item}}"/>
  17. </label>
  18. </view>
  19. <view a:if="{{userList.length==0}}" class="fontColorF" style="margin-top:200rpx;text-align: center;">
  20. <view>暂无相关人员</view>
  21. </view>
  22. </scroll-view>
  23. <view class="flex-box flex-v-ce selectUsers" a:if="{{selectUserId.length>0}}">
  24. <view a:for="{{selectUserId}}" style="margin-right:10rpx;height:70rpx;">
  25. <image a:if="{{item.img_url}}" class="img-url" style="width:70rpx;height:70rpx;display: inline-block; position: relative;top: 6rpx;" src="{{item.img_url}}"></image>
  26. <view a:else style="width: 70rpx;height: 70rpx;border-radius: 100%;background: #26A2FF;color: #fff;text-align: center;line-height: 70rpx;font-size: 24rpx;">{{item.name.substr(item.name.length-2)}}</view>
  27. </view>
  28. </view>
  29. <view class="flex-box date-btn">
  30. <view class="flex-1" catchTap="onClose">取消</view>
  31. <view class="flex-1" catchTap="onConfirm">确定</view>
  32. </view>
  33. </view>
  34. <view class="meng" catchTap="onClose"></view>
  35. </view>