cashList.vue 3.6 KB

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