feat(M08-A): 接入顾客端订单查询
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<scroll-view class="scrollarea" scroll-y type="list">
|
||||
<view class="page">
|
||||
<view class="title">我的订单</view>
|
||||
<button loading="{{loading}}" bindtap="loadOrders">刷新</button>
|
||||
<view wx:if="{{errorMessage}}" class="error">{{errorMessage}}</view>
|
||||
<view wx:if="{{!loading && orders.length === 0}}" class="empty">暂无订单</view>
|
||||
<view wx:for="{{orders}}" wx:key="id" class="order-card" bindtap="openOrder" data-order-id="{{item.id}}">
|
||||
<view class="order-title">{{item.storeName}} · {{item.roomName}}</view>
|
||||
<view class="muted">{{item.timeText}}</view>
|
||||
<view class="muted">订单号:{{item.orderNo}}</view>
|
||||
<view class="row">
|
||||
<text class="status">{{item.status}}</text>
|
||||
<text class="amount">{{item.totalText}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</scroll-view>
|
||||
Reference in New Issue
Block a user