order.wxml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277
  1. <!-- <view class="poster" wx:if="{{myqr_show}}">
  2. <view>
  3. <image src="{{myqr_url}}" style="width:{{myqr_width}}rpx;" mode="widthFix">
  4. </image>
  5. <view class="tool">
  6. <view>
  7. <button open-type='share' class="share-btn">
  8. <image class="img" style="width: 85rpx;margin-right: 25rpx;" mode="widthFix"
  9. src="/static/images/share/p_wx.png"></image>
  10. </button>
  11. </view>
  12. <view>
  13. <image class="img" mode="widthFix" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  14. </view>
  15. </view>
  16. <view style="text-align:center">
  17. <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="container" style="filter:blur({{myqr_blur}}rpx)">
  22. <van-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
  23. <van-tab title="全部" name="0"></van-tab>
  24. <van-tab title="待付款" name="1"></van-tab>
  25. <van-tab title="服务中" name="3"></van-tab>
  26. <van-tab title="待评价" name="4"></van-tab>
  27. </van-tabs>
  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="id">
  35. <view class="h">
  36. <view class="l">订单编号:{{item.orderSn}}</view>
  37. <view class="r">{{item.orderStatusText}}</view>
  38. </view>
  39. <navigator url="../orderDetail/orderDetail?id={{item.id}}" open-type="redirect">
  40. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  41. <view class="img">
  42. <image src="{{gitem.picUrl}}"></image>
  43. </view>
  44. <view class="info">
  45. <text class="name">{{gitem.goodsName}}</text>
  46. <text class="number">规格:{{gitem.product.specifications[0]}}</text>
  47. <text class="number"
  48. wx:if="{{item.increaseSumPrice>0}}">加购{{item.unitDescribe}}*{{item.unitIncreaseNumber}}</text>
  49. <text class="number">共{{gitem.number}}件商品</text>
  50. <view class="detail-btn">订单详情</view>
  51. </view>
  52. <view class="status">
  53. </view>
  54. </view>
  55. </navigator>
  56. <view class="b">
  57. <view class="l">实付:¥{{item.actualPrice}}</view>
  58. </view>
  59. <view class="order-item-operate">
  60. <view class="order-item-result">
  61. </view>
  62. <view class="order-operate-wrapper">
  63. <view catchtap="payOrder" wx:if="{{item.handleOption.pay}}" data-id="{{item.id}}" data-channel="{{item.orderChannel}}">去付款</view>
  64. <view catchtap="deleteOrder" wx:if="{{item.handleOption.delete}}" data-id="{{item.id}}">删除订单</view>
  65. <view catchtap="cancelOrder" wx:if="{{item.handleOption.cancel}}" data-id="{{item.id}}">取消订单</view>
  66. <view catchtap="viewService" data-id="{{item.id}}"
  67. wx:if="{{(item.goodsType==0||item.goodsType==3)&&!(item.orderStatus==101||item.orderStatus==102||item.orderStatus==103)}}">
  68. 查看服务</view>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. </view> -->
  74. <wxs src="../../../utils/formatFuc.wxs" module="utils" />
  75. <view class="poster" wx:if="{{myqr_show}}">
  76. <view>
  77. <image src="{{myqr_url}}" style="width:{{myqr_width}}rpx;" mode="widthFix">
  78. </image>
  79. <view class="tool">
  80. <view>
  81. <button open-type='share' class="share-btn">
  82. <image class="img" style="width: 85rpx;margin-right: 25rpx;" mode="widthFix"
  83. src="/static/images/share/p_dy.png"></image>
  84. </button>
  85. </view>
  86. <view>
  87. <image class="img" mode="widthFix" bindtap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
  88. </view>
  89. </view>
  90. <view style="text-align:center">
  91. <image class="closeImg" bindtap="hidePoster" src="/static/images/share/close.png"></image>
  92. </view>
  93. </view>
  94. </view>
  95. <view class="appoint-tabs-wrapper">
  96. <view class="appoint-tab-item {{showType==2?'active':''}}" data-tab="2" bindtap="onTabChange">服务中</view>
  97. <view class="appoint-tab-item {{showType==1?'active':''}}" data-tab="1" bindtap="onTabChange">未支付</view>
  98. <view class="appoint-tab-item {{showType==0?'active':''}}" data-tab="0" bindtap="onTabChange">全 部</view>
  99. <!-- <view class="appoint-tab-item {{showType==4?'active':''}}" data-tab="4" bindtap="onTabChange">待评价</view> -->
  100. </view>
  101. <view class="container" style="filter:blur({{myqr_blur}}rpx)">
  102. <!-- <view class="orders-switch">
  103. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  104. <view class="txt">全部</view>
  105. </view>
  106. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  107. <view class="txt">待付款</view>
  108. </view> -->
  109. <!-- <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  110. <view class="txt">待发货</view>
  111. </view> -->
  112. <!-- <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
  113. <view class="txt">待上门</view>
  114. </view>
  115. <view class="item {{ showType == 4 ? 'active' : ''}}" bindtap="switchTab" data-index='4'>
  116. <view class="txt">待评价</view>
  117. </view>
  118. </view> -->
  119. <!-- <van-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
  120. <van-tab title="全部" name="0"></van-tab>
  121. <van-tab title="待付款" name="1"></van-tab>
  122. <van-tab title="服务中" name="3"></van-tab>
  123. <van-tab title="待评价" name="4"></van-tab>
  124. </van-tabs> -->
  125. <!--
  126. <view class="appoint-tabs-wrapper">
  127. <view class="appoint-tab-item {{showType==0?'active':''}}" data-tab="0" bindtap="onTabChange">全 部</view>
  128. <view class="appoint-tab-item {{showType==1?'active':''}}" data-tab="1" bindtap="onTabChange">待付款</view>
  129. <view class="appoint-tab-item {{showType==3?'active':''}}" data-tab="3" bindtap="onTabChange">服务中</view>
  130. <view class="appoint-tab-item {{showType==4?'active':''}}" data-tab="4" bindtap="onTabChange">待评价</view>
  131. </view> -->
  132. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  133. <view class="c">
  134. <text>还没有任何订单呢</text>
  135. </view>
  136. </view>
  137. <view class="orders">
  138. <view class="order" wx:for="{{orderList}}" wx:key="index">
  139. <view class="h">
  140. <view class="l"
  141. wx:if="{{item.orderStatusText=='待预约'||item.orderStatusText=='服务中'||item.orderStatusText=='服务已完成'}}">已支付</view>
  142. <view class="l" wx:else>{{item.orderStatusText}}</view>
  143. <view class="r"
  144. wx:if="{{item.orderStatusText=='待预约'||item.orderStatusText=='服务中'||item.orderStatusText=='服务已完成'}}">
  145. {{item.orderStatusText}}</view>
  146. <view class="r" wx:else></view>
  147. </view>
  148. <!-- open-type="redirect" -->
  149. <navigator url="../orderDetail/orderDetail?id={{item.id}}">
  150. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  151. <view class="img">
  152. <image src="{{gitem.picUrl+'?w=200'}}"></image>
  153. </view>
  154. <view class="info">
  155. <!-- <view class="info-orderSn" >订单编号: {{item.orderSn}}</view> -->
  156. <view class="info-main">
  157. <text class="product-name">{{gitem.goodsName}}</text>
  158. <text class="price">¥{{gitem.price}}</text>
  159. </view>
  160. <view class="sku-name" wx:if="{{item.increaseSumPrice>0}}">
  161. <view> 加购: {{item.unitDescribe}}*{{item.unitIncreaseNumber}}</view>
  162. <view>¥{{item.increaseSumPrice}}</view>
  163. </view>
  164. <view class="sku-name">
  165. 规格:{{gitem.product.specifications[0]}}
  166. </view>
  167. <!-- <text class="number">共{{item.number}}件商品</text> -->
  168. <text class="other-info">服务{{gitem.product.serviceTimes}}次</text>
  169. <!-- <text class="other-info" wx:if="{{utils.getNotServiceTimes(item.serviceTimes,item.servedTimes)>0}}"> {{utils.getNotServiceTimes(item.serviceTimes,item.servedTimes)}}次未服务</text> -->
  170. <!-- 支付倒计时 payOverTime-->
  171. <view wx:if="{{item.payOverTime>0}}" class="over-time">{{utils.formatOverTime(item.payOverTime)}} 后订单关闭
  172. </view>
  173. </view>
  174. <!-- <view class="status">
  175. </view> -->
  176. </view>
  177. </navigator>
  178. <view class="b">
  179. <view class="l"><text>实付款:¥{{item.actualPrice}}</text></view>
  180. </view>
  181. <!-- 提醒 -->
  182. <view class="status-tips" wx:if="{{item.orderStatusVal=='已退款'}}">
  183. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-refund-tips.png"></image>
  184. <view class="tips-title">已退款</view>
  185. <view>已按照原支付路径退回</view>
  186. </view>
  187. <view class="status-tips" wx:if="{{item.orderStatusVal=='服务已完成'}}" data-id="{{item.id}}" bindtap="goCheck">
  188. <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-customer-msg.png"></image>
  189. <view class="tips-title">服务验收:</view>
  190. <view>服务已完成,请评价</view>
  191. </view>
  192. <view class="customer-msg" wx:if="{{item.customerServiceReminder}}">
  193. <view class="msg-title">提醒:</view>
  194. <view class="msg-text">{{item.customerServiceReminder}}</view>
  195. </view>
  196. <view class="customer-msg" wx:if="{{item.ticketStatus==1}}">
  197. <view class="msg-title">提醒:</view>
  198. <view class="msg-text">您的售后工单正在处理中,请耐心等待</view>
  199. </view>
  200. <view class="customer-msg" wx:if="{{item.ticketStatus==2}}" data-id="{{item.id}}" bindtap="orderDetail">
  201. <view class="msg-title">提醒:</view>
  202. <view class="msg-text">您的售后工单已完成,可以去评价了哦</view>
  203. </view>
  204. <!-- 操作事件 -->
  205. <view class="order-operate-wrapper">
  206. <!-- <view catchtap="deleteOrder" wx:if="{{item.handleOption.delete}}" data-id="{{item.id}}" class="del">删除订单
  207. </view> -->
  208. <view catchtap="cancelOrder" wx:if="{{item.handleOption.cancel}}" data-id="{{item.id}}" class="del">取消订单
  209. </view>
  210. <view catchtap="refundOrder" data-id="{{item.id}}" wx:if="{{item.handleOption.refund}}" class="del">售后/退款</view>
  211. <!-- <view data-id="{{item.id}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}"
  212. data-type="{{item.type}}" wx:if="{{item.handleOption.book}}" class="eval-btn">评价</view> -->
  213. <!-- 抖音评价 20231007屏蔽 by leo 启用工单上的服务验收
  214. <rate-button class="eval-btn" order-id="{{item.orderSn}}" bind:init="handleInit" bind:success="handleSuccess" bind:error="handleError" />-->
  215. <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
  216. <!-- <view catchtap="refundOrder" wx:if="{{item.handleOption.refund&&item.goodsList[0].goodsSn!='1036016'}}" data-id="{{item.id}}">申请退款</view> -->
  217. <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
  218. <view catchtap="appointService" data-id="{{item.id}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}"
  219. data-type="{{item.type}}" wx:if="{{item.handleOption.book}}" class="appoint">预约服务</view>
  220. <view catchtap="payOrder" data-id="{{item.id}}" data-sn="{{item.orderSn}}" wx:if="{{item.handleOption.pay}}">
  221. 立即支付</view>
  222. <view class="btn-rebuy" bindtap="buyAgain" data-id="{{item.goodsList[0].goodsId}}" wx:if="{{item.orderStatusVal!='未支付'}}">
  223. 再次购买
  224. </view>
  225. </view>
  226. </view>
  227. </view>
  228. </view>