servant.wxml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248
  1. <view class="myqr" wx:if="{{myqr_show}}">
  2. <view>
  3. <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart"></image>
  4. </view>
  5. <view>
  6. <image class="img" src="{{myqr_url}}" mode="widthFix" />
  7. </view>
  8. <view>
  9. <image class="btn" style="float:unset" bindtap="saveShare" src="/static/images/right.png" />
  10. </view>
  11. </view>
  12. <!-- <view>
  13. <image src="/static/images/csr.png"
  14. style="width: 80px;height: 80px;position: absolute;z-index: 9;top: 300rpx;right: 15rpx;"></image>
  15. <contact-button class="csr" type="default-dark"
  16. style="opacity: 0;position: absolute;z-index: 99999;right: 15rpx; width: 100rpx;height: 100rpx;top:400rpx"
  17. session-from="weapp" size="27">
  18. </contact-button>
  19. </view> -->
  20. <view class="container" style="filter:blur({{myqr_blur}}rpx)">
  21. <view class="top">
  22. <view class="profile-info" bindtap="goLogin">
  23. <image class="avatar" src="{{userInfo.avatarUrl}}"></image>
  24. <view class="info">
  25. <text class="name" style="margin-top:0rpx">{{userInfo.nickName}}</text>
  26. <text class="cert">{{userInfo.mobile}}</text>
  27. <button wx:if="{{userInfo.avatarUrl=='/static/images/my.png'}}" bindtap="getUserProfile"
  28. class="plus">完善信息</button>
  29. </view>
  30. <view class="logout" wx:if="{{hasLogin}}" bindtap="exitLogin">退出登录</view>
  31. </view>
  32. <view class='user_column'>
  33. <view wx:if="{{!isMaster}}" class='user_column_item' bindtap='goBookIndex' data-index='0' data-route='/pages/servant/list/booklist'>
  34. <text class="user_column_item_badge" wx:if="{{count != 0}}">{{count}}</text>
  35. <image class='user_column_item_image' src='/static/images/change.png'/>
  36. <view class='user_column_item_text'>我的工单</view>
  37. </view>
  38. <view class='user_column_item' bindtap='goNucleicList' data-index='3' data-route='/pages/ucenter/nucleic/list'>
  39. <image class='user_column_item_image' src='/static/images/right.png'/>
  40. <view class='user_column_item_text'>报告上传</view>
  41. </view>
  42. <view wx:if="{{!isMaster}}" class='user_column_item' bindtap='goLeave' data-index='5' data-route='/pages/pre/list/preList'>
  43. <image class='user_column_item_image' src='/static/images/leave.png'/>
  44. <view class='user_column_item_text'>请假</view>
  45. </view>
  46. <view wx:if="{{isMaster}}" class='user_column_item' bindtap='goCRM' data-index='5' data-route='/pages/servant/crm/ticket'>
  47. <image class='user_column_item_image' src='/static/images/feedback.png'/>
  48. <view class='user_column_item_text'>CRM工单</view>
  49. <view>3</view>
  50. </view>
  51. <view class='user_column_item' bindtap='goBookIndex' data-index='4' data-route='/pages/mall/catalog/catalog'>
  52. <image class='user_column_item_image' src='/static/images/box.png'/>
  53. <view class='user_column_item_text'>商城</view>
  54. </view>
  55. <view class='user_column_item' bindtap='goBookIndex' data-index='1' data-route='/pages/mall/order/order'>
  56. <image class='user_column_item_image' src='/static/images/change.png'/>
  57. <view class='user_column_item_text'>我的订单</view>
  58. </view>
  59. </view>
  60. </view>
  61. <!-- 服务者薪资 -->
  62. <view class="main-module" wx:if="{{!isMaster}}">
  63. <view class="main-title">
  64. <image style="height: 60rpx;width:60rpx;" src="/static/images/money.png"></image>
  65. <view class="txt">我的服务费
  66. <image src="/static/images/question.png" bindtap="goShowMoneyTip"></image>
  67. </view>
  68. </view>
  69. <view style=" display: flex; justify-content: space-around;">
  70. <view class="coupon-block border-right" data-type="1" wx:if="{{board.type!=99}}" bindtap="goSalaryDetail">
  71. <text class="money">¥{{salary.salary}}</text>
  72. <text class="module-text">本月预计服务费</text>
  73. </view>
  74. <view class="coupon-block border-right" data-type="1" wx:if="{{board.type==99}}" bindtap="goSalaryDetail">
  75. <text class="money">¥{{salary.salary}}</text>
  76. <text class="module-text">可提现</text>
  77. </view>
  78. <view class="coupon-block" data-type="2" bindtap="goSalaryDetail">
  79. <text class="money">¥{{salary.total}}</text>
  80. <text class="module-text">历史总服务费</text>
  81. </view>
  82. </view>
  83. </view>
  84. <!-- 服务者维度 -->
  85. <view class="main-module" wx:if="{{!isMaster}}">
  86. <view class="main-title">
  87. <image style="height: 60rpx;width:60rpx;" src="/static/images/ticket@selected.png"></image>
  88. <view style="font-size: 36rpx;font-weight: 500;color:#666;margin-left: 10rpx;">我的服务单</view>
  89. </view>
  90. <view style=" display: flex; justify-content: space-around;">
  91. <view class="coupon-block">
  92. <text class="num">{{board.total}}</text>
  93. <text class="module-text">总服务单</text>
  94. </view>
  95. <view class="coupon-block">
  96. <text class="num">{{board.cycle}}</text>
  97. <text class="module-text">周期单</text>
  98. </view>
  99. <view class="coupon-block">
  100. <text class="num">{{board.completed}}</text>
  101. <text class="module-text">已完成</text>
  102. </view>
  103. <view class="coupon-block">
  104. <text class="num">{{board.waiting}}</text>
  105. <text class="module-text">待履约</text>
  106. </view>
  107. </view>
  108. </view>
  109. <view class="alula-expert-calendar">
  110. <calendar id="calendar" config="{{calendarConfig}}" bind:onSwipe="onSwipe" bind:takeoverTap="takeoverTap"
  111. bind:afterTapDate="afterTapDate" bind:whenChangeMonth="whenChangeMonth"
  112. bind:afterCalendarRender="afterCalendarRender"></calendar>
  113. </view>
  114. <view class="alula-expert-calendar-wrap">
  115. <view class="alula-border-radius alula-expert-form-wrap">
  116. <view class="alula-expert-calendar-title">
  117. <view class="txt">{{selectedDate}}</view>
  118. <view bindtap="goList">共{{selected.length}}单</view>
  119. </view>
  120. <view wx:for="{{selected}}" wx:key="index" class="alula-expert-calendar-content">
  121. <view class="book">
  122. <view class="title">
  123. <view>第{{index+1}}单</view>
  124. <view>{{item.type}}-{{item.status}}</view>
  125. </view>
  126. <view class="content">
  127. <view wx:if="{{!isMaster}}" data-id="{{item.bookNo}}" bindtap="goBookDetail">
  128. <view class="goods">{{item.address}}</view>
  129. <view class="address">服务名称:{{item.goodsName}}</view>
  130. <view class="time">服务时间:{{item.startTime}}-{{item.endTime}}</view>
  131. <view class="address">客户评价:{{item.comment}}</view>
  132. <view class="address">服务备注:{{item.remark}}</view>
  133. </view>
  134. <view wx:else="" bindtap="goBookDetail" data-type='order' data-id='{{item.bookNo}}'>
  135. <!-- <view class="goods">{{item.address}}</view> -->
  136. <view class="address">服务商品:{{item.goodsName}}</view>
  137. <view class="address" wx:if="{{item.unitIncreaseNumber&&item.unitIncreaseNumber>0}}">加购内容:{{item.unitDescribe}}*{{item.unitIncreaseNumber}}</view>
  138. <view class="time" style="margin-bottom: unset;">支付时间:{{item.startTime}}</view>
  139. <view class="address">下单门店:{{item.shopName}}</view>
  140. </view>
  141. <view>
  142. <view bindtap="makeCall" data-phone='{{item.phone}}'
  143. style="display: flex;justify-content: space-between;">
  144. <view class="address">联系电话:{{item.phone}}</view>
  145. <view style="display: flex;align-items: center;height: 40rpx;">
  146. <image style="width: 30rpx;height:32rpx;margin-top: 5rpx;" src="/static/images/phone.png"></image>
  147. <view style="color:#666;margin-left: 10rpx;font-size: 32rpx;">联系</view>
  148. </view>
  149. </view>
  150. </view>
  151. <view class="order-item-operate">
  152. <view class="order-operate-wrapper" wx:if="{{!isMaster&&selectedDate==today}}">
  153. <view wx:if="{{item.status=='待上门'&&isTest}}" bindtap="goArrived" data-id='{{item.bookNo}}'>我已上门</view>
  154. <view wx:if="{{item.status=='待履约'&&isTest}}" bindtap="goConfirm" data-id='{{item.bookNo}}'>服务已完成</view>
  155. <view bindtap="goBookDetail" data-id='{{item.bookNo}}'>详情</view>
  156. <view bindtap="goProblemAdd" data-id='{{item.bookNo}}'>问题报备</view>
  157. <view bindtap="openMap" data-id='{{item.bookNo}}'>导航</view>
  158. <!-- <view bindtap="makeCall" data-phone='{{item.phone}}'>联系客户</view> -->
  159. </view>
  160. <view class="order-operate-wrapper" wx:if="{{isMaster}}">
  161. <view bindtap="goPaymentOrderDetail" data-id='{{item.bookNo}}'>详情</view>
  162. <!-- <view bindtap="goPaymentMemo" data-id='{{item.bookNo}}'>添加备注</view> -->
  163. </view>
  164. </view>
  165. </view>
  166. </view>
  167. </view>
  168. <view wx:if="{{selected.length==0}}" style="text-align:center;margin: 30rpx;color:#9e9797;height:76rpx;">
  169. {{selectedDate}}无服务</view>
  170. </view>
  171. </view>
  172. <!--站长维度 折线图
  173. <view class='mymain' wx:if="{{isMaster}}">
  174. <view class='qs'>
  175. <view class="container1">
  176. <view class='container_head'>
  177. <view class='container_head_top'>
  178. <view class='prev1' bindtap="goPreWeek">
  179. <text class='iconfont1 icon-iconfontzhizuobiaozhun023126'></text>
  180. <text>上一周</text>
  181. </view>
  182. <view class='top_title'>{{line.week}}</view>
  183. <view class='next1' bindtap="goNextWeek">
  184. <text>下一周</text>
  185. <text class='iconfont1 icon-jiantouyou'></text>
  186. </view>
  187. </view>
  188. <view class='container_head_main'>
  189. <view>
  190. <view class='main_main'>{{line.total}}</view>
  191. <view class='main_Ttitle'>总单量</view>
  192. </view>
  193. <view>
  194. <view class='main_main'>{{line.cyle}}</view>
  195. <view class='main_Ttitle'>周期单</view>
  196. </view>
  197. <view>
  198. <view class='main_main'>{{line.servants}}</view>
  199. <view class='main_Ttitle'>服务者数</view>
  200. </view>
  201. <view>
  202. <view class='main_main'>{{line.ticket}}</view>
  203. <view class='main_Ttitle'>客诉数</view>
  204. </view>
  205. </view>
  206. </view>
  207. <canvas canvas-id="lineCanvas" disable-scroll="true" class="canvas" bindtouchstart="touchHandler"></canvas>
  208. </view>
  209. </view>
  210. </view>-->
  211. <!-- <view class="title">
  212. 全部商品服务
  213. </view>
  214. <view class='item' wx:for="{{list}}" wx:key="id">
  215. <view>
  216. <view class="name">{{item.name}}</view>
  217. <view class="price">¥{{item.retailPrice}}</view>
  218. <image src="{{item.picUrl}}" background-size="cover" class="img"></image>
  219. </view>
  220. <view class="tool">
  221. <button class="btn">分享链接</button>
  222. <button class="btn" bindtap="shareGoods" data-id="{{item.id}}">开单</button>
  223. <button class="btn" style="color:red">更多</button>
  224. </view>
  225. </view>
  226. <view wx:if="{{!list.length>0}}" style="text-align:center;padding:50rpx;font-size:46rpx">当前区域,无服务门店</view> -->
  227. </view>