order.wxml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. <wxs src="../../../utils/formatFuc.wxs" module="utils" />
  2. <view>
  3. <view class="poster" wx:if="{{myqr_show}}">
  4. <view>
  5. <image src="{{myqr_url}}" style="width:{{myqr_width}}rpx;" mode="widthFix">
  6. </image>
  7. <view class="tool">
  8. <view>
  9. <button open-type='share' class="share-btn">
  10. <image class="img" style="width: 85rpx;margin-right: 25rpx;" mode="widthFix" src="/static/images/share/p_dy.png"></image>
  11. </button>
  12. </view>
  13. <view>
  14. <image class="img" mode="widthFix" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  15. </view>
  16. </view>
  17. <view style="text-align:center">
  18. <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="appoint-tabs-wrapper">
  23. <view class="appoint-tab-item {{showType==2?'active':''}}" data-tab="2" bindtap="onTabChange">服务中</view>
  24. <view class="appoint-tab-item {{showType==1?'active':''}}" data-tab="1" bindtap="onTabChange">未支付</view>
  25. <view class="appoint-tab-item {{showType==0?'active':''}}" data-tab="0" bindtap="onTabChange">全 部</view>
  26. </view>
  27. <view class="container" style="filter:blur({{myqr_blur}}rpx)">
  28. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  29. <view class="c">
  30. <text>还没有任何订单呢</text>
  31. </view>
  32. </view>
  33. <view class="orders">
  34. <view class="order" wx:for="{{orderList}}" wx:key="index">
  35. <view class="h">
  36. <view class="l" wx:if="{{item.orderStatusVal=='待预约'||item.orderStatusVal=='服务中'||item.orderStatusVal=='服务已完成'}}">已支付</view>
  37. <view class="l" wx:else>{{item.orderStatusVal}}</view>
  38. <view class="r" wx:if="{{item.orderStatusVal=='待预约'||item.orderStatusVal=='服务中'||item.orderStatusVal=='服务已完成'}}">
  39. {{item.orderStatusVal}}</view>
  40. <view class="r" wx:else></view>
  41. </view>
  42. <!-- open-type="redirect" -->
  43. <navigator url="../orderDetail/orderDetail?id={{item.id}}">
  44. <view class="goods">
  45. <view class="img">
  46. <image src="{{item.picUrl+'?w=200'}}"></image>
  47. </view>
  48. <view class="info">
  49. <!-- <view class="info-orderSn" >订单编号: {{item.orderSn}}</view> -->
  50. <view class="info-main">
  51. <text class="product-name">{{item.goodsName}}</text>
  52. <text class="price">¥{{item.orderPrice}}</text>
  53. </view>
  54. <view class="sku-name" wx:if="{{item.increaseSumPrice}}">
  55. <view> 加购: {{item.unitDescribe}}*{{item.unitIncreaseNumber}}</view>
  56. <view>¥{{item.increaseSumPrice}}</view>
  57. </view>
  58. <view class="sku-name">
  59. 规格:{{item.skuName}}
  60. </view>
  61. <!-- <text class="number">共{{item.number}}件商品</text> -->
  62. <text class="other-info">服务{{item.serviceTimes}}次</text>
  63. <!-- <text class="other-info" wx:if="{{utils.getNotServiceTimes(item.serviceTimes,item.servedTimes)>0}}"> {{utils.getNotServiceTimes(item.serviceTimes,item.servedTimes)}}次未服务</text> -->
  64. <!-- 支付倒计时 payOverTime-->
  65. <view wx:if="{{item.payOverTime>0}}" class="over-time">{{utils.formatOverTime(item.payOverTime)}} 后订单关闭
  66. </view>
  67. </view>
  68. <!-- <view class="status">
  69. </view> -->
  70. </view>
  71. </navigator>
  72. <view class="b">
  73. <view class="l"><text>实付款:¥{{item.actualPrice}}</text></view>
  74. </view>
  75. <!-- 提醒 -->
  76. <view class="status-tips" wx:if="{{item.orderStatusVal=='已退款'}}">
  77. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-refund-tips.png"></image>
  78. <view class="tips-title">已退款</view>
  79. <view>已按照原支付路径退回</view>
  80. </view>
  81. <view class="status-tips" wx:if="{{item.orderStatusVal=='服务已完成'}}" data-id="{{item.id}}" bindtap="goCheck">
  82. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-customer-msg.png"></image>
  83. <view class="tips-title">服务验收:</view>
  84. <view>服务已完成,请评价</view>
  85. </view>
  86. <view class="customer-msg" wx:if="{{item.customerServiceReminder}}">
  87. <view class="msg-title">提醒:</view>
  88. <view class="msg-text">{{item.customerServiceReminder}}</view>
  89. </view>
  90. <view class="customer-msg" wx:if="{{item.ticketStatus==1}}">
  91. <view class="msg-title">提醒:</view>
  92. <view class="msg-text">您的售后工单正在处理中,请耐心等待</view>
  93. </view>
  94. <view class="customer-msg" wx:if="{{item.ticketStatus==2}}" data-id="{{item.id}}" bindtap="orderDetail">
  95. <view class="msg-title">提醒:</view>
  96. <view class="msg-text">您的售后工单已完成,可以去评价了哦</view>
  97. </view>
  98. <!-- 操作事件 -->
  99. <view class="order-operate-wrapper">
  100. <!-- <view catchtap="deleteOrder" wx:if="{{item.handleOption.delete}}" data-id="{{item.id}}" class="del">删除订单
  101. </view> -->
  102. <view catchtap="cancelOrder" wx:if="{{item.handleOption.cancel}}" data-id="{{item.id}}" class="del">取消订单
  103. </view>
  104. <view catchtap="refundOrder" data-id="{{item.id}}" wx:if="{{item.handleOption.refund}}" class="del">售后/退款</view>
  105. <!-- <view data-id="{{item.id}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}"
  106. data-type="{{item.type}}" wx:if="{{item.handleOption.book}}" class="eval-btn">评价</view> -->
  107. <!-- 抖音评价 20231007屏蔽 by leo 启用工单上的服务验收
  108. <rate-button class="eval-btn" order-id="{{item.orderSn}}" bind:init="handleInit" bind:success="handleSuccess" bind:error="handleError" />-->
  109. <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
  110. <!-- <view catchtap="refundOrder" wx:if="{{item.handleOption.refund&&item.goodsList[0].goodsSn!='1036016'}}" data-id="{{item.id}}">申请退款</view> -->
  111. <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
  112. <view catchtap="goAppoint" data-id="{{item.id}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}" wx:if="{{item.handleOption.book}}" data-detail="{{item.detailId}}" class="appoint">预约服务</view>
  113. <view catchtap="cancelAppoint" data-serid="{{item.bookedDetailId}}" data-id="{{item.id}}" data-times="{{item.serviceTimes}}" wx:if="{{item.handleOption.canCancelBook}}" class="del">取消预约</view>
  114. <view bindtap="modifyAppoint" data-id="{{item.id}}" data-serid="{{item.bookedDetailId}}" data-times="{{item.serviceTimes}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}" data-type="{{item.type}}" wx:if="{{item.handleOption.canModify}}" class="warning-color">
  115. 修改预约
  116. </view>
  117. <view catchtap="payOrder" data-id="{{item.id}}" data-sn="{{item.orderSn}}" wx:if="{{item.handleOption.pay}}">
  118. 立即支付</view>
  119. <view class="btn-rebuy" bindtap="buyAgain" data-id="{{item.goodsId}}" wx:if="{{item.orderStatusVal!='未支付'}}">
  120. 再次购买
  121. </view>
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. <!-- 修改预约/预约 -->
  127. <view class="refund-order-overlay" wx:if="{{appointDiaShow}}">
  128. <view class="refund-order-dialog refund-order-dia-success">
  129. <view class="refund-dia-title">请选择您要修改的服务</view>
  130. <view class="modify-list">
  131. <view class="modify-item" wx:for="{{serModifyList}}" wx:key="index" bindtap="switchSer" data-serid="{{item.id}}">
  132. <image src="https://mall.zhaijieshi.cc/file/wx-dy/radio-select.png" mode="aspectFit"
  133. wx:if="{{item.id==serviceId}}"></image>
  134. <image src="https://mall.zhaijieshi.cc/file/wx-dy/radio-unselect.png" mode="aspectFit"
  135. wx:else></image>
  136. <view :class="{{item.id==serviceId?'current-modify':''}}">{{item.bookTime}}</view>
  137. </view>
  138. </view>
  139. <view class="dia-btn-wrapper">
  140. <view class="dia-cancel-btn" bindtap="appointModifyConf">确定</view>
  141. </view>
  142. </view>
  143. <image bindtap="closeModify" src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-close.png" class="modify-close"></image>
  144. </view>
  145. <!-- 选择取消原因 -->
  146. <!-- 第一步 -->
  147. <view class="appoint-overlay-wrapper remark-overlay" wx:if="{{cancelFirstShow}}" bindtap="onCancelPopupCloseFir">
  148. <view class="remark-select" catchtap="onCancelClick">
  149. <view class="title" style="text-align: left;">请选择要取消的服务</view>
  150. <view class="remark-list ser-list">
  151. <view class="remark-item ser-item {{item.id==serviceId?'current-ser':''}}" data-id="{{item.id}}" bindtap="switchSer" data-serid="{{item.id}}"
  152. wx:for="{{serModifyList}}" wx:key="index" style="justify-content:flex-start;">
  153. <image mode="aspectFit"
  154. src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-ser-selected.png"
  155. class="radio-img" wx:if="{{item.id==serviceId}}"></image>
  156. <image mode="aspectFit"
  157. src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-ser-unselect.png"
  158. class="radio-img" wx:else></image>
  159. <view class="remark-value {{item.id==serviceId?'current-cancel':''}}">{{ item.bookTime }}</view>
  160. <view class="ser-right">已预约</view>
  161. </view>
  162. </view>
  163. <view class="remark-conf-btn" catchtap="cancelFirstConfirm">下一步</view>
  164. </view>
  165. </view>
  166. <view class="appoint-overlay-wrapper remark-overlay" wx:if="{{cancelShow}}" bindtap="onCancelPopupClose">
  167. <view class="remark-select" catchtap="onCancelClick">
  168. <view class="title">选择取消原因</view>
  169. <view class="remark-list">
  170. <view class="remark-item" data-id="{{item.id}}" catchtap="cancelItemSelect"
  171. wx:for="{{cancelList}}" wx:key="index">
  172. <view class="remark-value">{{ item.value }}</view>
  173. <image mode="aspectFit"
  174. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png"
  175. class="radio-img" wx:if="{{cancelReason == item.id}}"></image>
  176. <image mode="aspectFit"
  177. src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png"
  178. class="radio-img" wx:else></image>
  179. </view>
  180. </view>
  181. <view class="remark-conf-btn" catchtap="cancelItemConfirm">取消预约</view>
  182. </view>
  183. </view>
  184. </view>