orderDetail.wxml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <wxs module="tool" src="../../app.wxs" />
  2. <view class="margin item-radius flex-column" style="padding: 20rpx 24rpx;" wx:if="{{ showTips }}">
  3. <text style="font-size: 36rpx;font-family: PingFangSC-Semibold, PingFang SC;font-weight: 600;">{{tips['status_' + detail.status][0]}}</text>
  4. <text style="font-size: 24rpx;color: #666666;margin: 30rpx 0 12rpx;">{{tips['status_' + detail.status][1]}}</text>
  5. <view wx:if="{{detail.status == 0}}" class="flex flex-align-center">
  6. <text style="font-size: 24rpx;color: #666666;">请在</text>
  7. <text style="font-size: 36rpx;font-family: PingFangSC-Medium, PingFang SC;font-weight: 500;">{{time}}</text>
  8. <text style="font-size: 24rpx;color: #666666;">内完成付款</text>
  9. </view>
  10. </view>
  11. <!-- <view class="order-top flex-column flex-center">
  12. <block wx:if="{{detail.status >= 0}}">
  13. <image src="/images/my/order_status_{{detail.status}}.png"></image>
  14. <text class="state">{{status[detail.status]}}</text>
  15. <block wx:if="{{ detail.status == 0 }}">
  16. <text>请在{{time}}秒内完成付款</text>
  17. <text>逾期未付款,订单将自动取消</text>
  18. </block>
  19. <block wx:if="{{detail.status == 1}}">
  20. <text>您的预约单已生效,请准时到店体验。</text>
  21. <text></text>
  22. </block>
  23. <block wx:if="{{detail.status == 2}}">
  24. <text>加单/退费请联系相关工作人员~</text>
  25. </block>
  26. <block wx:if="{{detail.status == 3}}">
  27. <text>欢迎下次光临!</text>
  28. </block>
  29. </block>
  30. <block wx:else>
  31. <image src="/images/my/order_status_-1.png"></image>
  32. <text class="state">已取消</text>
  33. </block>
  34. </view> -->
  35. <view class="item margin item-radius current{{current}}">
  36. <view class="item-top flex-align-center ">
  37. <text class="flex1 ellipsis" style="font-size: 36rpx;">{{detail.project_name}}</text>
  38. <text class="state" wx:if="{{detail.status == 0}}">待付款</text>
  39. <text class="state" wx:if="{{detail.status == 1}}">已预约</text>
  40. <text class="state" wx:if="{{detail.status == 2}}">进行中</text>
  41. <text class="state" wx:if="{{detail.status == 3}}">已结算</text>
  42. <text class="state" wx:if="{{detail.status == -1}}">已取消</text>
  43. </view>
  44. <view class="item-content flex">
  45. <image class="img" src="{{detail.cover_url}}"></image>
  46. <view class="content flex-column">
  47. <view class="content-text-box flex">
  48. <text style="color:#999;">预约店铺:</text>
  49. <text class="flex1 ellipsis">{{detail.store_name}}</text>
  50. </view>
  51. <view class="content-text-box flex">
  52. <text style="color:#999;">预约时间:</text>
  53. <text class="flex1 ellipsis">{{tool.replaceStr(detail.order_day)}} {{tool.replaceStr(detail.order_time)}}</text>
  54. </view>
  55. <view class="content-text-box flex">
  56. <text style="color:#999;">使用设备:</text>
  57. <text class="flex1 ellipsis">{{detail.device_name}}</text>
  58. </view>
  59. <!-- <text class="ellipsis">预约店铺:{{detail.store_name}}</text>
  60. <view class="flex">
  61. <text style="font-size:28rpx;color: #333333;">预约时间:</text>
  62. <text class="time">{{tool.replaceStr(detail.order_day)}} {{tool.replaceStr(detail.order_time)}}</text>
  63. </view> -->
  64. <!-- <text style="font-size: 14px;color: #333333;">预约时间:{{detail.order_day}} {{detail.order_time}}</text> -->
  65. <!-- <text style="font-size: 14px;color: #666666;">设备:{{detail.device_name}}</text> -->
  66. </view>
  67. </view>
  68. <view class="item-btn flex-align-center">
  69. <text style="font-size: 28rpx;color: #999;">预约费用:</text>
  70. <text style="font-size: 36rpx;margin-right:28rpx;">¥{{detail.original_price}}</text>
  71. </view>
  72. </view>
  73. <view class="item margin item-radius" wx:for="{{detail.products}}" wx:key="index">
  74. <view class="item-top flex-align-center ">
  75. <text class="flex1 ellipsis" style="font-size: 36rpx;">{{item.product_name}}</text>
  76. <text class="state" wx:if="{{item.status == 0}}">待付款</text>
  77. <text class="state" wx:if="{{item.status == -2}}">退款中</text>
  78. <text class="state" wx:if="{{item.status == -3}}">已退款</text>
  79. <text class="state" wx:if="{{item.status == -1}}">已取消</text>
  80. </view>
  81. <view class="item-content flex">
  82. <image class="img" src="{{item.cover_url}}"></image>
  83. <view class="content flex-column">
  84. <view class="content-text-box flex">
  85. <text style="color:#999;">预约店铺:</text>
  86. <text class="flex1 ellipsis">{{detail.store_name}}</text>
  87. </view>
  88. <view class="content-text-box flex">
  89. <text style="color:#999;">预约时间:</text>
  90. <text class="flex1 ellipsis">{{tool.replaceStr(detail.order_day)}} {{tool.replaceStr(detail.order_time)}}</text>
  91. </view>
  92. <view class="content-text-box flex">
  93. <text style="color:#999;">使用设备:</text>
  94. <text class="flex1 ellipsis">{{detail.device_name}}</text>
  95. </view>
  96. </view>
  97. </view>
  98. <view class="item-btn flex-align-center">
  99. <text style="font-size: 28rpx;color: #999;">预约费用:</text>
  100. <text style="font-size: 36rpx;margin-right:28rpx;">¥{{item.price}}</text>
  101. </view>
  102. <view wx:if="{{item.status == 1}}" class="item-btn flex-align-center" style="height: 100rpx; margin-top: -40rpx;">
  103. <text class="flex-center product-refund-btn" bindtap="onRefundProjectProductOrder" data-item="{{item}}">仅产品退款</text>
  104. </view>
  105. </view>
  106. <view class="margin order-info flex-column flex-justify-center item-radius ">
  107. <view class="num flex">
  108. <text class="ellipsis" style="margin-right: 16rpx;">订单编号:{{detail.order_sn}}</text>
  109. <view class="copy" bindtap="onCopyOrderNum" data-num="{{detail.order_sn}}">复制</view>
  110. </view>
  111. <text class="time">下单时间:{{detail.create_time}}</text>
  112. <text class="text" wx:if="{{detail.pay_time}}">支付时间:{{detail.pay_time}}</text>
  113. <text class="text">支付方式:在线支付</text>
  114. </view>
  115. <view class="margin order-sum item-radius ">
  116. <view class="top">
  117. <view class="text flex">
  118. <text class="flex1" style="font-size:28rpx;color:#999">预约费用:</text>
  119. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#333">¥{{detail.total_original_price}}</text>
  120. </view>
  121. <view class="text flex" wx:if="{{detail.discount_type==2}}">
  122. <view class="coupon flex flex1 flex-align-center">
  123. <text style="font-size:28rpx;color:#999">优惠券:</text>
  124. <view class="coupon-text flex-center">已选推荐优惠</view>
  125. </view>
  126. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#333">-¥{{detail.discount}}</text>
  127. </view>
  128. <!-- <view class="text flex" wx:if="{{detail.discount_type==1}}"> -->
  129. <view class="text flex" hidden="{{true}}">
  130. <text class="flex1" style="font-size:28rpx;color:#999">会员抵扣:</text>
  131. <text style="font-size:28rpx;font-family: PingFang-SC-Medium, PingFang-SC;font-weight: 500;color:#333">-¥{{detail.discount}}</text>
  132. </view>
  133. </view>
  134. <view class="bottom flex-align-center">
  135. <text style="font-size: 28rpx;color: #999">合计:</text>
  136. <text style="font-size: 36rpx;color: #333;margin-right:28rpx;">¥{{detail.total_price}}</text>
  137. </view>
  138. </view>
  139. <view style="height:170rpx;"></view>
  140. <view class="buy flex-align-center" wx:if="{{ detail.status == 0 || detail.status == 1}}">
  141. <view class="btn cancel-btn flex-center" bindtap="onCancelOrder" wx:if="{{ detail.status == 0 }}">
  142. 取消订单
  143. </view>
  144. <view class="btn cancel-btn flex-center" bindtap="onRefundOrder" wx:if="{{ detail.status == 1 }}">
  145. 申请退款
  146. </view>
  147. <view class="btn use-btn flex-center" bindtap="onPay" wx:if="{{ detail.status == 0 }}"></view>
  148. </view>
  149. <wux-popup class="popup-radius" position="bottom" catchtouchmove="true" visible="{{ payNow }}" bind:close="onClosePay">
  150. <view class="coupon-popup payType">
  151. <view class="top flex-align-center">
  152. <text style="text-align: center;"></text>
  153. <image src="/images/icon_20.png" class="close-img" bindtap="onClosePay" />
  154. </view>
  155. <view class="moneyShow"><text>¥</text>{{ detail.total_price }}</view>
  156. <view class="select-pay-methon" catchtap="pay_methonw">
  157. <image class="pay-img" src="/images/wx_pay.png"></image>
  158. <view class="pay-title">微信支付</view>
  159. <!-- <view class="pay-money"><text>¥</text>800</view> -->
  160. <image class="select-activity" src="{{pay_methon==1?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  161. </view>
  162. <view class="select-pay-methon" catchtap="pay_methonc">
  163. <image class="pay-img" src="/images/joli_pay.png"></image>
  164. <view class="pay-title">储值支付</view>
  165. <view class="pay-money"><text>¥</text>{{inserllAmount}}</view>
  166. <image class="select-activity" src="{{pay_methon==2?'/images/icon_13.png':'/images/icon_12.png'}}"></image>
  167. </view>
  168. <view class="coupon-popup-btm flex-center">
  169. <view class="coupon-popup-btm-btn flex-center" bindtap="payNow">支付</view>
  170. </view>
  171. </view>
  172. </wux-popup>