moneydetail.vue 3.7 KB

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