mymoneydetail.vue 3.5 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" class="text-olive" style="font-size: 32upx;font-weight: 600;color: #28C445;"><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. }
  70. this.$Request.getT('/app/userMoney/balanceDetailed',data ).then(res => {
  71. if (res.code === 0) {
  72. if (this.page === 1) {
  73. this.list = res.data.list;
  74. } else {
  75. this.list = [...this.list, ...res.data.list];
  76. }
  77. }
  78. uni.stopPullDownRefresh();
  79. uni.hideLoading();
  80. });
  81. }
  82. },
  83. onReachBottom: function() {
  84. this.page = this.page + 1;
  85. this.getList();
  86. },
  87. onPullDownRefresh: function() {
  88. this.page = 1;
  89. this.getList();
  90. }
  91. }
  92. </script>
  93. <style lang="less">
  94. page {
  95. background: #F5F6F6;
  96. padding: 20rpx 32rpx ;
  97. min-height: 100vh;
  98. }
  99. .tui-tab-item-title {
  100. // color: #ffffff;
  101. font-size: 30rpx;
  102. height: 80rpx;
  103. line-height: 80rpx;
  104. flex-wrap: nowrap;
  105. white-space: nowrap;
  106. }
  107. .tui-tab-item-title-active {
  108. border-bottom: 1px solid #557EFD;
  109. color: #557EFD;
  110. font-size: 32upx;
  111. font-weight: bold;
  112. border-bottom-width: 6upx;
  113. text-align: center;
  114. }
  115. .item {
  116. background: #FFFFFF;
  117. border-radius: 32rpx 32rpx 32rpx 32rpx;
  118. margin-bottom: 20rpx;
  119. padding: 20rpx 28rpx;
  120. font-size: 28rpx;
  121. color: #AAAAAA;
  122. line-height: 50rpx;
  123. }
  124. </style>