index.wxml 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <view class="page-container">
  2. <view class="tab-bar">
  3. <view class="tab-bar__placeholder" />
  4. <t-tabs
  5. t-class="tab-bar__inner"
  6. t-class-active="tab-bar__active"
  7. t-class-track="t-tabs-track"
  8. bind:change="onTabChange"
  9. value="{{status}}"
  10. style="position: fixed; top: 0; left: 0; z-index: 100"
  11. >
  12. <t-tab-panel
  13. wx:for="{{tabs}}"
  14. wx:for-index="index"
  15. wx:for-item="item"
  16. wx:key="index"
  17. label="{{item.text}}"
  18. value="{{item.key}}"
  19. />
  20. </t-tabs>
  21. </view>
  22. <t-pull-down-refresh
  23. id="pull-down-refresh"
  24. normal-bar-height="{{200}}"
  25. max-bar-height="{{272}}"
  26. refreshTimeout="{{3000}}"
  27. background="#f5f5f5"
  28. use-loading-slot
  29. loading-size="60rpx"
  30. bindrefresh="onPullDownRefresh_"
  31. t-class-indicator="t-class-indicator"
  32. >
  33. <order-card
  34. wx:for="{{orderList}}"
  35. wx:key="id"
  36. wx:for-item="order"
  37. wx:for-index="oIndex"
  38. order="{{order}}"
  39. defaultShowNum="{{3}}"
  40. data-order="{{order}}"
  41. bindcardtap="onOrderCardTap"
  42. useLogoSlot
  43. >
  44. <view slot="top-left" class="order-number">
  45. <text decode>订单号&nbsp;</text>
  46. {{order.orderNo}}
  47. </view>
  48. <specs-goods-card
  49. wx:for="{{order.goodsList}}"
  50. wx:key="id"
  51. wx:for-item="goods"
  52. wx:for-index="gIndex"
  53. data="{{goods}}"
  54. no-top-line="{{gIndex === 0}}"
  55. />
  56. <view slot="more">
  57. <view class="price-total">
  58. <text>总价</text>
  59. <price fill price="{{order.totalAmount + ''}}" />
  60. <text>,运费</text>
  61. <price fill price="{{order.freightFee + ''}}" />
  62. <text decode>&nbsp;</text>
  63. <text class="bold-price" decode="{{true}}">实付&nbsp;</text>
  64. <price fill class="real-pay" price="{{order.amount + ''}}" decimalSmaller />
  65. </view>
  66. <!-- 订单按钮栏 -->
  67. <order-button-bar order="{{order}}" bindrefresh="onRefresh" data-order="{{order}}" />
  68. </view>
  69. </order-card>
  70. <!-- 列表加载中/已全部加载 -->
  71. <load-more
  72. wx:if="{{!pullDownRefreshing}}"
  73. list-is-empty="{{!orderList.length}}"
  74. status="{{listLoading}}"
  75. bindretry="onReTryLoad"
  76. >
  77. <!-- 空态 -->
  78. <view slot="empty" class="empty-wrapper">
  79. <t-empty t-class="t-empty-text" src="{{emptyImg}}">暂无相关订单</t-empty>
  80. </view>
  81. </load-more>
  82. </t-pull-down-refresh>
  83. </view>
  84. <t-toast id="t-toast" />
  85. <t-dialog id="t-dialog" />