myServantList.axml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
  2. <view class="common-page-padding">
  3. <!-- 保姆列表 -->
  4. <view a:if="{{listShow}}">
  5. <view class="customer-list">
  6. <view class="customer-item common-card {{item.isInvalid=='0'?'un-bind':''}}" a:for="{{servantList}}" key="{{index}}">
  7. <view class="main-info">
  8. <text class="customer-name">{{item.servantName}}</text>
  9. <text class="link-text" data-id="{{index}}" onTap="editServant" data-relationInfo="{{item}}">编辑信息</text>
  10. </view>
  11. <view class="work-day">
  12. {{item.servantTaskPeriod.workDay}}
  13. </view>
  14. <view>
  15. 保姆工种:{{formate.serviceType(item.servantType)}}
  16. </view>
  17. <view a:if="{{item.isInvalid=='0'}}" class="bind-code">
  18. <text>关联码:{{item.employIdentifier
  19. }}</text>
  20. <text class="copy-btn" onTap="copyCode" data-code="{{item.employIdentifier
  21. }}">复制</text>
  22. </view>
  23. <view class="bind-dashboard">
  24. <view>关联时间:{{formate.bindTime(item.relationTime)}}</view>
  25. <view class="link-text" onTap="enterCustomerCenter" data-emReNo="{{item.employRelationNo}}">进入工作台 > </view>
  26. </view>
  27. </view>
  28. </view>
  29. <view class="common-button-wrapper">
  30. <button type="primary" class="common-button" hover-class="active-button" onTap="addServant">添加保姆</button>
  31. </view>
  32. </view>
  33. <!-- 暂无保姆 -->
  34. <view a:if="{{noServantList}}">
  35. <view class="no-content-wrapper">
  36. <image mode="aspectFill" src="/image/no-content.png"/>
  37. </view>
  38. <view class="no-add">您还未添加保姆</view>
  39. <view class="no-add-tips">添加保姆,沟通更轻松</view>
  40. <view class="mini-button-wrapper">
  41. <button type="primary" class="common-button" hover-class="active-button" size="mini" onTap="addServant">现在添加</button>
  42. </view>
  43. <view class="switch-role" onTap="switchRole">角色选择错啦,去切换 >></view>
  44. <modal
  45. show="{{unSetModal}}"
  46. showClose="{{false}}"
  47. onButtonClick="onSetButtonClick"
  48. buttonsLayout="vertical"
  49. buttons="{{unSetBtn}}"
  50. >
  51. <view slot="header">您尚未设置服务者</view>
  52. 先设置服务者吧
  53. </modal>
  54. </view>
  55. </view>