order.wxml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. <image src="http://nos.netease.com/mailpub/hxm/yanxuan-wap/p/20150730/style/img/icon-normal/noCart-a8fe3f12e5.png" />
  22. <text>还没有任何订单呢</text>
  23. </view>
  24. </view>
  25. <view class="orders">
  26. <navigator url="../orderDetail/orderDetail?id={{item.id}}" class="order" open-type="navigate" wx:for="{{orderList}}" wx:key="id">
  27. <view class="h">
  28. <view class="l">订单编号:{{item.orderSn}}</view>
  29. <view class="r">{{item.orderStatusText}}</view>
  30. </view>
  31. <view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
  32. <view class="img">
  33. <image src="{{gitem.picUrl}}"></image>
  34. </view>
  35. <view class="info">
  36. <text class="name">{{gitem.goodsName}}</text>
  37. <text class="number">共{{gitem.number}}件商品</text>
  38. </view>
  39. <view class="status"></view>
  40. </view>
  41. <view class="b">
  42. <view class="l">实付:¥{{item.actualPrice}}</view>
  43. <view class="capsule-tag">
  44. <zan-capsule color="#a78845" leftText="" rightText="团购" wx:if="{{item.isGroupin}}" />
  45. </view>
  46. </view>
  47. </navigator>
  48. </view>
  49. </view>