orderList.wxml 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <!-- pages/goods/orderList/orderList.wxml -->
  2. <wxs module="tool" src="../../../app.wxs" />
  3. <view class="tabs-wrap flex-align-center">
  4. <view class="item flex-center {{current == 4 ? 'active' : ''}}" bindtap="onTabsChange" data-id="4">
  5. 全部
  6. </view>
  7. <view class="item flex-center {{current == 1 ? 'active' : ''}}" bindtap="onTabsChange" data-id="1">
  8. 待支付
  9. </view>
  10. <view class="item flex-center {{current == 2 ? 'active' : ''}}" bindtap="onTabsChange" data-id="2">
  11. 待取货
  12. </view>
  13. <view class="item flex-center {{current == 3 ? 'active' : ''}}" bindtap="onTabsChange" data-id="3">
  14. 已完成
  15. </view>
  16. </view>
  17. <view class="tabs">
  18. <view class="tabs-content">
  19. <navigator url="/pages/goods/orderDetail/orderDetail?id={{item.id}}" hover-class="none" wx:for="{{list}}" wx:key="index">
  20. <view class="item tabs-radius current{{current}}">
  21. <view class="item-top flex-align-center ">
  22. <text class="flex1 ellipsis" style="font-size: 36rpx;">{{item.store_name}}</text>
  23. <!-- 状态,-3已退款,-2退款中,-1已取消,0待支付,1已支付,待取货,2已取货 -->
  24. <!-- 状态-1已取消,0待支付,1已支付,3.已结算 -->
  25. <text class="state" style="color: #fa7d22;">{{item.status_text}}</text>
  26. </view>
  27. <view>
  28. <view class="item-content list-info">
  29. <view class="content-left content-project" wx:if="{{(item.good.length+item.plus.length)==1}}">
  30. <image wx:for="{{item.good}}" wx:key="index" class="img content-image" src="{{item.cover_url}}"></image>
  31. <view class="seckill" wx:if="{{item.seckill_id}}">秒杀</view>
  32. <view class="project-name">
  33. <view class="name">{{item.good[0].goods_name}}</view>
  34. <view wx:if="{{item.seconds>0}}" class="countDown">剩余支付时间:
  35. <van-count-down format="mm:ss" bind:finish='finishTime' style="margin-left: 10rpx;" time="{{ item.seconds }}" />
  36. </view>
  37. </view>
  38. </view>
  39. <view class="content-left projects-list" wx:else>
  40. <image wx:for="{{item.good}}" wx:key="index" class="img" src="{{item.cover_url}}"></image>
  41. <image wx:for="{{item.plus}}" wx:key="index" class="img" src="{{item.plus_url}}"></image>
  42. </view>
  43. <view class="content-text-box">
  44. 共{{item.sum}}件
  45. </view>
  46. </view>
  47. </view>
  48. <view wx:if="{{item.status == 0}}" class="price-all">
  49. <text>¥</text>
  50. <text>{{item.price}}</text>
  51. </view>
  52. <view class="item-btn flex-align-center" wx:if="{{item.status == 0}}">
  53. <view class="btn cancel-btn flex-center" catchtap="onCancelOrder" data-id="{{item.id}}">
  54. 取消订单
  55. </view>
  56. <view class="btn use-btn flex-center" catchtap="onPay" data-id="{{item.id}}" data-money="{{item.price}}">去支付</view>
  57. </view>
  58. <view class="item-btn flex-align-center" wx:if="{{item.status != 0}}">
  59. <text style="font-size: 28rpx;color: #999;">实付金额:</text>
  60. <text style="font-size: 36rpx;margin-right:28rpx;">¥{{item.price}}</text>
  61. </view>
  62. </view>
  63. </navigator>
  64. <view class="no-data" style="display: {{list.length == 0 ? 'block' : 'none'}};">暂无数据~</view>
  65. </view>
  66. </view>