46 lines
1.7 KiB
Plaintext
46 lines
1.7 KiB
Plaintext
<view class="container">
|
|
<view class="orders-switch">
|
|
<view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
|
|
<view class="txt">所有订单</view>
|
|
</view>
|
|
<view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
|
|
<view class="txt">有效订单</view>
|
|
</view>
|
|
<view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
|
|
<view class="txt">失效订单</view>
|
|
</view>
|
|
<view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
|
|
<view class="txt">已结算单</view>
|
|
</view>
|
|
<view class="item {{ showType == 4 ? 'active' : ''}}" bindtap="switchTab" data-index='4'>
|
|
<view class="txt">待结算单</view>
|
|
</view>
|
|
</view>
|
|
<view class="no-order" wx:if="{{orderList.length <= 0}}">
|
|
<view class="c">
|
|
<image src="/static/images/noCart_old.png" />
|
|
<text>还没有任何订单呢</text>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="orders">
|
|
<view class="order" open-type="redirect" wx:for="{{orderList}}" wx:key="id">
|
|
<view class="h">
|
|
<view class="l">订单编号:{{item.orderSn}}</view>
|
|
<view class="r">{{item.orderStatusText}}</view>
|
|
</view>
|
|
<view class="goods" wx:for="{{item.goodsList}}" wx:key="id" wx:for-item="gitem">
|
|
<view class="img">
|
|
<image src="{{gitem.picUrl}}"></image>
|
|
</view>
|
|
<view class="info">
|
|
<text class="name">{{gitem.goodsName}}</text>
|
|
</view>
|
|
<view class="status"></view>
|
|
</view>
|
|
<view class="b">
|
|
<view class="l price">实付:¥{{item.actualPrice}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view> |