index.wxml 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <page-meta
  2. page-style="--themeColor:{{themeColor}};--red: {{themeRGB[0]}}; --green: {{themeRGB[1]}};--blue: {{themeRGB[2]}}">
  3. <nav type="back" background-color="{{themeColor ? themeColor : '#ffffff'}}" title="我的订单"
  4. frontColor="{{titleColor ? titleColor : '#000000'}}" />
  5. <view class="top_scrprell" style="top:{{2 *customBarHeight}}rpx;">
  6. <van-tabs active="{{ active }}" bind:change="onChange" data-change="true" color="{{themeColor}}">
  7. <van-tab title="全部"></van-tab>
  8. <van-tab title="待付款"></van-tab>
  9. <van-tab title="待发货"></van-tab>
  10. <van-tab title="待收货"></van-tab>
  11. <van-tab title="待评价"></van-tab>
  12. </van-tabs>
  13. </view>
  14. <view class="list" wx:if="{{goodsList}}">
  15. <block wx:for="{{goodsList}}" wx:key="index">
  16. <view class="li">
  17. <view class="li-title">{{item.targetObject[0].name}}</view>
  18. <view class="li-cont">
  19. <view class="li-cont-left">
  20. <image class="goods_image" mode="aspectFit"
  21. src="{{item.targetObject[0].image ? item.targetObject[0].image : item.image}}" />
  22. </view>
  23. <view class="li-cont-rigth">
  24. <view class="li-row">
  25. <view class="desc">{{item.targetObject[0].name ? item.targetObject[0].name : item.name }}</view>
  26. <view style="color:red">¥{{item.price}}</view>
  27. </view>
  28. <view class="li-row">
  29. <view class="desc" style="color:#949494;">{{item.targetObject[0].desc}}</view>
  30. <view style="color:#949494; float: right;">x{{item.count}}</view>
  31. </view>
  32. <view class="li-row-right">
  33. <view class="desc" style="color:#949494;">总价</view>
  34. <view style="color:red; margin-left:10rpx">¥{{item.totalPrice}}</view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="date">{{item.orderTime}}</view>
  39. <view class="li-footer">
  40. <block wx:if="{{item.status == 100}}">
  41. <view class="footer-left">待付款</view>
  42. <view class="footer-right">
  43. <view class="btn-ov" data-index="{{index}}" catch:tap="delOrder">取消订单</view>
  44. <view class="btn-end" data-price="{{item.price}}" data-code="{{item.orderNum}}"
  45. data-id="{{item.objectId}}" data-item="{{item}}" catch:tap="showPay">
  46. 立即支付
  47. </view>
  48. </view>
  49. </block>
  50. <block wx:if="{{item.status == 200}}">
  51. <view class="footer-left">待发货</view>
  52. <view class="footer-right">
  53. <view class="btn-ov" data-url="/common-page/pages/myOrder/order-detail/index?id={{item.objectId}}"
  54. catch:tap="toUrl">
  55. 订单详情
  56. </view>
  57. <view class="btn-end" catch:tap="reminder">我要催单</view>
  58. </view>
  59. </block>
  60. <block wx:if="{{item.status == 300}}">
  61. <view class="footer-left">待收货</view>
  62. <view class="footer-right">
  63. <view class="btn-ov" data-url="/common-page/pages/myOrder/order-detail/index?id={{item.objectId}}"
  64. catch:tap="toUrl">
  65. 订单详情
  66. </view>
  67. <view class="btn-ov" data-item="{{item}}" catch:tap="onShowExpress">查看物流</view>
  68. <view class="btn-end" data-index="{{index}}" catch:tap="receipt">确认收货</view>
  69. </view>
  70. </block>
  71. <block wx:if="{{item.status == 400}}">
  72. <view class="footer-left">待评价</view>
  73. <view class="footer-right">
  74. <view class="btn-ov" data-url="/common-page/pages/myOrder/order-detail/index?id={{item.objectId}}"
  75. catch:tap="toUrl">
  76. 订单详情
  77. </view>
  78. <view class="btn-ov" data-item="{{item}}" catch:tap="onShowExpress">查看物流</view>
  79. <view class="btn-end" data-url="/common-page/pages/myOrder/score/index?id={{item.objectId}}"
  80. catch:tap="toUrl">
  81. 去评价
  82. </view>
  83. </view>
  84. </block>
  85. <block wx:if="{{item.status == 500}}">
  86. <view class="footer-left">已申请退款</view>
  87. <view class="footer-right">
  88. <view class="btn-ov">退款详情</view>
  89. </view>
  90. </block>
  91. <block wx:if="{{item.status == 600}}">
  92. <view class="footer-left">退款完成</view>
  93. <view class="footer-right">
  94. <view class="btn-ov">已退款</view>
  95. </view>
  96. </block>
  97. <block wx:if="{{item.status == 800}}">
  98. <view class="footer-left">已完成</view>
  99. <view class="footer-right">
  100. <view class="btn-ov">已评价</view>
  101. </view>
  102. </block>
  103. </view>
  104. </view>
  105. </block>
  106. </view>
  107. <van-empty wx:else description="没有相应订单" />
  108. <payment style="z-index: 99999;" id='payMent' show="{{show}}" tradeNo="{{tradeNo}}" price="{{PayPrice}}"
  109. bind:payResult='acceptResult' />
  110. <van-dialog use-slot title="物流信息" show="{{ showExpress }}" bind:close="onClose">
  111. <view class="logistics">{{express? express : '暂无物流信息'}}</view>
  112. </van-dialog>
  113. </page-meta>