my-order.wxml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <import src="../../public/page/order-item.wxml" />
  2. <!-- <scroll-view scroll-x="{{bgScrollView.scroll}}" scroll-left="{{bgScrollView.left}}" scroll-with-animation class="across-scroll-view"> -->
  3. <view class="bg-view" animation="{{bgAnimation}}">
  4. <scroll-view scroll-y="{{scroll}}" class="bg-scroll-view" style="background-color:{{(data[0].length == 0 && !isLoading) ? 'white' : '#F5F5F5'}};">
  5. <view style="width:100%;height:124rpx;"></view>
  6. <template is="order-item" wx:for="{{data[0]}}" wx:key="{{index}}" data="{{...item, id: index}}"/>
  7. <view class="no-data" wx:if="{{data[0].length == 0 && !isLoading}}">
  8. <image src="../../../../icon/public/order_empty.png"></image>
  9. <text>暂无订单</text>
  10. </view>
  11. </scroll-view>
  12. <scroll-view scroll-y="{{scroll}}" class="bg-scroll-view" style="background-color:{{(data[1].length == 0 && !isLoading) ? 'white' : '#F5F5F5'}};">
  13. <view style="width:100%;height:124rpx;"></view>
  14. <template is="order-item" wx:for="{{data[1]}}" wx:key="{{index}}" data="{{...item, id: index}}"/>
  15. <view class="no-data" wx:if="{{data[1].length == 0 && !isLoading}}">
  16. <image src="../../../../icon/public/order_empty.png"></image>
  17. <text>暂无待付款订单</text>
  18. </view>
  19. </scroll-view>
  20. <scroll-view scroll-y="{{scroll}}" class="bg-scroll-view" style="background-color:{{(data[2].length == 0 && !isLoading) ? 'white' : '#F5F5F5'}};">
  21. <view style="width:100%;height:124rpx;"></view>
  22. <template is="order-item" wx:for="{{data[2]}}" wx:key="{{index}}" data="{{...item, id: index}}"/>
  23. <view class="no-data" wx:if="{{data[2].length == 0 && !isLoading}}">
  24. <image src="../../../../icon/public/order_empty.png"></image>
  25. <text>暂无已完成订单</text>
  26. </view>
  27. </scroll-view>
  28. </view>
  29. <!-- </scroll-view> -->
  30. <view class="tab-view">
  31. <view>
  32. <view class="{{tab.id == '1' ? 'tab-text-s' : 'tab-text-n'}}" bindtap="tabChoose" id="1">全部</view>
  33. <view class="{{tab.id == '2' ? 'tab-text-s' : 'tab-text-n'}}" bindtap="tabChoose" id="2">待付款</view>
  34. <view class="{{tab.id == '3' ? 'tab-text-s' : 'tab-text-n'}}" bindtap="tabChoose" id="3">已完成</view>
  35. </view>
  36. <view>
  37. <view animation="{{tab.animation}}">
  38. <view></view>
  39. </view>
  40. </view>
  41. </view>
  42. <template is="order-details-view" data="{{...detailsView, discountData: discount.data, chose: discount.chose}}" />