order-detail.wxml 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <!--pages/order-detail/order-detail.wxml-->
  2. <!-- 地址 -->
  3. <view class='order-detail'>
  4. <view class="order-sts">{{statusObject[status]}}</view>
  5. <view class="pay-box" wx:if="{{status == 0}}">
  6. <view class="pay-btn-box">
  7. <view class="cancel-btn" bindtap="onCancelOrder">取消订单</view>
  8. <view class="pay-btn" bindtap="onPayAgain">立即支付¥{{actualTotal}}</view>
  9. </view>
  10. </view>
  11. <view class="oprate-box box">
  12. <view class="item" wx:if="{{status == 60}}" bindtap="delOrderList" data-ordernum="{{orderNumber}}">
  13. <image class="icon" src="../../images/icon/del-icon.png" mode=""/>
  14. <view class="label">
  15. 删除订单
  16. </view>
  17. </view>
  18. <button class='item' open-type="contact" wx:if="{{status >= 20&&status != 60}}">
  19. <image class="icon" src="../../images/icon/chat-icon.png" mode=""/>
  20. <view class="label">
  21. 联系商家
  22. </view>
  23. </button>
  24. <view class="item" wx:if="{{status !=0}}" bind:tap="applyRefund">
  25. <image class="icon" src="../../images/icon/apply.png" mode=""/>
  26. <view class="label">
  27. 申请售后
  28. </view>
  29. </view>
  30. <!-- <view class="item" wx:if="{{status != 0}}">
  31. <image class="icon" src="../../images/icon/buy-icon.png" mode=""/>
  32. <view class="label">
  33. 再次购买
  34. </view>
  35. </view> -->
  36. </view>
  37. <view class='delivery-addr box'>
  38. <view class='user-info'>
  39. <text class='item'>{{userAddrDto.receiver}}</text>
  40. <text class='item'>{{userAddrDto.mobile}}</text>
  41. </view>
  42. <view class='addr'>{{userAddrDto.address}}{{userAddrDto.addressName}}{{userAddrDto.addrDetail}}</view>
  43. </view>
  44. <!-- 商品信息 -->
  45. <view class='prod-item box'>
  46. <view class="order-num">
  47. <view class='order-state clearfix'>
  48. <!-- 店铺 -->
  49. <view class="shop-box">
  50. <view class="shop-icon">
  51. <image src="../../images/icon/shop.png"></image>
  52. </view>
  53. <view class="shop-name">{{shopName}}</view>
  54. </view>
  55. <!-- /店铺 -->
  56. <!-- <text class="order-sts gray">{{['','待支付','待发货','待收货','已完成','已完成','已取消','拼团中'][status]}}</text> -->
  57. </view>
  58. </view>
  59. <block wx:for="{{orderItemDtos}}" wx:key='prodId'>
  60. <view class='item-cont' bindtap='toProdPage' data-prodid="{{item.prodId}}">
  61. <view class='prod-pic'>
  62. <image src='{{item.pic}}'></image>
  63. </view>
  64. <!-- 拼团商品展示icon -->
  65. <view class="spell-group-icon">
  66. <text class="group-text" wx:if="{{item.orderType!=null}}">{{['','拼团','秒杀','积分'][orderType]}}</text>
  67. </view>
  68. <view class='prod-info'>
  69. <view class='prodname'>
  70. {{item.prodName}}
  71. </view>
  72. <view class='prod-info-cont'>
  73. <!-- 拼团icon -->
  74. <view class="spell-group-icon" wx:if="{{orderType}}">
  75. <!-- orderType 订单类型(0普通订单 1团购订单 2秒杀订单) -->
  76. <text class="group-text">{{['','拼团','秒杀','积分'][orderType]}}</text>
  77. </view>
  78. <!-- /拼团icon -->
  79. <view class='number'>{{item.skuName||''}} {{item.prodCount}} 件</view>
  80. <!-- <text class='info-item'>{{item.skuName}}</text> -->
  81. </view>
  82. <view class='price-nums clearfix'>
  83. <text class='prodprice'><text wx:if="{{item.price}}" class='symbol'>¥</text>
  84. <text wx:if="{{item.price}}" class='big-num'>{{wxs.parsePrice(item.price)[0]}}</text>
  85. <text wx:if="{{item.price}}" class='small-num'>.{{wxs.parsePrice(item.price)[1]}}</text>
  86. <text wx:if="{{item.price && orderType==3}}" class='small-num'>+</text>
  87. <text class='big-num' wx:if="{{orderType==3}}">{{item.useScore}} 积分</text>
  88. </text>
  89. <!-- <view class='btn-box'>
  90. <text class='btn'>申请售后</text>
  91. <text class='btn'>加购物车</text>
  92. </view> -->
  93. </view>
  94. </view>
  95. <!-- 申请退款btn -->
  96. <!-- <text class="apply-refund-btn" catchtap="applyRefund" data-itemactualtotal="{{item.actualTotal}}" data-item="{{item}}" wx:if="{{!item.refundSn && canRefund && orderType !=3||item.status==6}}" data-refundtype="2" data-type="{{status == 2?'1':'2'}}">申请退款</text> -->
  97. <!-- <text class="apply-refund-btn" catchtap="viewRefund" data-ordernumber='{{item.orderNumber}}' data-refundsn="{{item.refundSn}}" wx:if="{{item.refundSn}}">查看退款</text> -->
  98. <!-- 申请退款btn -->
  99. </view>
  100. </block>
  101. <view class='prod-foot'>
  102. <view class='btn'>
  103. <button wx:if="{{item.status==0}}" class="button" bindtap="onCancelOrder" data-ordernum="{{item.primaryOrderNo}}" hover-class='none'>取消订单</button>
  104. <!-- <button wx:if="{{item.status==1}}" class="button warn" bindtap="onConfirmReceive" data-ordernum="{{item.primaryOrderNo}}" hover-class='none'>再次购买</button> -->
  105. <button wx:if="{{item.status==1}}" class="button warn" bindtap="onPayAgain" data-ordernum="{{item.primaryOrderNo}}" hover-class='none'>付款</button>
  106. <button wx:if="{{item.status==3 || item.status==5}}" class="button" bindtap="toDeliveryPage" data-ordernum="{{item.primaryOrderNo}}" hover-class='none'>查看物流</button>
  107. <button wx:if="{{item.status==3}}" class="button warn" bindtap="onConfirmReceive" data-ordernum="{{item.primaryOrderNo}}" hover-class='none'>确认收货</button>
  108. </view>
  109. </view>
  110. </view>
  111. <view class='order-msg box'>
  112. <view class='msg-item'>
  113. <view class='item'>
  114. <view class='item-tit'>商品总额:</view>
  115. <view class='item-txt price'>
  116. <text class='symbol'>¥</text>
  117. <text class='big-num'>{{wxs.parsePrice(productTotalAmount)[0]}}</text>
  118. <text class='small-num'>.{{wxs.parsePrice(productTotalAmount)[1]}}</text>
  119. </view>
  120. </view>
  121. <view class='item'>
  122. <!-- <view class='item-tit'>运费:</view> -->
  123. <view class='item-tit'>{{dvyType}}:</view>
  124. <view class='item-txt price'>
  125. <text class='symbol'>¥</text>
  126. <text class='big-num'>{{wxs.parsePrice(transfee)[0]}}</text>
  127. <text class='small-num'>.{{wxs.parsePrice(transfee)[1]}}</text>
  128. </view>
  129. </view>
  130. <view class='item'>
  131. <view class='item-tit'>
  132. <!-- <text class="item-tit" wx:if="{{orderType && orderType!=3}}">{{orderType==1?'团购':'秒杀'}}</text> -->
  133. <!-- 优惠: -->
  134. 积分({{totalUsableScore}}):
  135. </view>
  136. <view class='item-txt price'>
  137. <text class='symbol'>-¥</text>
  138. <text class='big-num'>{{wxs.parsePrice(reduceAmount)[0]}}</text>
  139. <text class='small-num'>.{{wxs.parsePrice(reduceAmount)[1]}}</text>
  140. </view>
  141. </view>
  142. <view class='item payment'>
  143. <view class='item-txt price'>
  144. 订单总额:
  145. <text class='symbol' wx:if="{{actualTotal && actualTotal > 0}}">¥</text>
  146. <text class='big-num' wx:if="{{actualTotal && actualTotal > 0}}">{{wxs.parsePrice(actualTotal)[0]}}</text>
  147. <text class='small-num' wx:if="{{actualTotal && actualTotal > 0}}">.{{wxs.parsePrice(actualTotal)[1]}}</text>
  148. <text class='small-num' wx:if="{{(actualTotal && actualTotal > 0) && (orderType==3 || orderScore > 0)}}">+</text>
  149. <text class='big-num' wx:if="{{orderType==3 || totalUsableScore > 0}}">{{totalUsableScore}} <text class='small-num'>积分</text></text>
  150. </view>
  151. </view>
  152. </view>
  153. </view>
  154. <!-- 订单信息 -->
  155. <view class='order-msg box'>
  156. <view class="sub-title">订单信息</view>
  157. <view class='msg-item'>
  158. <view class='item'>
  159. <text class='item-tit'>订单编号:</text>
  160. <text class='item-txt'>{{orderNumber}}</text>
  161. <text class='copy-btn' bindtap='copyBtn'>复制</text>
  162. </view>
  163. <view class='item'>
  164. <text class='item-tit'>下单时间:</text>
  165. <text class='item-txt'>{{createTime}}</text>
  166. </view>
  167. </view>
  168. <view class='msg-item'>
  169. <view class='item'>
  170. <text class='item-tit'>支付方式:</text>
  171. <text class='item-txt'>微信支付</text>
  172. </view>
  173. <!-- <view class='item'>
  174. <text class='item-tit'>配送方式:</text>
  175. <text class='item-txt'>普通配送</text>
  176. </view> -->
  177. <view class='item'>
  178. <text class='item-tit'>订单备注:</text>
  179. <text class='item-txt'>{{remarks?remarks:''}}</text>
  180. </view>
  181. </view>
  182. </view>
  183. <!-- 底部栏 -->
  184. <view class='order-detail-footer'>
  185. <!-- <text class='dele-order' wx:if="{{status==5||status==6}}" bindtap='delOrderList' data-ordernum="{{orderNumber}}">删除订单</text> -->
  186. <view class='footer-box'>
  187. <!-- <text class="apply-refund-btn refund-full" data-refundtype="1" catchtap="applyRefund" wx:if="{{canAllRefund && orderType!=3}}" data-type="{{status == 2?'1':'2'}}">整单退款</text> -->
  188. <!-- <text class="apply-refund-btn refund-full" data-refundtype="1" catchtap="applyRefund" data-type="{{status == 2?'1':'2'}}">整单退款</text>
  189. <button class='apply-service foot-btn' open-type="contact">联系客服</button> -->
  190. <!-- <text class='buy-again'>再次购买</text> -->
  191. <!-- 【团购按钮】 -->
  192. <!-- <button class='apply-service foot-btn' bindtap="toGroupDetails" data-ordernumber='{{orderNumber}}' wx:if="{{orderType==1}}">查看团购详情</button> -->
  193. <!-- 【团购按钮】 -->
  194. </view>
  195. </view>
  196. </view>
  197. <wxs module="wxs" src="../../wxs/number.wxs" />