微信小店联盟带货小程序

list.wxml 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!--pages/order/list.wxml-->
  2. <view class="container">
  3. <!-- 订单状态标签栏 -->
  4. <view class="tab-bar">
  5. <view class="tab-item {{currentTab === 'all' ? 'active' : ''}}" bindtap="switchTab" data-type="all">
  6. <text>全部</text>
  7. </view>
  8. <view class="tab-item {{currentTab === 'pending' ? 'active' : ''}}" bindtap="switchTab" data-type="pending">
  9. <text>待结算</text>
  10. </view>
  11. <view class="tab-item {{currentTab === 'settled' ? 'active' : ''}}" bindtap="switchTab" data-type="settled">
  12. <text>已结算</text>
  13. </view>
  14. <view class="tab-item {{currentTab === 'invalid' ? 'active' : ''}}" bindtap="switchTab" data-type="invalid">
  15. <text>无效</text>
  16. </view>
  17. </view>
  18. <!-- 订单列表 -->
  19. <scroll-view class="order-list" scroll-y="true" bindscrolltolower="loadMore" enhanced="true" show-scrollbar="false">
  20. <view class="order-item" wx:for="{{orderList}}" wx:key="id">
  21. <!-- 订单头部 -->
  22. <view class="order-header">
  23. <text class="order-time">{{item.createTime}}</text>
  24. <text class="order-status {{item.status}}">{{item.statusText}}</text>
  25. </view>
  26. <!-- 商品信息 -->
  27. <view class="goods-list">
  28. <view class="goods-item" bindtap="navigateToGoods" data-id="{{item.goods.id}}">
  29. <image class="goods-image" src="{{item.goods.image}}" mode="aspectFill" lazy-load></image>
  30. <view class="goods-info">
  31. <view class="goods-name">{{item.goods.name}}</view>
  32. <view class="goods-price-count">
  33. <text class="goods-price">¥{{item.goods.price}}</text>
  34. <text class="goods-count">x{{item.goods.count}}</text>
  35. </view>
  36. </view>
  37. </view>
  38. </view>
  39. <!-- 订单底部 -->
  40. <view class="order-footer">
  41. <view class="commission-info">
  42. <text class="label">预估佣金</text>
  43. <text class="commission">¥{{item.commission}}</text>
  44. <text class="rate">{{item.commissionRate}}%</text>
  45. </view>
  46. <view class="settlement-info" wx:if="{{item.status === 'settled'}}">
  47. <text class="label">结算时间</text>
  48. <text>{{item.settlementTime}}</text>
  49. </view>
  50. <view class="invalid-reason" wx:if="{{item.status === 'invalid'}}">
  51. <text class="label">无效原因</text>
  52. <text>{{item.invalidReason}}</text>
  53. </view>
  54. </view>
  55. </view>
  56. <!-- 加载更多 -->
  57. <view class="loading" wx:if="{{loading}}">
  58. <text>加载中...</text>
  59. </view>
  60. <view class="no-more" wx:if="{{!hasMore && orderList.length > 0}}">
  61. <text>没有更多订单了</text>
  62. </view>
  63. <!-- 空状态 -->
  64. <view class="empty" wx:if="{{!loading && orderList.length === 0}}">
  65. <image class="empty-icon" src="/static/images/empty-order.png" mode="aspectFit"></image>
  66. <text>暂无推广订单~\n快去推广商品赚取佣金吧</text>
  67. </view>
  68. </scroll-view>
  69. </view>