index.wxml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <wxs src="../../../utils/filter.wxs" module="filters" />
  2. <view class="container">
  3. <view class="statistics">
  4. <view class="col">
  5. <view class="row">
  6. <view class="label">累计收益(元)</view>
  7. <view class="money">{{filters.twoDecimal(allIncome.income)}}</view>
  8. </view>
  9. <view class="row">
  10. <view class="label">累计销售(元)</view>
  11. <view class="money">{{filters.twoDecimal(allIncome.saleCount)}}</view>
  12. </view>
  13. <view class="row">
  14. <view class="label">累计订单(笔)</view>
  15. <view class="money">{{allIncome.orderCount}}</view>
  16. </view>
  17. </view>
  18. <view class="col col2">
  19. <view class="row">
  20. <view class="label">可提现(元)</view>
  21. <view class="money">{{filters.twoDecimal(allIncome.withdraw)}}</view>
  22. </view>
  23. <view class="row">
  24. <view class="label">待结算(元)</view>
  25. <view class="money">{{filters.twoDecimal(allIncome.waitSettlement)}}</view>
  26. </view>
  27. <view class="row">
  28. <view class="label">累计邀请(人)</view>
  29. <view class="money">{{allIncome.inviteCount}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="detailsBox">
  34. <view class="title">展示明细</view>
  35. <view class="categoryBox">
  36. <view class="category {{currentIndex==item.id?'currentClass':''}}" wx:for="{{categoryList}}" wx:key="id"
  37. data-index="{{item.id}}" data-title='{{item.title}}' bindtap="setClass">
  38. {{item.title}}
  39. </view>
  40. </view>
  41. <view class="detailsList">
  42. <view class="group" wx:for="{{orderListKey}}" wx:key="index">
  43. <view class="header">
  44. <view>
  45. {{item}}
  46. </view>
  47. <view>
  48. 结余(元)
  49. </view>
  50. </view>
  51. <view class="body">
  52. <view class="row" wx:for="{{orderList[item]}}" wx:key="id" wx:for-item="row">
  53. <view class="col">{{filters.formatDate(row.gmtCreated,6)}}日</view>
  54. <view class="col">
  55. <view class="num {{row.type=='1'?'add':'reduce'}}">
  56. {{row.type=='1'?'+':'-'}}{{filters.twoDecimal(row.amount)}}</view>
  57. {{row.title}}
  58. </view>
  59. <view class="col">{{filters.twoDecimal(row.balance)}}</view>
  60. </view>
  61. </view>
  62. </view>
  63. </view>
  64. </view>
  65. <emptyBg wx:if="{{orderListKey.length==0}}" message="暂无订单" />
  66. </view>