orderDetails.wxml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  1. <view class="wrap">
  2. <view class="head">
  3. <view class="back-img-wrap">
  4. <image class="back-img" src="{{common_header_backgroundimage?common_header_backgroundimage:'../../images/TOP_background@2x.png'}}"></image>
  5. </view>
  6. <view class="to-get-wrap" wx:if="{{order.order_info.order_status_id==1}}">
  7. <view class="font-bold-20">备货中</view>
  8. <image class="little-img" src="../../images/img_delivery@2x.png"></image>
  9. </view>
  10. <view class="to-get-wrap" wx:if="{{order.order_info.order_status_id==2}}">
  11. <view class="font-bold-20">拼团中,已付款</view>
  12. <image class="little-img" src="../../images/img_delivery@2x.png"></image>
  13. </view>
  14. <view class="to-get-wrap" wx:if="{{order.order_info.order_status_id==14}}">
  15. <view class="font-bold-20">配送中</view>
  16. <image class="little-img" src="../../images/img_delivery@2x.png"></image>
  17. </view>
  18. <view class="to-get-wrap" wx:if="{{order.order_info.order_status_id==4}}">
  19. <view class="font-bold-20">{{order.order_status_info.name?order.order_status_info.name:"可提货"}}</view>
  20. <image class="little-img" src="../../images/img_ready_to_get@2x.png"></image>
  21. </view>
  22. <view class="to-get-wrap" wx:if="{{order.order_info.order_status_id==6}}">
  23. <view class="font-bold-20">已签收</view>
  24. <image class="little-img" src="../../images/img_trade_succeed@2x.png"></image>
  25. </view>
  26. <view class="trade-cancel-wrap" wx:if="{{order.order_info.order_status_id==10}}">
  27. <view class="font-bold-20 cancel-box">
  28. <image class="cancel-img" src="../../images/icon_exclamation@2x.png"></image>等待退款
  29. </view>
  30. </view>
  31. <view class="to-get-wrap" wx:if="{{order.order_info.order_status_id==11}}">
  32. <view class="font-bold-20">交易完成</view>
  33. <image class="little-img" src="../../images/img_trade_succeed@2x.png"></image>
  34. </view>
  35. <view class="trade-cancel-wrap" wx:if="{{order.order_info.order_status_id==12}}">
  36. <view class="font-bold-20 cancel-box">
  37. <image class="cancel-img" src="../../images/icon_exclamation@2x.png"></image>售后中
  38. </view>
  39. </view>
  40. <view class="trade-cancel-wrap" wx:if="{{order.order_info.order_status_id==5 || changeState==1}}">
  41. <view class="font-bold-20 cancel-box">
  42. <image class="cancel-img" src="../../images/icon_exclamation@2x.png"></image>交易取消
  43. </view>
  44. </view>
  45. <view class="trade-cancel-wrap" wx:if="{{order.order_info.order_status_id==7}}">
  46. <view class="font-bold-20 cancel-box">
  47. <image class="cancel-img" src="../../images/icon_exclamation@2x.png"></image>已退款
  48. </view>
  49. </view>
  50. </view>
  51. <view class="content">
  52. <!-- 订单信息 -->
  53. <view class="mb10">
  54. <i-card>
  55. <view class="header border-bottom" slot="header">订单信息</view>
  56. <view slot="content">
  57. <view class="content-wrap">
  58. <view class="item">
  59. <view class="title">下单时间</view>
  60. <view class="detail">
  61. <text>{{order.order_info.date_added}}</text>
  62. </view>
  63. </view>
  64. <view class="item">
  65. <view class="title">订单编号</view>
  66. <view class="detail">{{order.order_info.order_num_alias}}</view>
  67. </view>
  68. <view class="item">
  69. <view class="title">买家</view>
  70. <view class="detail">{{order.order_info.name}}</view>
  71. </view>
  72. <view class="item">
  73. <view class="title">支付方式</view>
  74. <view class="detail">{{order.order_info.transaction_id}}</view>
  75. </view>
  76. </view>
  77. </view>
  78. </i-card>
  79. </view>
  80. <!-- 提货信息 -->
  81. <view class="mb10" wx:if="{{order.order_info.delivery!='pickup'}}">
  82. <i-card>
  83. <view class="header border-bottom" slot="header">{{order.order_info.delivery=='localtown_delivery'?'提货':'收货'}}信息</view>
  84. <view slot="content">
  85. <view class="content-wrap">
  86. <block wx:if="{{order.order_info.delivery=='express'}}">
  87. <view class='item' wx:if="{{order.order_info.dispatchname}}">
  88. <view class='title'>配送方式</view>
  89. <view class='detail i-flex i-aic'>{{groupInfo.delivery_express_name}}({{order.order_info.dispatchname}})
  90. <view bindtap="goExpress" class="phone">
  91. <text>查看物流</text>
  92. </view>
  93. </view>
  94. </view>
  95. <view class='item' wx:if="{{order.order_info.shipping_no!=0}}">
  96. <view class='title'>快递单号</view>
  97. <view class='detail'>{{order.order_info.shipping_no}}</view>
  98. </view>
  99. </block>
  100. <view class='item' wx:elif="{{order.order_info.delivery=='localtown_delivery'}}">
  101. <view class='title'>配送方式</view>
  102. <view class='detail'>同城配送</view>
  103. </view>
  104. <view class='item' wx:elif="{{order.order_info.delivery=='hexiao'}}">
  105. <view class='title'>配送方式</view>
  106. <view class='detail'>到店核销</view>
  107. </view>
  108. <view class='item' wx:else>
  109. <view class='title'>配送方式</view>
  110. <view class='detail'>{{groupInfo.delivery_tuanzshipping_name}}</view>
  111. </view>
  112. <view class="item" wx:if="{{order.order_info.delivery=='localtown_delivery'}}">
  113. <view class="title">期望送达时间</view>
  114. <view class="detail">
  115. <text>{{order.order_info.expected_delivery_time}}</text>
  116. </view>
  117. </view>
  118. <view class="item">
  119. <view class="title">收货人</view>
  120. <view class="detail i-flex i-aic">
  121. {{order.order_info.ziti_name}}
  122. <view bindtap="callTelphone" class="phone" data-phone="{{order.order_info.ziti_mobile}}" wx:if="{{is_hidden_orderlist_phone==0}}">
  123. <image class="icon-phone" src="../../images/phone2.png"></image>
  124. <text>联系收货人</text>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="item" wx:if="{{order.order_info.delivery=='express' || order.order_info.delivery=='localtown_delivery'}}">
  129. <view class="title">收货地址</view>
  130. <view class="detail">{{order.shipping_province.name}}{{order.shipping_city.name}}{{order.shipping_country.name}}{{order.order_info.shipping_address}}</view>
  131. </view>
  132. <view class="item" wx:elif="{{order.order_info.tuan_send_address}}">
  133. <view class="title">收货地址</view>
  134. <view class="detail">{{order.order_info.tuan_send_address}}</view>
  135. </view>
  136. </view>
  137. </view>
  138. </i-card>
  139. </view>
  140. <view class="mb10" wx:elif="{{order.order_info.order_status_id!=3&&order.order_info.order_status_id!=5}}">
  141. <i-card>
  142. <view class="header border-bottom" slot="header">提货信息</view>
  143. <view slot="content">
  144. <view class="content-wrap">
  145. <view class="item">
  146. <view class="title">配送方式</view>
  147. <view class="detail">
  148. <text>{{order.order_info.delivery_name}}</text>
  149. </view>
  150. </view>
  151. <view class="item">
  152. <view class="title">收货人</view>
  153. <view class="detail i-flex i-aic">
  154. {{order.order_info.ziti_name}}
  155. <view bindtap="callTelphone" class="phone" data-phone="{{order.order_info.ziti_mobile}}" wx:if="{{is_hidden_orderlist_phone==0}}">
  156. <image class="icon-phone" src="../../images/phone2.png"></image>
  157. <text>联系{{groupInfo.owner_name}}</text>
  158. </view>
  159. </view>
  160. </view>
  161. <view class="item">
  162. <view class="title">取货地址</view>
  163. <view class="detail">{{order.order_info.shipping_address}}</view>
  164. </view>
  165. </view>
  166. </view>
  167. </i-card>
  168. </view>
  169. <!-- 商品信息 -->
  170. <view class="goods-card">
  171. <i-card>
  172. <view class="header" slot="header">
  173. <view class="goods-cancel bold-text" wx:if="{{order.order_info.order_status_id==5}}">已取消</view>
  174. <view class="goods-ready bold-text" wx:if="{{order.order_info.order_status_id==1||order.order_info.order_status_id==14}}">
  175. <block wx:if="{{order.order_info.delivery=='pickup'}}">预计{{order.order_info.pick_up_time}}可提货</block>
  176. <block wx:elif="{{order.order_info.delivery=='tuanz_send'}}">预计{{order.order_info.pick_up_time}}{{groupInfo.owner_name}}配送</block>
  177. <block wx:elif="{{order.order_info.delivery=='localtown_delivery'}}">商品信息</block>
  178. <block wx:else>快递配送</block>
  179. </view>
  180. <view class="goods-done bold-text" wx:if="{{order.order_info.order_status_id==6||order.order_info.order_status_id==11}}">{{showRealPickUpTime}}提货完成</view>
  181. <view class="goods-num">{{order.goods_count}}件商品</view>
  182. </view>
  183. <view class="middle" slot="content">
  184. <block wx:for="{{order.order_goods_list}}" wx:for-item="goodsInfo" wx:key="id">
  185. <view class="middle-line"></view>
  186. <view class='each-item' bindtap="showRefundInfo" data-idx="{{index}}" data-hasrefund="{{goodsInfo.has_refund_quantity}}">
  187. <view style="margin-right: 10px">
  188. <i-img height="60" iClass="show-img" lazyLoad="true" loadImage="{{goodsInfo.image}}" width="60"></i-img>
  189. </view>
  190. <view style="flex-grow: 1">
  191. <view class="name bold-text"><text class="pintag" wx:if="{{order.order_info.is_pin==1}}">拼团</text> {{goodsInfo.name}}</view>
  192. <view class="mount">
  193. <block wx:if="{{goodsInfo.option_str}}">{{goodsInfo.option_str}} </block>
  194. <block wx:if="{{order.order_info.type!='integral'}}">¥</block>{{goodsInfo.price}}
  195. <block wx:if="{{order.order_info.type=='integral'}}">积分</block> x {{goodsInfo.quantity}}
  196. </view>
  197. <view class="bottom-info">
  198. <view class='bold-text'>
  199. 小计:<block wx:if="{{order.order_info.type!='integral'}}">¥</block>{{goodsInfo.real_total}}
  200. <block wx:if="{{order.order_info.type=='integral'}}">积分</block>
  201. </view>
  202. </view>
  203. </view>
  204. </view>
  205. </block>
  206. <view slot="footer">
  207. <view class="content-wrap border-top pt10">
  208. <view class="item">
  209. <view class="title">商品合计</view>
  210. <view class="detail">
  211. <text>+ ¥{{goodsTotal}}</text>
  212. </view>
  213. </view>
  214. <view class="item" wx:if="{{order.order_info.shipping_fare>0}}">
  215. <view class="title" wx:if="{{orderInfo.type=='integral'}}">快递费</view>
  216. <view class="title" wx:else>配送费</view>
  217. <view class="detail">
  218. + ¥{{order.order_info.shipping_fare}}
  219. </view>
  220. </view>
  221. <block wx:if="{{order.order_info.is_free_shipping_fare==1}}">
  222. <view class="item">
  223. <view class="title">配送费</view>
  224. <view class="detail">
  225. + ¥{{order.order_info.fare_shipping_free}}
  226. </view>
  227. </view>
  228. <view class="item">
  229. <view class="title">满金额免配送费</view>
  230. <view class="detail">
  231. - ¥{{order.order_info.fare_shipping_free}}
  232. </view>
  233. </view>
  234. </block>
  235. <view class="item" wx:if="{{(order.order_info.score_for_money*1)>0}}">
  236. <view class="title">积分抵扣</view>
  237. <view class="detail">
  238. - ¥{{orderInfo.score_for_money}}
  239. </view>
  240. </view>
  241. <view class="item" wx:if="{{order.order_info.is_vipcard_buy==1&&levelAmount>0}}">
  242. <view class="title">会员优惠</view>
  243. <view class="detail">
  244. - ¥{{levelAmount}}
  245. </view>
  246. </view>
  247. <view class="item" wx:if="{{order.order_info.is_level_buy==1&&order.order_info.is_vipcard_buy!=1&&levelAmount>0}}">
  248. <view class="title">等级折扣</view>
  249. <view class="detail">
  250. - ¥{{levelAmount}}
  251. </view>
  252. </view>
  253. <view class="item" wx:if="{{disAmount>0}}">
  254. <view class="title">总优惠</view>
  255. <view class="detail">
  256. - ¥{{disAmount}}
  257. </view>
  258. </view>
  259. <view class="item" wx:if="{{changePrice>0}}">
  260. <view class="title">订单改价</view>
  261. <view class="detail">
  262. {{order.order_info.admin_change_price>0?'+':'-'}} ¥{{changePrice}}
  263. </view>
  264. </view>
  265. <view class="item border-top pt10 mt10">
  266. <view></view>
  267. <view class="detail">
  268. 实付款:<text class="red weight fsz-32">¥{{order.order_info.total}}</text>
  269. </view>
  270. </view>
  271. </view>
  272. </view>
  273. </view>
  274. </i-card>
  275. </view>
  276. <!-- 评论 -->
  277. <i-orderComment wx:if="{{order.order_info.comment}}" comment="{{order.order_info.comment}}" />
  278. <view class="i-flex footerContorl p10">
  279. <!-- <view class="btn bg-ccc text-3" data-id="{{order.order_info.order_id}}">备注</view> -->
  280. <!-- <view class="btn bg-warning" data-id="{{order.order_info.order_id}}">订单退款</view> -->
  281. <block wx:if="{{order.order_info.order_status_id==4}}">
  282. <!-- 同城配送指定配送员 -->
  283. <view class="btn bg-primary" catchtap="chooseRider" data-id="{{order.order_info.order_id}}" wx:if="{{order.order_info.delivery=='localtown_delivery'&&order.order_info.orderdistribution_order.state==1&&!order.order_info.third_distribution_type}}">指定配送员配送</view>
  284. <!-- <view class="btn bg-sucess" wx:if="{{order.order_info.delivery=='express'}}" data-id="{{order.order_info.order_id}}" catchtap="getExpList">修改物流</view> -->
  285. <view class="btn bg-blue" data-id="{{order.order_info.order_id}}" catchtap="opreceive">确认收货</view>
  286. </block>
  287. <block wx:if="{{order.order_info.order_status_id==1}}">
  288. <!-- 快递发货 -->
  289. <view class="btn bg-blue" wx:if="{{order.order_info.delivery=='express'}}" catchtap="getExpList" data-id="{{order.order_info.order_id}}">确认发货</view>
  290. <!-- 团长配送 -->
  291. <view class="btn bg-blue" wx:if="{{order.order_info.delivery=='tuanz_send'||order.order_info.delivery=='pickup'}}" catchtap="tuanSend" data-id="{{order.order_info.order_id}}">确认配送</view>
  292. <!-- 同城配送 -->
  293. <view class="btn bg-blue" wx:if="{{order.order_info.delivery=='localtown_delivery'}}" catchtap="localtownSend" data-id="{{order.order_info.order_id}}">确认配送</view>
  294. </block>
  295. <block wx:if="{{order.order_info.order_status_id==14}}">
  296. <!-- 快递确认收货 -->
  297. <view class="btn bg-blue" wx:if="{{order.order_info.delivery=='express'}}" data-id="{{order.order_info.order_id}}" catchtap="opreceive">确认收货</view>
  298. <!-- 团长确认收货 -->
  299. <view class="btn bg-blue" wx:if="{{order.order_info.delivery=='tuanz_send'||order.order_info.delivery=='pickup'}}" data-id="{{order.order_info.order_id}}" catchtap="tuanOver">确认送达团长</view>
  300. </block>
  301. <block wx:if="{{order.order_info.order_status_id==3}}">
  302. <view class="btn bg-primary" catchtap="goLink" data-link='/lionfish_comshop/moduleB/supply/changePrice?order_id={{order.order_info.order_id}}' wx:if="{{!presale_info}}">订单改价</view>
  303. <view class="btn bg-blue" catchtap="confirmPay" data-id="{{order.order_info.order_id}}">确认付款</view>
  304. </block>
  305. </view>
  306. </view>
  307. </view>
  308. <!-- 快递信息 -->
  309. <i-modal scrollUp="{{false}}" visible="{{showExpModal}}">
  310. <view class="exp-modal bg-f rounded">
  311. <view class="p10 border-bottom bg-lighter text-dark weight fsz-30">订单发货</view>
  312. <view class="p15 border-bottom fsz-24">
  313. <view class="mb5">联系人:{{expInfo.shipping_name}}</view>
  314. <view class="mb10">收货地址:{{expInfo.shipping_name}}</view>
  315. <view class="mb10 i-flex i-aic">
  316. <picker class="i-flex-item" bindchange="bindPickerChange" value="{{index}}" range="{{expInfo.express_list}}" range-key="name">
  317. <view class="picker">
  318. 物流公司:{{expInfo.express_list[index].name}} <text class="iconfont icon-xia fsz-24 text-gray"></text>
  319. </view>
  320. </picker>
  321. </view>
  322. <view class="i-flex i-aic">
  323. 物流单号:
  324. <input class="ipt i-flex-item" type="text" placeholder="请输入物流单号" bindinput="bindKeyInput"></input>
  325. </view>
  326. </view>
  327. <view class="i-flex jcontent-sa text-center weight fsz-30">
  328. <view class="btn p10 i-flex-item text-gray" bindtap="hideExpModal">取消</view>
  329. <view class="btn p10 i-flex-item bule" data-id="{{expInfo.order_id}}" bindtap="expSend">确认发货</view>
  330. </view>
  331. </view>
  332. </i-modal>
  333. <i-select-rider order_id="{{selectOrderId}}" bind:update="initFn" bind:close="closeRiderList" show="{{showRaderList}}" wx:if="{{showRaderList}}" />