commisionlog.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. <template>
  2. <view class="container">
  3. <view class="tui-records__list">
  4. <tui-list-cell :hover="false" v-for="(item,subIndex) in commisionLog" :key="subIndex">
  5. <view class="tui-records__item">
  6. <image class="tui-icon" src="/static/images/mall/wallet/icon_income_3x.png"></image>
  7. <view>
  8. <view class="tui-title">分销佣金<text> 单号:{{item.order_num_alias}}</text></view>
  9. <view class="tui-desc">下线消费:{{item.username}}</view>
  10. </view>
  11. <view class="tui-right__box">
  12. <view class="tui-amount">
  13. +{{item.income}} 元
  14. </view>
  15. <view class="tui-desc">时间:{{ item.pay_time }}</view>
  16. </view>
  17. </view>
  18. </tui-list-cell>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. commisionLog: []
  27. }
  28. },
  29. onLoad() {
  30. this.getcommisionlog();
  31. },
  32. methods: {
  33. getcommisionlog() {
  34. const _this = this
  35. _this.$request.get('Incomelog.index',{ptype:1}).then(res => {
  36. if (res.errno == 0) {
  37. _this.commisionLog = res.data
  38. } else {
  39. _this.commisionLog = []
  40. }
  41. })
  42. }
  43. },
  44. /**
  45. * 页面相关事件处理函数--监听用户下拉动作
  46. */
  47. onPullDownRefresh: function() {
  48. setTimeout(() => {
  49. uni.stopPullDownRefresh()
  50. }, 200);
  51. },
  52. onReachBottom() {}
  53. }
  54. </script>
  55. <style>
  56. .container {
  57. padding-bottom: env(safe-area-inset-bottom);
  58. }
  59. .tui-records__list {
  60. margin-top: 20rpx;
  61. }
  62. .tui-records__item {
  63. width: 100%;
  64. display: flex;
  65. align-items: center;
  66. }
  67. .tui-icon {
  68. width: 72rpx;
  69. height: 72rpx;
  70. margin-right: 20rpx;
  71. }
  72. .tui-title {
  73. font-size: 24rpx;
  74. font-weight: 600;
  75. color: #333333;
  76. }
  77. .tui-title text {
  78. font-size: 20rpx;
  79. font-weight: 400;
  80. color: #333333;
  81. }
  82. .tui-desc {
  83. font-size: 24rpx;
  84. font-weight: 400;
  85. color: #888888;
  86. padding-top: 12rpx;
  87. }
  88. .tui-right__box {
  89. margin-left: auto;
  90. text-align: right;
  91. }
  92. .tui-amount {
  93. font-size: 30rpx;
  94. font-weight: 400;
  95. color: #EB0909;
  96. }
  97. .tui-expend {
  98. color: #19be6b !important;
  99. }
  100. </style>