servantCenter.axml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <import-sjs from="../../../util/formateFuc.sjs" name="formate"></import-sjs>
  2. <view class="common-page-padding">
  3. <!-- 信息面板 -->
  4. <view class="common-card top-panel">
  5. <view class="info-main">
  6. <view class="show-name">
  7. <text>{{customerName}}</text>
  8. <image mode="aspectFill" src="/image/icon-edit.png" class="edit-btn" onTap="editCustomer"/>
  9. </view>
  10. <view class="switch-list" onTap="switchList">
  11. <image mode="aspectFill" src="/image/switch-grey.png" class="switch-btn" a:if="{{isOnlyOne}}"/>
  12. <image mode="aspectFill" src="/image/switch-blue.png" class="switch-btn" a:if="{{!isOnlyOne}}"/>
  13. <text class="{{isOnlyOne?'':'switch-text'}}">切换到其他家庭</text>
  14. </view>
  15. </view>
  16. <view class="work-day">{{workDay}}</view>
  17. <view class="about-detail">
  18. <view class="about-left">
  19. <view class="service-model">保姆工种:{{formate.serviceType(serviceType)}}</view>
  20. </view>
  21. <view class="about-right"></view>
  22. </view>
  23. </view>
  24. <!-- 通知 -->
  25. <view class="notice-bar" a:if="{{noticeShow}}">
  26. <view class="notice-main">强提醒内容</view>
  27. <view class="close-wrapper">
  28. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" onTap="closeNotice"/>
  29. </view>
  30. </view>
  31. <!-- 任务提醒 -->
  32. <view class="common-card task-module" onTap="switchTaskRemind">
  33. <view class="task-top">
  34. <view class="module-title">任务提醒
  35. <text class="task-schedule" a:if="{{taskListShow}}">完成进度{{completeTaskCount}}/{{totalTaskCount}}</text>
  36. </view>
  37. <view class="module-detail">高效沟通 任务提醒更可靠</view>
  38. </view>
  39. <!-- 暂未添加 -->
  40. <view class="no-task" a:if="{{noAddTaskShow}}">
  41. 雇主暂未设置
  42. </view>
  43. <!-- 今天无任务 -->
  44. <view class="no-task" a:if="{{noTaskShow}}">
  45. 今日是信息日
  46. </view>
  47. <!-- 任务列表 -->
  48. <view class="task-list" a:if="{{taskListShow}}">
  49. <view class="task-item" a:for="{{taskList}}" key="{{index}}">
  50. {{item.itemName}}
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 服务标准 -->
  55. <view class="common-card module-card" onTap="switchSerStandard">
  56. <view class="module-text">
  57. <view class="module-title">
  58. 服务标准
  59. <text class="no-service-prefer" a:if="{{noSetSerStan}}">未设置</text>
  60. </view>
  61. <view class="module-detail">标准化服务 更贴心</view>
  62. </view>
  63. </view>
  64. <!-- 服务偏好 -->
  65. <view class="common-card module-card" onTap="switchSerHobby">
  66. <view class="module-text">
  67. <view class="module-title">
  68. 服务偏好
  69. <text class="no-service-standard" a:if="{{noSetSerHobby}}">未设置</text>
  70. </view>
  71. <view class="module-detail">标准化服务 更贴心</view>
  72. </view>
  73. </view>
  74. <!-- 月报 -->
  75. <view class="common-card module-card">
  76. <view class="module-text">
  77. <view class="module-title">
  78. 保姆月报
  79. <text class="report-tips">服务时间较短,暂未生成~</text>
  80. </view>
  81. <view class="module-detail">服务回顾 发现问题</view>
  82. </view>
  83. </view>
  84. <modal
  85. show="{{editModalShow}}"
  86. showClose="{{false}}"
  87. onButtonClick="onModalClose"
  88. buttons="{{buttonFooter}}"
  89. >
  90. <view slot="header">编辑客户姓名</view>
  91. <input class="input" maxlength="10" placeholder="请输入客户姓名" onInput="bindKeyInput" value="{{editCustomerName}}"/>
  92. </modal>
  93. <modal
  94. show="{{unSetModal}}"
  95. showClose="{{false}}"
  96. onButtonClick="onSetButtonClick"
  97. buttonsLayout="vertical"
  98. buttons="{{unSetBtn}}"
  99. >
  100. <view slot="header">您尚未设置偏好</view>
  101. 设置偏好,您的诉求同样重要
  102. </modal>
  103. </view>