customerCenter.axml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  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 {{isBind?'':'un-bind'}}">
  5. <view class="info-main">
  6. <view class="show-name">
  7. <text>{{servantName}}</text>
  8. <image mode="aspectFill" src="/image/icon-edit.png" class="edit-btn" onTap="editServant"/>
  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 class="bind-code" a:if="{{!isBind}}">
  21. <text>关联码:{{bindCode}}</text>
  22. <text class="copy-btn" onTap="copyCode">复制</text>
  23. </view>
  24. </view>
  25. <view class="about-right" onTap="switchSerHobby">保姆偏好</view>
  26. </view>
  27. </view>
  28. <!-- 通知 月报更新 bmybgx-->
  29. <view class="notice-bar" a:if="{{bmybgxShow}}">
  30. <view class="notice-main">月报新鲜出炉,<text class="link-view-text" onTap="viewMonthReport" data-noticeType="bmybgx">点击查看</text>保姆本月表现</view>
  31. <view class="close-wrapper" onTap="closeNotice" data-noticeType="bmybgx">
  32. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  33. </view>
  34. </view>
  35. <!-- 通知 任务无法完成rwwfwc-->
  36. <view class="notice-bar" a:if="{{rwwfwcShow}}">
  37. <view class="notice-main">[{{servantName}}]表示有任务无法完成,<text class="link-view-text" onTap="viewTaskReminder" data-noticeType="rwwfwc">点击查看原因>></text></view>
  38. <view class="close-wrapper" onTap="closeNotice" data-noticeType="rwwfwc">
  39. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  40. </view>
  41. </view>
  42. <!-- 通知 偏好设置phsz-->
  43. <view class="notice-bar" a:if="{{phszShow}}">
  44. <view class="notice-main">[{{servantName}}]设置了保姆偏好,<text class="link-view-text" data-noticeType="phsz" onTap="viewSerHobby">点击查看>></text> </view>
  45. <view class="close-wrapper" onTap="closeNotice" data-noticeType="phsz">
  46. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  47. </view>
  48. </view>
  49. <!-- 通知 偏好更新phgx-->
  50. <view class="notice-bar" a:if="{{phgxShow}}">
  51. <view class="notice-main">[{{servantName}}]更新了保姆偏好,<text class="link-view-text" data-noticeType="phgx" onTap="viewSerHobby">点击查看>></text></view>
  52. <view class="close-wrapper" onTap="closeNotice" data-noticeType="phgx">
  53. <image mode="aspectFill" src="/image/icon-close.png" class="notice-close" />
  54. </view>
  55. </view>
  56. <!-- 任务提醒 -->
  57. <view class="common-card task-module" >
  58. <view class="task-top" onTap="switchTaskRemind">
  59. <view class="module-title">任务提醒
  60. <text class="task-schedule" a:if="{{taskListShow}}">完成进度{{completeTaskCount}}/{{totalTaskCount}}</text>
  61. </view>
  62. <view class="module-detail">高效沟通 任务提醒更可靠</view>
  63. </view>
  64. <!-- 暂未添加 -->
  65. <view class="no-add" a:if="{{noAddTaskShow}}" onTap="switchAddTask">
  66. +快速添加
  67. </view>
  68. <!-- 今天无任务 -->
  69. <view class="no-task" a:if="{{noTaskShow}}">
  70. 今天保姆休息
  71. </view>
  72. <!-- 任务列表 -->
  73. <view class="task-list" a:if="{{taskListShow}}">
  74. <view class="task-item" a:for="{{taskList}}" key="{{index}}">
  75. {{item}}
  76. </view>
  77. </view>
  78. </view>
  79. <!-- 服务标准 -->
  80. <view class="common-card module-card" onTap="switchSerStandard">
  81. <view class="module-text">
  82. <view class="module-title">
  83. 服务标准
  84. <text class="no-service-standard" a:if="{{noSetSerStan}}">未设置</text>
  85. </view>
  86. <view class="module-detail">标准化服务 更贴心</view>
  87. </view>
  88. </view>
  89. <!-- 月报 -->
  90. <view class="common-card module-card" onTap="switchReportList">
  91. <view class="module-text">
  92. <view class="module-title">
  93. 保姆月报
  94. <text class="report-tips" a:if="{{noReportShow}}">服务时间较短,暂未生成~</text>
  95. </view>
  96. <view class="module-detail">服务回顾 发现问题</view>
  97. </view>
  98. </view>
  99. <!-- 敬请期待 -->
  100. <view class="common-card future-module">
  101. <view class="forward-title">敬请期待</view>
  102. <view class="forward-unit-wrapper">
  103. <view class="forward-unit">
  104. <image mode="aspectFit" src="/image/future-1.png"/>
  105. <text>服务合同</text>
  106. </view>
  107. <view class="forward-unit">
  108. <image mode="aspectFit" src="/image/future-2.png"/>
  109. <text>保险查询</text>
  110. </view>
  111. <view class="forward-unit">
  112. <image mode="aspectFit" src="/image/future-3.png"/>
  113. <text>薪资收发</text>
  114. </view>
  115. <!-- <view class="forward-unit">
  116. <image mode="widthFix" src=""/>
  117. </view> -->
  118. </view>
  119. </view>
  120. <!-- 设置服务标准提醒 -->
  121. <modal
  122. show="{{unSetServiceModal}}"
  123. showClose="{{false}}"
  124. onButtonClick="onSetServiceButtonClick"
  125. buttonsLayout="vertical"
  126. buttons="{{unSetBtn}}"
  127. >
  128. <view slot="header">您尚未设置服务标准</view>
  129. 先设置服务标准
  130. </modal>
  131. <!-- 设置任务提醒 -->
  132. <modal
  133. show="{{unSetTaskModal}}"
  134. showClose="{{false}}"
  135. onButtonClick="onSetTaskButtonClick"
  136. buttonsLayout="vertical"
  137. buttons="{{unSetBtn}}"
  138. >
  139. <view slot="header">您尚未设置任务提醒</view>
  140. 先设置任务提醒
  141. </modal>
  142. <!-- 完成设置指引 -->
  143. <modal
  144. show="{{finishSetModal}}"
  145. showClose="{{false}}"
  146. onButtonClick="onFinishButtonClick"
  147. buttonsLayout="vertical"
  148. buttons="{{finishSetBtn}}"
  149. >
  150. <view slot="header">{{finishTitle}}</view>
  151. {{finishTips}}
  152. </modal>
  153. </view>