index.wxml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <nav type="back" background-color="#46a9a4" title="订单列表" />
  2. <block wx:if="{{list.length==0}}">
  3. <van-empty description="暂无订单" />
  4. </block>
  5. <block wx:for="{{list}}" wx:key="index">
  6. <view class="box" data-item="{{item}}" bindtap="orderdeils">
  7. <view class="order-number">
  8. <view class="number">订单号:{{item.orderNum?item.orderNum:'暂无'}}</view>
  9. <block wx:if="{{item.status=='100'}}">
  10. <view class="state">未付款</view>
  11. </block>
  12. <block wx:if="{{item.status=='200'}}">
  13. <view class="state">待发货</view>
  14. </block>
  15. <block wx:if="{{item.status=='300'}}">
  16. <view class="state">待收货</view>
  17. </block>
  18. <block wx:if="{{item.status=='400'}}">
  19. <view class="state">待评价</view>
  20. </block>
  21. </view>
  22. <view class="order-txt" data-item="{{item}}">
  23. <image class="order-image" src="{{item.store.cover}}" />
  24. <view class="order-name">
  25. <view class="order-time">下单用户:{{item.user.nickname ? item.user.nickname : '暂无' }}</view>
  26. <view class="order-price">¥{{item.totalPrice}}</view>
  27. <view class="order-time">下单时间: {{item.time}}</view>
  28. </view>
  29. </view>
  30. <view class="order-order">
  31. <view class="pay" data-item="{{item}}" catchtap="orderdeils">订单详情</view>
  32. <block wx:if="{{item.status=='200'}}">
  33. <view class="pay">待发货</view>
  34. </block>
  35. <block wx:if="{{item.status=='300'}}">
  36. <view class="pay" data-item="{{item}}" catchtap="orderdeils">待收货</view>
  37. </block>
  38. <block wx:if="{{item.status=='400'}}">
  39. <view class="pay" data-item="{{item}}" catchtap="evaluation">去评价</view>
  40. </block>
  41. </view>
  42. </view>
  43. </block>