123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <nav type="back" background-color="{{activeColor}}" title="我的订单" frontColor="#ffffff" />
- <van-tabs active="{{ active }}" bind:change="onChange" color="{{activeColor}}">
- <van-tab title="全部">
- <scroll-view style="height:calc(100vh - {{stickytop+ 48}}px);" scroll-y="{{true}}">
- <block wx:if="{{!goodsList}}">
- <van-empty description="暂无订单" />
- </block>
- <block wx:for="{{goodsList}}" wx:key="index">
- <view class="box" data-item="{{item}}" bindtap="details">
- <view class="name">
- <view>{{item.store.storeName}}</view>
- <block wx:if="{{item.status=='100'}}">
- <view>待付款</view>
- </block>
- <block wx:if="{{item.status=='200'}}">
- <view>待发货</view>
- </block>
- <block wx:if="{{item.status=='300'}}">
- <view>待收货</view>
- </block>
- <block wx:if="{{item.status=='400'}}">
- <view>已完成</view>
- </block>
- <block wx:if="{{item.status=='500'}}">
- <view>退款申请中</view>
- </block>
- <block wx:if="{{item.status=='601'}}">
- <view>退款审核通过</view>
- </block>
- <block wx:if="{{item.status=='602'}}">
- <view>退款审核被驳回</view>
- </block>
- <block wx:if="{{item.status=='700'}}">
- <view>退款成功</view>
- </block>
- <block wx:if="{{item.status=='800'}}">
- <view>已完成</view>
- </block>
- </view>
- <view class="details">
- <image class="image" src="{{item.store.cover}}" />
- <view class="txt">
- <view class="">下单时间:{{item.orderTime}}</view>
- <view class="totalPrice" style="color: {{activeColor}};">总金额:¥{{item.totalPrice}}</view>
- </view>
- </view>
- </view>
- </block>
- </scroll-view>
- </van-tab>
- <van-tab title="待付款">
- <block wx:if="{{!goodsList}}">
- <van-empty description="暂无订单" />
- </block>
- <block wx:for="{{goodsList}}" wx:key="index">
- <view class="box" data-item="{{item}}" bindtap="details">
- <view class="name">
- <view>{{item.store.storeName}}</view>
- <view>待付款</view>
- </view>
- <view class="details">
- <image class="image" src="{{item.store.cover}}" />
- <view class="txt">
- <view class="">下单时间:{{item.orderTime}}</view>
- <view class="totalPrice">总金额:¥{{item.totalPrice}}</view>
- </view>
- </view>
- </view>
- </block>
- </van-tab>
- <van-tab title="待收货">
- <block wx:if="{{!goodsList}}">
- <van-empty description="暂无订单" />
- </block>
- <block wx:for="{{goodsList}}" wx:key="index">
- <view class="box" data-item="{{item}}" bindtap="details">
- <view class="name">
- <view>{{item.store.storeName}}</view>
- <block wx:if="{{item.status=='200'}}">
- <view>待发货</view>
- </block>
- <block wx:if="{{item.status=='300'}}">
- <view>待收货</view>
- </block>
- </view>
- <view class="details">
- <image class="image" src="{{item.store.cover}}" />
- <view class="txt">
- <view class="">下单时间:{{item.orderTime}}</view>
- <view class="totalPrice">总金额:¥{{item.totalPrice}}</view>
- </view>
- </view>
- </view>
- </block>
- </van-tab>
- <van-tab title="已完成">
- <block wx:if="{{!goodsList}}">
- <van-empty description="暂无订单" />
- </block>
- <block wx:for="{{goodsList}}" wx:key="index">
- <view class="box" data-item="{{item}}" bindtap="details">
- <view class="name">
- <view>{{item.store.storeName}}</view>
- <block wx:if="{{item.status=='400'}}">
- <view>已完成</view>
- </block>
- <block wx:if="{{item.status=='500'}}">
- <view>退款申请中</view>
- </block>
- <block wx:if="{{item.status=='601'}}">
- <view>退款审核通过</view>
- </block>
- <block wx:if="{{item.status=='602'}}">
- <view>退款审核被驳回</view>
- </block>
- <block wx:if="{{item.status=='700'}}">
- <view>退款成功</view>
- </block>
- <block wx:if="{{item.status=='800'}}">
- <view>已完成</view>
- </block>
- </view>
- <view class="details">
- <image class="image" src="{{item.store.cover}}" />
- <view class="txt">
- <view class="">下单时间:{{item.orderTime}}</view>
- <view class="totalPrice">总金额:¥{{item.totalPrice}}</view>
- </view>
- </view>
- </view>
- </block>
- </van-tab>
- </van-tabs>
|