1234567891011121314151617181920212223242526272829303132 |
- <nav type="back" background-color="{{activeColor}}" title="堂食订单" frontColor="#ffffff" />
- <block wx:if="{{list.length==0}}">
- <van-empty description="暂无订单" />
- </block>
- <block wx:for="{{list}}" wx:key="index">
- <view class="box" data-item="{{item}}" bindtap="details">
- <view style="display: flex;justify-content: space-between;">
- <view class="title">{{item.store.storeName}}</view>
- <block wx:if="{{item.state=='100'}}">
- <view>待付款</view>
- </block>
- <block wx:if="{{item.state=='200'}}">
- <view>已付款</view>
- </block>
- <block wx:if="{{item.state=='400'}}">
- <view>已完成</view>
- </block>
- </view>
- <view class="details">
- <image class="image" src="{{item.store.cover}}" />
- <view class="information">
- <view class="num">订单号:{{item.tradeNo}}</view>
- <view class="time">下单时间:{{item.time}}</view>
- <view class="time">桌号:{{item.table.name}}</view>
- <view class="time">总价:¥{{item.totalPrice}}</view>
- </view>
- </view>
- <!-- <view class="">去评价</view> -->
- </view>
- </block>
|