index.wxml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159
  1. <t-pull-down-refresh id="t-pull-down-refresh" bindrefresh="onPullDownRefresh_" t-class-indicator="t-class-indicator">
  2. <!-- 页面内容 -->
  3. <view class="order-detail">
  4. <view class="header">
  5. <view class="order-detail__header">
  6. <view class="title">{{_order.statusDesc}}</view>
  7. <view class="desc">
  8. <block wx:if="{{ order.holdStatus === 1 }}">
  9. <block wx:if="{{ order.groupInfoVo.residueTime > 0 }}">
  10. 拼团剩余
  11. <t-count-down
  12. time="{{order.groupInfoVo.residueTime}}"
  13. format="HH小时mm分ss秒"
  14. t-class="count-down"
  15. bindfinish="onCountDownFinish"
  16. />
  17. <view>过时自动取消</view>
  18. </block>
  19. </block>
  20. <block wx:elif="{{countDownTime === null}}">{{order.orderStatusRemark || ''}}</block>
  21. <block wx:elif="{{countDownTime > 0}}">
  22. <t-count-down
  23. time="{{countDownTime}}"
  24. format="HH小时mm分ss秒"
  25. t-class="count-down"
  26. bindfinish="onCountDownFinish"
  27. />
  28. 支付,过时订单将会取消
  29. </block>
  30. <block wx:else>超时未支付</block>
  31. </view>
  32. </view>
  33. <!-- 物流 -->
  34. <view class="order-logistics" wx:if="{{logisticsNodes[0]}}" bindtap="onDeliveryClick">
  35. <t-icon name="deliver" size="40rpx" class="logistics-icon" prefix="wr" />
  36. <view class="logistics-content">
  37. <view>{{logisticsNodes[0].desc}}</view>
  38. <view class="logistics-time">{{logisticsNodes[0].date}}</view>
  39. </view>
  40. <t-icon class="logistics-back" name="arrow_forward" size="36rpx" prefix="wr" />
  41. </view>
  42. <view class="border-bottom" wx:if="{{logisticsNodes[0]}}" />
  43. <!-- 收货地址 -->
  44. <view class="order-logistics">
  45. <t-icon name="location" size="40rpx" class="logistics-icon" prefix="wr" />
  46. <view class="logistics-content">
  47. <view>{{order.logisticsVO.receiverName + ' '}}{{order.logisticsVO.receiverPhone}}</view>
  48. <view class="logistics-time">{{_order.receiverAddress}}</view>
  49. </view>
  50. <view wx:if="{{addressEditable}}" class="edit-text" bindtap="onEditAddressTap"> 修改 </view>
  51. </view>
  52. </view>
  53. <!-- 店铺及商品 -->
  54. <order-card order="{{_order}}" use-top-right-slot>
  55. <order-goods-card
  56. wx:for="{{_order.goodsList}}"
  57. wx:key="id"
  58. wx:for-item="goods"
  59. wx:for-index="gIndex"
  60. goods="{{goods}}"
  61. no-top-line="{{gIndex === 0}}"
  62. bindtap="onGoodsCardTap"
  63. data-index="{{gIndex}}"
  64. >
  65. <order-button-bar
  66. slot="append-card"
  67. class="goods-button-bar"
  68. order="{{_order}}"
  69. bindrefresh="onRefresh"
  70. goodsIndex="{{gIndex}}"
  71. />
  72. </order-goods-card>
  73. <view class="pay-detail">
  74. <view class="pay-item">
  75. <text>商品总额</text>
  76. <price fill decimalSmaller wr-class="pay-item__right font-bold" price="{{order.totalAmount || '0'}}" />
  77. </view>
  78. <view class="pay-item">
  79. <text>运费</text>
  80. <view class="pay-item__right font-bold">
  81. <block wx:if="{{order.freightFee}}">
  82. +
  83. <price fill decimalSmaller price="{{order.freightFee}}" />
  84. </block>
  85. <text wx:else>免运费</text>
  86. </view>
  87. </view>
  88. <view class="pay-item">
  89. <text>活动优惠</text>
  90. <view class="pay-item__right primary font-bold">
  91. -
  92. <price fill price="{{order.discountAmount || 0}}" />
  93. </view>
  94. </view>
  95. <view class="pay-item">
  96. <text>优惠券</text>
  97. <view class="pay-item__right" catchtap="onOpenCoupons">
  98. <block wx:if="{{order.couponAmount}}">
  99. -
  100. <price fill decimalSmaller price="{{order.couponAmount}}" />
  101. </block>
  102. <text wx:else>无可用</text>
  103. <!-- <t-icon name="chevron-right" size="32rpx" color="#BBBBBB" /> -->
  104. </view>
  105. </view>
  106. <view class="pay-item">
  107. <text>{{isPaid ? '实付' : '应付'}}</text>
  108. <price
  109. fill
  110. decimalSmaller
  111. wr-class="pay-item__right font-bold primary max-size"
  112. price="{{order.paymentAmount || '0'}}"
  113. />
  114. </view>
  115. </view>
  116. </order-card>
  117. <view class="pay-detail padding-inline">
  118. <view class="pay-item">
  119. <text>订单编号</text>
  120. <view class="pay-item__right" bindtap="onOrderNumCopy">
  121. <text class="order-no">{{order.orderNo}}</text>
  122. <view class="pay-item__right__copy">复制</view>
  123. </view>
  124. </view>
  125. <view class="pay-item">
  126. <text>下单时间</text>
  127. <view class="pay-item__right">
  128. <text class="order-no normal-color">{{formatCreateTime}}</text>
  129. </view>
  130. </view>
  131. <view class="border-bottom border-bottom-margin" />
  132. <view class="pay-item">
  133. <text>发票</text>
  134. <view class="pay-item__right" bindtap="onOrderInvoiceView">
  135. <text class="order-no normal-color">{{invoiceType}}</text>
  136. <view class="pay-item__right__copy">查看</view>
  137. </view>
  138. </view>
  139. <view class="pay-item">
  140. <text>备注</text>
  141. <view class="pay-item__right">
  142. <text class="order-no normal-color">{{order.remark || '-'}}</text>
  143. </view>
  144. </view>
  145. <view class="border-bottom border-bottom-margin" />
  146. <view class="pay-service" wx:if="{{storeDetail && storeDetail.storeTel}}" catch:tap="clickService">
  147. <t-icon name="service" size="40rpx" />
  148. <text decode="{{true}}">&nbsp;联系客服</text>
  149. </view>
  150. </view>
  151. </view>
  152. <view wx:if="{{_order.buttons.length > 0}}" class="bottom-bar">
  153. <order-button-bar order="{{_order}}" bindrefresh="onRefresh" isBtnMax />
  154. </view>
  155. </t-pull-down-refresh>
  156. <t-toast id="t-toast" />
  157. <t-dialog id="t-dialog" />