servantCenter.axml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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. <!-- 通知 月报更新 gzybgx-->
  25. <view class="notice-bar" a:if="{{gzybgxShow}}">
  26. <view class="notice-main">月报新鲜出炉,<text class="link-view-text" onTap="viewMonthReport" data-noticeType="gzybgx">点击查看</text>我的本月表现</view>
  27. <view class="close-wrapper" onTap="closeNotice" data-noticeType="gzybgx">
  28. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  29. </view>
  30. </view>
  31. <!-- 通知 任务设置rwsz-->
  32. <view class="notice-bar" a:if="{{rwszShow}}">
  33. <view class="notice-main">[{{customerName}}]设置了我的任务,<text class="link-view-text" onTap="viewTaskReminder" data-noticeType="rwsz">点击查看>></text></view>
  34. <view class="close-wrapper" onTap="closeNotice" data-noticeType="rwsz">
  35. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  36. </view>
  37. </view>
  38. <!-- 通知 任务更新rwgx-->
  39. <view class="notice-bar" a:if="{{rwgxShow}}">
  40. <view class="notice-main">[{{customerName}}]更新了我的任务,<text class="link-view-text" onTap="viewTaskReminder" data-noticeType="rwgx">点击查看>></text></view>
  41. <view class="close-wrapper" onTap="closeNotice" data-noticeType="rwgx">
  42. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  43. </view>
  44. </view>
  45. <!-- 通知 服务标准设置fwbzsz-->
  46. <view class="notice-bar" a:if="{{fwbzszShow}}">
  47. <view class="notice-main">[{{customerName}}]设置了服务标准,<text class="link-view-text" data-noticeType="fwbzsz" onTap="viewSerStan">点击查看>></text> </view>
  48. <view class="close-wrapper" onTap="closeNotice" data-noticeType="fwbzsz">
  49. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  50. </view>
  51. </view>
  52. <!-- 通知 服务标准更新fwbzgx-->
  53. <view class="notice-bar" a:if="{{fwbzgxShow}}">
  54. <view class="notice-main">[{{customerName}}]更新了服务标准,<text class="link-view-text" data-noticeType="fwbzgx" onTap="viewSerStan">点击查看>></text></view>
  55. <view class="close-wrapper" onTap="closeNotice" data-noticeType="fwbzgx">
  56. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  57. </view>
  58. </view>
  59. <!-- 任务提醒 -->
  60. <view class="common-card task-module" >
  61. <view class="{{noAddTaskShow?'no-task-top':'task-top'}}" onTap="switchTaskRemind">
  62. <view class="module-title">任务提醒
  63. <text class="task-schedule" a:if="{{taskListShow}}">完成进度{{completeTaskCount}}/{{totalTaskCount}}</text>
  64. </view>
  65. <view class="module-detail">高效沟通 任务提醒更可靠</view>
  66. </view>
  67. <!-- 暂未添加 -->
  68. <view class="no-task" a:if="{{noAddTaskShow}}">
  69. 雇主暂未设置
  70. </view>
  71. <!-- 今天无任务 -->
  72. <view class="no-task" a:if="{{noTaskShow}}">
  73. {{taskTipText}}
  74. </view>
  75. <!-- 任务列表 -->
  76. <view class="task-list" a:if="{{taskListShow}}">
  77. <view class="task-item" a:for="{{taskList}}" key="{{index}}">
  78. {{item.itemName}}
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 服务标准 -->
  83. <view class="common-card module-card" onTap="switchSerStandard">
  84. <view class="module-text">
  85. <view class="module-title">
  86. 服务标准
  87. <text class="no-service-prefer" a:if="{{noSetSerStan}}">未设置</text>
  88. </view>
  89. <view class="module-detail">标准化服务 更贴心</view>
  90. </view>
  91. </view>
  92. <!-- 服务偏好 -->
  93. <view class="common-card module-card" onTap="switchSerHobby">
  94. <view class="module-text">
  95. <view class="module-title">
  96. 服务偏好
  97. <text class="no-service-standard" a:if="{{noSetSerHobby}}">未设置</text>
  98. </view>
  99. <view class="module-detail">标准化服务 更贴心</view>
  100. </view>
  101. </view>
  102. <!-- 月报 -->
  103. <view class="common-card module-card" onTap="switchReportList">
  104. <view class="module-text">
  105. <view class="module-title">
  106. 保姆月报
  107. <text class="report-tips" a:if="{{noReportShow}}">服务时间较短,暂未生成~</text>
  108. </view>
  109. <view class="module-detail">服务回顾 发现问题</view>
  110. </view>
  111. </view>
  112. <modal
  113. show="{{editModalShow}}"
  114. showClose="{{false}}"
  115. onButtonClick="onModalClose"
  116. buttons="{{buttonFooter}}"
  117. >
  118. <view slot="header">编辑客户姓名</view>
  119. <input class="input" maxlength="10" placeholder="请输入客户姓名" onInput="bindKeyInput" value="{{editCustomerName}}"/>
  120. </modal>
  121. <modal
  122. show="{{unSetModal}}"
  123. showClose="{{false}}"
  124. onButtonClick="onSetButtonClick"
  125. buttonsLayout="vertical"
  126. buttons="{{unSetBtn}}"
  127. >
  128. <view slot="header">我的偏好</view>
  129. 您的需求也同样重要哦
  130. </modal>
  131. <!-- 完成设置指引 -->
  132. <modal
  133. show="{{finishSetModal}}"
  134. showClose="{{false}}"
  135. onButtonClick="onFinishButtonClick"
  136. buttonsLayout="vertical"
  137. buttons="{{finishSetBtn}}"
  138. >
  139. <view slot="header">您差一点点就完成所有设置喽</view>
  140. 记得设置我的偏好哦
  141. </modal>
  142. </view>