detail.wxml 10.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  1. <view class="container p-bottom" wx:if="{{order.order_id}}">
  2. <scroll-view scroll-y="true">
  3. <!-- 顶部状态栏 -->
  4. <view class="detail-header dis-flex flex-y-center">
  5. <view class="header-backdrop">
  6. <image src="/images/refund-bg.png"></image>
  7. </view>
  8. <view class="header-state f-32 col-f">
  9. <text>{{ order.state_text }}</text>
  10. </view>
  11. </view>
  12. <!-- 快递配送:配送地址 -->
  13. <view wx:if="{{ order.delivery_type.value == DeliveryTypeEnum.EXPRESS.value }}" class="flow-delivery">
  14. <view class="flow-delivery__detail dis-flex flex-y-center">
  15. <view class="detail-location dis-flex">
  16. <text class="iconfont icon-dingwei"></text>
  17. </view>
  18. <view class="detail-content flex-box">
  19. <view class="detail-content__title dis-flex">
  20. <text class="f-30">{{ order.address.name }}</text>
  21. <text class="detail-content__title-phone f-28">{{ order.address.phone }}</text>
  22. </view>
  23. <view class="detail-content__describe">
  24. <text class="col-7">{{order.address.region.province}} {{order.address.region.city}} {{order.address.region.region}} {{order.address.detail}}</text>
  25. </view>
  26. </view>
  27. </view>
  28. </view>
  29. <!-- 上门自提:自提门店 -->
  30. <view wx:if="{{ order.delivery_type.value == DeliveryTypeEnum.EXTRACT.value }}" class="m-top20 b-f">
  31. <view class="flow-delivery">
  32. <view class="flow-delivery__title m-top20">
  33. <text class="flow-delivery__title-text f-30">自提门店</text>
  34. <text class="f-24 col-8">您须到该自提点取货</text>
  35. </view>
  36. <view class="flow-delivery__detail dis-flex flex-y-center" catchtap="onTargetShop" data-id="{{ order.extract_shop.shop_id }}">
  37. <view class="detail-location dis-flex">
  38. <text class="iconfont icon-dingwei"></text>
  39. </view>
  40. <view class="detail-content flex-box">
  41. <view class="detail-content__title dis-flex">
  42. <text class="f-30">{{ order.extract_shop.shop_name }}</text>
  43. </view>
  44. <view class="detail-content__describe">
  45. <text class="col-7">{{order.extract_shop.region.province}} {{order.extract_shop.region.city}} {{order.extract_shop.region.region}} {{order.extract_shop.address}}</text>
  46. </view>
  47. </view>
  48. <view class="detail-arrow dis-flex">
  49. <text class="iconfont icon-xiangyoujiantou user-orderJtou"></text>
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. <!-- 物流信息 -->
  55. <view class="flow-all-money b-f padding-box m-top20" wx:if="{{ order.delivery_type.value == DeliveryTypeEnum.EXPRESS.value && order.delivery_status.value == 20 }}">
  56. <view class="flow-all-list dis-flex">
  57. <text class="">物流信息</text>
  58. </view>
  59. <navigator class="dis-flex" hover-class="none" url="./express/express?order_id={{order.order_id}}">
  60. <view class="flex-box">
  61. <view class="dis-flex flow-all-list-cont">
  62. <text class="col-7">物流公司:{{order.express.express_name}}</text>
  63. </view>
  64. <view class="dis-flex flow-all-list-cont">
  65. <text class="col-7" selectable="{{true}}">物流单号:{{order.express_no}}</text>
  66. </view>
  67. </view>
  68. <view class="flow-arrow dis-flex">
  69. <text class="iconfont icon-xiangyoujiantou user-orderJtou"></text>
  70. </view>
  71. </navigator>
  72. </view>
  73. <!-- 标题:商品列表 -->
  74. <view class="flow-all-money b-f padding-box m-top20">
  75. <view class="flow-all-list dis-flex">
  76. <text class="">商品列表</text>
  77. </view>
  78. <view class="order-cont dis-flex">
  79. <view class="order-num">
  80. <text selectable="{{true}}">订单号:{{order.order_no}}</text>
  81. </view>
  82. <view class="order-time">
  83. <text>{{order.create_time}}</text>
  84. </view>
  85. </view>
  86. </view>
  87. <!-- 商品详情 -->
  88. <view class="checkout_list padding-box b-f">
  89. <view catchtap="onTargetGoods" class="flow-shopList dis-flex b-f" data-id="{{item.goods_id}}" wx:for="{{order.goods}}" wx:key="this">
  90. <view class="flow-list-left">
  91. <image mode="scaleToFill" src="{{item.image.file_path}}"></image>
  92. </view>
  93. <view class="flow-list-right flex-box">
  94. <!-- 商品名称 -->
  95. <text class="f-30 col-3 twolist-hidden">{{item.goods_name}}</text>
  96. <!-- 商品sku信息 -->
  97. <text class="f-24 col-7">{{item.goods_attr}}</text>
  98. <!-- 商品数量和单价 -->
  99. <view class="flow-list-cont dis-flex flex-x-between flex-y-center">
  100. <text class="small">×{{item.total_num}}</text>
  101. <text class="flow-cont {{ item.is_user_grade ? 'price-delete' : '' }}">¥{{item.goods_price}}</text>
  102. </view>
  103. <!-- 会员折扣价 -->
  104. <view wx:if="{{ item.is_user_grade }}" class="grade-price">
  105. <text>会员折扣价:¥{{ item.grade_goods_price }}</text>
  106. </view>
  107. <!-- 申请售后 -->
  108. <view class="m-top20 dis-flex flex-x-end">
  109. <text wx:if="{{ item.refund }}" class="f-26 col-7">已申请售后</text>
  110. <view wx:elif="{{ order.isAllowRefund }}" class="btn-default" catchtap="onApplyRefund" data-id="{{item.order_goods_id}}">申请售后</view>
  111. </view>
  112. </view>
  113. </view>
  114. </view>
  115. <view class="flow-num-box b-f">
  116. <text>共{{order.goods.length}}件商品,合计: </text>
  117. <text class="flow-money col-m">¥{{order.total_price}}</text>
  118. </view>
  119. <!-- 买家留言 -->
  120. <view class="flow-all-money b-f m-top20" wx:if="{{ order.buyer_remark.length }}">
  121. <view class="dis-flex flow-all-list">
  122. <text class="flex-five">买家留言</text>
  123. </view>
  124. <view class="dis-flex flow-all-list-cont" style="padding: 15rpx 0;">
  125. <text class="col-7">{{ order.buyer_remark }}</text>
  126. </view>
  127. </view>
  128. <!-- 订单金额 -->
  129. <view class="flow-all-money b-f padding-box m-top20">
  130. <view class="dis-flex flow-all-list">
  131. <text class="flex-five">订单金额</text>
  132. </view>
  133. <view class="dis-flex flow-all-list-cont">
  134. <text class="flex-five col-7">商品金额:</text>
  135. <text class="flex-five col-m t-r">¥{{order.total_price}}</text>
  136. </view>
  137. <view wx:if="{{ order.coupon_id > 0 }}" class="dis-flex flow-all-list-cont">
  138. <text class="flex-five col-7">优惠券抵扣:</text>
  139. <text class="flex-five col-m t-r">-¥{{ order.coupon_money }}</text>
  140. </view>
  141. <view wx:if="{{ order.points_num > 0 }}" class="dis-flex flow-all-list-cont">
  142. <text class="flex-five col-7">{{ setting.points_name }}抵扣:</text>
  143. <text class="flex-five col-m t-r">-¥{{ order.points_money }}</text>
  144. </view>
  145. <view class="dis-flex flow-all-list-cont">
  146. <text class="flex-five col-7">配送费用:</text>
  147. <text class="flex-five col-m t-r">+¥{{ order.express_price }}</text>
  148. </view>
  149. <view class="dis-flex flow-all-list-cont" wx:if="{{ order.update_price.value != '0.00' }}">
  150. <text class="flex-five col-7">后台改价:</text>
  151. <text class="flex-five col-m t-r">{{order.update_price.symbol}}¥{{order.update_price.value}}</text>
  152. </view>
  153. <view class="dis-flex flow-all-list-cont">
  154. <text class="flex-five col-7">实付金额:</text>
  155. <text class="flex-five col-m t-r">¥{{order.pay_price}}</text>
  156. </view>
  157. </view>
  158. </scroll-view>
  159. <!-- 操作栏 -->
  160. <view wx:if="{{ order.order_status.value != 20 }}" class="flow-fixed-footer b-f">
  161. <view class="dis-flex checkout-box" wx:if="{{order.pay_status.value==10}}">
  162. <!-- 取消订单 -->
  163. <view catchtap="cancelOrder" class="flex-box checkout-left-detail t-c">
  164. 取消订单
  165. </view>
  166. <!-- 订单付款 -->
  167. <view class="flex-box checkout-right-detail">
  168. <text catchtap="onPayOrder" class="flow-btn" wx:if="{{order.pay_status.value==10}}">去付款</text>
  169. </view>
  170. </view>
  171. <!-- 确认收货 -->
  172. <view class="flow-btn h3" wx:if="{{order.delivery_status.value==20 && order.receipt_status.value==10}}">
  173. <view catchtap="receipt">确认收货</view>
  174. </view>
  175. </view>
  176. <!-- 支付方式弹窗 -->
  177. <zan-popup show="{{ showPayPopup }}" bindclose="onTogglePayPopup">
  178. <view class="pop-orderPay pop-example__container">
  179. <view class="pop-title">
  180. <text class="f-30">请选择支付方式</text>
  181. </view>
  182. <view class="pop-content">
  183. <view class="pay-method">
  184. <form bindsubmit="onSelectPayType" data-value="{{ PayTypeEnum.WECHAT.value }}" report-submit="true">
  185. <button formType="submit" class="btn-normal">
  186. <view class="pay-item dis-flex flex-x-between">
  187. <view class="item-left dis-flex flex-y-center">
  188. <view class="item-left_icon wechat">
  189. <text class="iconfont icon-weixinzhifu"></text>
  190. </view>
  191. <view class="item-left_text">
  192. <text>{{ PayTypeEnum.WECHAT.name }}</text>
  193. </view>
  194. </view>
  195. </view>
  196. </button>
  197. </form>
  198. <form bindsubmit="onSelectPayType" data-value="{{ PayTypeEnum.BALANCE.value }}" report-submit="true">
  199. <button formType="submit" class="btn-normal">
  200. <view class="pay-item dis-flex flex-x-between">
  201. <view class="item-left dis-flex flex-y-center">
  202. <view class="item-left_icon balance">
  203. <text class="iconfont icon-qiandai"></text>
  204. </view>
  205. <view class="item-left_text">
  206. <text>{{ PayTypeEnum.BALANCE.name }}</text>
  207. </view>
  208. </view>
  209. </view>
  210. </button>
  211. </form>
  212. </view>
  213. </view>
  214. </view>
  215. </zan-popup>
  216. <!-- 快捷导航 -->
  217. <shortcut bottom="120rpx"></shortcut>
  218. </view>