12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <nav type="back" background-color="#46a9a4" title="订单列表" />
- <block wx:if="{{list.length==0}}">
- <van-empty description="暂无订单" />
- </block>
- <block wx:for="{{list}}" wx:key="index">
- <view class="box" data-item="{{item}}" bindtap="orderdeils">
- <view class="order-number">
- <view class="number">订单号:{{item.orderNum?item.orderNum:'暂无'}}</view>
- <block wx:if="{{item.status=='100'}}">
- <view class="state">未付款</view>
- </block>
- <block wx:if="{{item.status=='200'}}">
- <view class="state">待发货</view>
- </block>
- <block wx:if="{{item.status=='300'}}">
- <view class="state">待收货</view>
- </block>
- <block wx:if="{{item.status=='400'}}">
- <view class="state">待评价</view>
- </block>
- </view>
- <view class="order-txt" data-item="{{item}}">
- <image class="order-image" src="{{item.store.cover}}" />
- <view class="order-name">
- <view class="order-time">下单用户:{{item.user.nickname ? item.user.nickname : '暂无' }}</view>
- <view class="order-price">¥{{item.totalPrice}}</view>
- <view class="order-time">下单时间: {{item.time}}</view>
- </view>
- </view>
- <view class="order-order">
- <view class="pay" data-item="{{item}}" catchtap="orderdeils">订单详情</view>
- <block wx:if="{{item.status=='200'}}">
- <view class="pay">待发货</view>
- </block>
- <block wx:if="{{item.status=='300'}}">
- <view class="pay" data-item="{{item}}" catchtap="orderdeils">待收货</view>
- </block>
- <block wx:if="{{item.status=='400'}}">
- <view class="pay" data-item="{{item}}" catchtap="evaluation">去评价</view>
- </block>
- </view>
- </view>
- </block>
|