index.wxml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <wxs src="../../../utils/filter.wxs" module="filters" />
  2. <view class="container">
  3. <view class="categoryBox">
  4. <view class="category {{currentIndex==item.id?'currentClass':''}}" wx:for="{{categoryList}}" wx:key="id"
  5. data-index="{{item.id}}" data-title='{{item.title}}' bindtap="setClass">
  6. {{item.title}}
  7. </view>
  8. </view>
  9. <scroll-view class="orderList" scroll-y="true" enhanced show-scrollbar="{{false}}" bindscrolltolower='loadMore'>
  10. <view class="tips" wx:if="{{currentIndex=='2'}}">温馨提示:退款的订单不计入收益系统
  11. <!-- <view class="close">×</view> -->
  12. </view>
  13. <view class="order" wx:for="{{list}}" wx:key="index">
  14. <view class="above">
  15. <view class="userInfo">
  16. <image src="{{item.avatar}}" class="avatar" />
  17. <view>
  18. <view class="nickName">{{item.name}}</view>
  19. <view class="addTime">
  20. 加入时间 :{{filters.formatDate(item.joinTime,1)}}
  21. </view>
  22. </view>
  23. </view>
  24. <view class="state">{{item.status==1?'已付款':item.status==2?'退款':'其他'}}</view>
  25. </view>
  26. <view class="below">
  27. <view class="row">
  28. <view>购买类型:{{item.title}} </view>
  29. <view>付款金额 <text class="money">{{filters.twoDecimal(item.amount)}}元</text>
  30. </view>
  31. </view>
  32. <view class="row" style="font-size: 22rpx;">
  33. <view>
  34. {{filters.formatDate(item.gmtCreated,1)}}付款
  35. </view>
  36. <view wx:if="{{item.status==2}}">
  37. {{filters.formatDate(item.gmtModified,1)}}退款
  38. </view>
  39. </view>
  40. </view>
  41. </view>
  42. </scroll-view>
  43. <emptyBg wx:if="{{nullList}}" message="暂无订单记录"></emptyBg>
  44. </view>