mymoneydetail.vue 3.5 KB

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