index.wxml 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. <nav type="back" background-color="{{activeColor}}" title="堂食订单" frontColor="#ffffff" />
  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="details">
  7. <view style="display: flex;justify-content: space-between;">
  8. <view class="title">{{item.store.storeName}}</view>
  9. <block wx:if="{{item.state=='100'}}">
  10. <view>待付款</view>
  11. </block>
  12. <block wx:if="{{item.state=='200'}}">
  13. <view>已付款</view>
  14. </block>
  15. <block wx:if="{{item.state=='400'}}">
  16. <view>已完成</view>
  17. </block>
  18. </view>
  19. <view class="details">
  20. <image class="image" src="{{item.store.cover}}" />
  21. <view class="information">
  22. <view class="num">订单号:{{item.tradeNo}}</view>
  23. <view class="time">下单时间:{{item.time}}</view>
  24. <view class="time">桌号:{{item.table.name}}</view>
  25. <view class="time">总价:¥{{item.totalPrice}}</view>
  26. </view>
  27. </view>
  28. <!-- <view class="">去评价</view> -->
  29. </view>
  30. </block>