order.wxml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <view class="container">
  2. <view class="orders-switch">
  3. <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
  4. <view class="txt">全部</view>
  5. </view>
  6. <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
  7. <view class="txt">待付款</view>
  8. </view>
  9. <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
  10. <view class="txt">待发货</view>
  11. </view>
  12. <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
  13. <view class="txt">待收货</view>
  14. </view>
  15. <view class="item {{ showType == 4 ? 'active' : ''}}" bindtap="switchTab" data-index='4'>
  16. <view class="txt">待评价</view>
  17. </view>
  18. </view>
  19. <view class="no-order" wx:if="{{orderList.length <= 0}}">
  20. <view class="c">
  21. <text>还没有任何订单呢</text>
  22. </view>
  23. </view>
  24. <view class="orders">
  25. <navigator url="../orderDetail/orderDetail?id={{item.id}}" class="order" open-type="redirect" wx:for="{{orderList}}" wx:key="id">
  26. <view class="h">
  27. <view class="l">订单编号:{{item.orderSn}}</view>
  28. <view class="r">{{item.orderStatusText}}</view>
  29. </view>
  30. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  31. <view class="img">
  32. <image src="{{gitem.picUrl}}"></image>
  33. </view>
  34. <view class="info">
  35. <text class="name">{{gitem.goodsName}}</text>
  36. <text class="number">共{{gitem.number}}件商品</text>
  37. </view>
  38. <view class="status"></view>
  39. </view>
  40. <view class="b">
  41. <view class="l">实付:¥{{item.actualPrice}}</view>
  42. </view>
  43. </navigator>
  44. </view>
  45. </view>