index.wxml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. <!--
  2. - Copyright (C) 2018-2019
  3. - All rights reserved, Designed By www.joolun.com
  4. - 注意:
  5. - 本软件为www.joolun.com开发研制,项目使用请保留此说明
  6. -->
  7. <view class="margin-bottom-bar">
  8. <view class="bg-white padding">
  9. <view class="status-desc text-red margin-left text-bold text-center cuIcon-{{orderInfo.status == '0' ? 'pay' : orderInfo.status == '1' ? 'send' : orderInfo.status == '2' ? 'deliver' : orderInfo.status == '3' ? 'evaluate' : orderInfo.status == '4' ? 'upstage' : orderInfo.status == '5' ? 'roundclose' : ''}}">
  10. {{orderInfo.statusDesc}}
  11. </view>
  12. <view class="text-black margin-left text-center" wx:if="{{orderInfo.isPay == '0' && !orderInfo.status}}">
  13. 请在<count-down outTime="{{1000 * orderInfo.outTime}}" bind:countDownDone="countDownDone"/>内付款,超时订单将自动取消
  14. </view>
  15. <view class="text-black margin-left text-center" wx:if="{{orderInfo.status == '2'}}">
  16. 还剩<count-down outTime="{{1000 * orderInfo.outTime}}" bind:countDownDone="countDownDone"/>自动确认
  17. </view>
  18. </view>
  19. <view class="cu-list cu-card menu-avatar">
  20. <navigator class="cu-item" url='/pages/order/order-logistics/index?id={{orderInfo.orderLogistics.id}}' wx:if="{{orderInfo.deliveryWay == '1' && (orderInfo.status == '2' || orderInfo.status == '3' || orderInfo.status == '4')}}">
  21. <view class="cu-avatar round cuIcon-deliver bg-red"></view>
  22. <view class="content loc-content">
  23. <view class="flex">
  24. <view class="text-black">{{orderInfo.orderLogistics.statusDesc}}</view>
  25. <view class="text-sm margin-left-sm">{{orderInfo.orderLogistics.logisticsDesc}}</view>
  26. </view>
  27. <view class="text-black text-sm overflow-2 loc-info" wx:if="{{orderInfo.orderLogistics.message}}">
  28. {{orderInfo.orderLogistics.message}}
  29. </view>
  30. </view>
  31. <view class="action">
  32. <text class="cuIcon-right"></text>
  33. </view>
  34. </navigator>
  35. <view class="cu-item">
  36. <view class="cu-avatar round cuIcon-location bg-black"></view>
  37. <view class="content loc-content">
  38. <view class="flex">
  39. <view class="text-black">{{orderInfo.orderLogistics.userName}}</view>
  40. <view class="text-gray text-sm margin-left-sm">{{orderInfo.orderLogistics.telNum}}</view>
  41. </view>
  42. <view class="text-gray text-sm overflow-2 loc-info">
  43. {{orderInfo.orderLogistics.address}}
  44. </view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="cu-card article mar-top-30">
  49. <view class="cu-item">
  50. <view class="cu-list menu">
  51. <view wx:for="{{ orderInfo.listOrderItem }}" wx:key="index">
  52. <navigator hover-class='none' url='/pages/goods/goods-detail/index?id={{item.spuId}}' class="cu-item">
  53. <view class="align-center">
  54. <view class="flex align-center">
  55. <image src="{{item.picUrl ? item.picUrl : '/public/img/no_pic.png'}}" mode="aspectFill" class="row-img margin-top-xs"></image>
  56. </view>
  57. <view class="desc row-info">
  58. <view class="text-black margin-left margin-top-sm overflow-2">{{item.spuName}}</view>
  59. <view class="text-gray text-sm margin-top-sm overflow-2" wx:if="{{item.specInfo}}">{{item.specInfo}}</view>
  60. <view class="flex justify-between">
  61. <view class="text-bold text-gray margin-top-sm margin-left-xs padding-lr-sm font-weight">数量</view>
  62. <view class="text-black text-sm margin-top-sm margin-right-xs padding-lr-sm">x{{item.quantity}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. </navigator>
  67. </view>
  68. <view class="cu-item margin-top-xs">
  69. <text class="text-gray font-weight">订单金额</text>
  70. <view class="action">
  71. <text class="text-price">{{orderInfo.salesPrice}}</text>
  72. </view>
  73. </view>
  74. <view class="cu-item margin-top-xs">
  75. <text class="text-gray font-weight">运费金额</text>
  76. <view class="action">
  77. + <text class="text-price">{{orderInfo.freightPrice}}</text>
  78. </view>
  79. </view>
  80. <view class="cu-item margin-top-xs">
  81. <text class="text-gray font-weight">支付金额</text>
  82. <view class="action">
  83. <text class="text-price text-xl text-blue text-bold">{{orderInfo.paymentPrice}}</text>
  84. </view>
  85. </view>
  86. </view>
  87. </view>
  88. </view>
  89. <view class="cu-card mar-top-30">
  90. <view class="cu-item">
  91. <view class="cu-bar bg-white">
  92. <view class="action">
  93. <text class="cuIcon-titles text-black"></text>订单信息
  94. </view>
  95. </view>
  96. <view class="margin flex">
  97. <text class="flex-sub text-gray font-weight">订单编号</text>
  98. <view class="action">{{orderInfo.orderNo}}
  99. <button class="cu-btn sm" bindtap="copyData" data-data="{{orderInfo.orderNo}}">复制</button>
  100. </view>
  101. </view>
  102. <view class="margin flex">
  103. <text class="flex-sub text-gray font-weight">创建时间</text>
  104. <view class="action">{{orderInfo.createTime}}</view>
  105. </view>
  106. <view class="margin flex" wx:if="{{orderInfo.paymentTime}}">
  107. <text class="flex-sub text-gray font-weight">付款时间</text>
  108. <view class="action">{{orderInfo.paymentTime}}</view>
  109. </view>
  110. </view>
  111. </view>
  112. <view class="cu-card mar-top-30" wx:if="{{orderInfo.orderLogistics.logisticsDesc}}">
  113. <view class="cu-item">
  114. <view class="cu-bar bg-white">
  115. <view class="action">
  116. <text class="cuIcon-titles text-orange "></text> 物流信息
  117. </view>
  118. </view>
  119. <view class="margin flex">
  120. <text class="flex-sub">快递公司</text>
  121. <view class="flex-twice">
  122. {{orderInfo.orderLogistics.logisticsDesc}}
  123. </view>
  124. </view>
  125. <view class="margin flex">
  126. <text class="flex-sub">快递单号</text>
  127. <view class="flex-twice">
  128. {{orderInfo.orderLogistics.logisticsNo}}
  129. <button class="cu-btn sm" bindtap="copyData" data-data="{{orderInfo.orderLogistics.logisticsNo}}">复制</button>
  130. </view>
  131. </view>
  132. </view>
  133. </view>
  134. <view class="cu-card mar-top-30" wx:if="{{orderInfo.userMessage}}">
  135. <view class="cu-item cu-form-group align-start">
  136. <view class="title">给卖家留言</view>
  137. <textarea readonly value="{{orderInfo.userMessage}}"></textarea>
  138. </view>
  139. </view>
  140. <view style="padding-bottom: 60px;">
  141. </view>
  142. </view>
  143. <view class="cu-bar tabbar bg-white border foot">
  144. <order-operate
  145. class="response"
  146. orderInfo="{{orderInfo}}"
  147. callPay="{{callPay}}"
  148. contact="true"
  149. bind:orderCancel="orderCancel"
  150. bind:orderReceive="orderCancel"
  151. bind:orderDel="orderDel"
  152. bind:unifiedOrder="unifiedOrder"
  153. />
  154. </view>