myCustomerList.axml 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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" a:for="{{customerList}}" key="{{index}}">
  7. <view class="main-info">
  8. <text class="customer-name">{{item.employerName}}</text>
  9. <text class="link-text" data-id="{{index}}" onTap="editCustomer" data-emReNo="{{item.employRelationNo}}" data-emName="{{item.employerName}}">编辑信息</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 class="bind-dashboard">
  18. <view>关联时间:{{formate.bindTime(item.relationTime)}}</view>
  19. <view class="link-text" onTap="enterServantCenter" data-emReNo="{{item.employRelationNo}}">进入工作台 > </view>
  20. </view>
  21. </view>
  22. </view>
  23. <view class="common-button-wrapper">
  24. <button type="primary" class="common-button" hover-class="active-button" onTap="bindNewCustomer">添加客户</button>
  25. </view>
  26. <modal
  27. show="{{editModalShow}}"
  28. showClose="{{false}}"
  29. onButtonClick="onModalClose"
  30. buttons="{{buttonFooter}}"
  31. >
  32. <view slot="header">编辑雇主信息</view>
  33. <input class="input" maxlength="10" placeholder="请输入雇主称呼" onInput="bindKeyInput" value="{{customerName}}"/>
  34. </modal>
  35. </view>
  36. <!-- 暂无保姆 -->
  37. <view a:if="{{noCustomerList}}">
  38. <view class="no-content-wrapper">
  39. <image mode="aspectFill" src="/image/no-content.png"/>
  40. </view>
  41. <view class="no-add">您还未关联客户</view>
  42. <view class="no-add-tips">关联客户,沟通更轻松</view>
  43. <view class="mini-button-wrapper">
  44. <button type="primary" class="common-button" hover-class="active-button" size="mini" onTap="bindNewCustomer">现在关联</button>
  45. </view>
  46. <view class="switch-role" onTap="switchRole">角色选择错啦,去切换 >> </view>
  47. <modal
  48. show="{{unSetModal}}"
  49. showClose="{{false}}"
  50. onButtonClick="onSetButtonClick"
  51. buttonsLayout="vertical"
  52. buttons="{{unSetBtn}}"
  53. >
  54. <view slot="header">您尚未关联雇主</view>
  55. 请先向雇主索要关联码哦
  56. </modal>
  57. </view>
  58. <!-- 关联雇主 -->
  59. <modal
  60. show="{{bindModalShow}}"
  61. showClose="{{false}}"
  62. onButtonClick="onBindModalClose"
  63. buttons="{{buttonFooter}}"
  64. >
  65. <view slot="header">关联雇主</view>
  66. <view class="bind-input-wrapper">
  67. <input class="input" maxlength="9" placeholder="请输入关联码" onInput="bindCodeInput" value="{{bindCode}}" type="number"/>
  68. <input class="input" maxlength="10" placeholder="请输入雇主称呼" onInput="bindNameInput" value="{{bindName}}" />
  69. </view>
  70. </modal>
  71. </view>