usermoneydetail.vue 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view>
  3. <view style="text-align: left;padding-bottom: 10rpx;">
  4. <view v-for="(item, index) in list" :key="index" class="item">
  5. <view>
  6. <!-- <view style="margin-bottom: 8upx;text-align: right;">
  7. <text v-if="item.type == 1" style="margin-bottom: 8upx;color: #ecd4b4">充值</text>
  8. <text v-if="item.type == 2" style="margin-bottom: 8upx;color: #ecd4b4">提现</text>
  9. </view> -->
  10. <view style="color: #999999;font-size: 28upx;">
  11. <view style="margin-bottom: 8upx">{{item.title}}</view>
  12. <!-- <view v-if="item.classify === 2" style="margin-bottom: 8upx"> 返佣类型:直属返佣</view> -->
  13. <!-- <view v-if="item.classify === 3" style="margin-bottom: 8upx"> 返佣类型:非直属支付</view> -->
  14. <view style="margin-bottom: 8upx">{{item.content}}</view>
  15. <view style="margin-bottom: 8upx"> 创建时间:{{item.createTime}}</view>
  16. <view style="margin-bottom: 8upx;text-align: right;">
  17. <text v-if="item.type == 1" class="text-olive"
  18. style="font-size: 32upx;font-weight: 600"><text
  19. class="text-olive">+</text>{{item.money}}元</text>
  20. <text v-if="item.type == 2" class="text-red" style="font-size: 32upx;font-weight: 600"><text
  21. class="text-red">-</text>{{item.money}}元</text>
  22. </view>
  23. </view>
  24. </view>
  25. </view>
  26. <!-- 加载更多提示 -->
  27. <!-- <view class="s-col is-col-24" v-if="list.length > 0">
  28. <load-more :loadingType="loadingType" :contentText="contentText"></load-more>
  29. </view> -->
  30. <!-- 加载更多提示 -->
  31. <!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
  32. <empty v-if="list.length == 0" content="暂无明细"></empty>
  33. </view>
  34. </view>
  35. </template>
  36. <script>
  37. import empty from '@/components/empty.vue'
  38. export default {
  39. components: {
  40. empty
  41. },
  42. data() {
  43. return {
  44. list: [],
  45. page: 1,
  46. limit: 10,
  47. tabIndex: 1,
  48. classIndex: 0,
  49. checkReZhiShu: '否',
  50. checkReTuanZhang: '否',
  51. checkReFeiZhiShu: '否',
  52. scrollTop: false,
  53. contentText: {
  54. contentdown: '上拉显示更多',
  55. contentrefresh: '正在加载...',
  56. contentnomore: '没有更多数据了'
  57. }
  58. }
  59. },
  60. onLoad(d) {
  61. if (d.classIndex) {
  62. this.classIndex = d.classIndex;
  63. }
  64. this.$queue.showLoading("加载中...");
  65. this.getList();
  66. },
  67. onPageScroll: function(e) {
  68. this.scrollTop = e.scrollTop > 200;
  69. },
  70. methods: {
  71. getList() {
  72. let userId = this.$queue.getData('userId');
  73. let data = {
  74. page: this.page,
  75. limit: this.limit,
  76. classify: this.classIndex
  77. }
  78. this.$Request.getT('/app/userMoney/queryUserMoneyDetails', data).then(res => {
  79. if (res.code === 0) {
  80. if (this.page === 1) {
  81. this.list = res.data.records;
  82. } else {
  83. this.list = [...this.list, ...res.data.records];
  84. }
  85. }
  86. uni.stopPullDownRefresh();
  87. uni.hideLoading();
  88. });
  89. }
  90. },
  91. onReachBottom: function() {
  92. this.page = this.page + 1;
  93. this.getList();
  94. },
  95. onPullDownRefresh: function() {
  96. this.page = 1;
  97. this.getList();
  98. }
  99. }
  100. </script>
  101. <style lang="less">
  102. page {
  103. background: #FFFFFF;
  104. }
  105. .tui-tab-item-title {
  106. // color: #ffffff;
  107. font-size: 30rpx;
  108. height: 80rpx;
  109. line-height: 80rpx;
  110. flex-wrap: nowrap;
  111. white-space: nowrap;
  112. }
  113. .tui-tab-item-title-active {
  114. border-bottom: 1px solid #557EFD;
  115. color: #557EFD;
  116. font-size: 32upx;
  117. font-weight: bold;
  118. border-bottom-width: 6upx;
  119. text-align: center;
  120. }
  121. .item {
  122. background: #FFFFFF;
  123. padding: 32rpx;
  124. margin: 32rpx;
  125. font-size: 28rpx;
  126. box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
  127. border-radius: 16upx;
  128. }
  129. </style>