mymoneydetail.vue 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. <template>
  2. <view class="mymoneydetail">
  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="top">
  12. <view class="title">{{item.title}}</view>
  13. <view style="text-align: right;">
  14. <text class="text green" v-if="item.type == 1" ><text>+</text>{{item.money}}元</text>
  15. <text class="text red" v-if="item.type == 2" ><text>-</text>{{item.money}}元</text>
  16. </view>
  17. </view>
  18. <!-- <view v-if="item.classify === 2" style="margin-bottom: 8upx"> 返佣类型:直属返佣</view> -->
  19. <!-- <view v-if="item.classify === 3" style="margin-bottom: 8upx"> 返佣类型:非直属支付</view> -->
  20. <view style="margin-top: 20rpx">{{item.content}}</view>
  21. <view style="margin-top: 20rpx"> 创建时间:{{item.createTime}}</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 userId = this.$queue.getData('userId');
  68. let data = {
  69. page: this.page,
  70. limit: this.limit
  71. }
  72. this.$Request.getT('/app/userMoney/balanceDetailed',data ).then(res => {
  73. if (res.code === 0) {
  74. if (this.page === 1) {
  75. this.list = res.data.list;
  76. } else {
  77. this.list = [...this.list, ...res.data.list];
  78. }
  79. }
  80. uni.stopPullDownRefresh();
  81. uni.hideLoading();
  82. });
  83. }
  84. },
  85. onReachBottom: function() {
  86. this.page = this.page + 1;
  87. this.getList();
  88. },
  89. onPullDownRefresh: function() {
  90. this.page = 1;
  91. this.getList();
  92. }
  93. }
  94. </script>
  95. <style lang="scss">
  96. .mymoneydetail {
  97. background: #F5F6F6;
  98. padding: 20rpx 32rpx;
  99. min-height: 100vh;
  100. .item {
  101. background: #FFFFFF;
  102. padding: 0 28rpx 28rpx;
  103. font-size: 28rpx;
  104. color: #AAAAAA;
  105. border-radius: 32rpx 32rpx 32rpx 32rpx;
  106. margin-bottom: 20rpx;
  107. .top{
  108. display: flex;
  109. justify-content: space-between;
  110. padding: 28rpx 0;
  111. border-bottom: 2rpx solid #F0F0F0;
  112. .title{
  113. font-weight: bold;
  114. font-size: 32rpx;
  115. color: #222222;
  116. }
  117. .text{
  118. font-weight: bold;
  119. font-size: 32rpx;
  120. }
  121. .text.green{
  122. color: #28C445;
  123. }
  124. .text.red{
  125. color: #F24E4E;
  126. }
  127. }
  128. }
  129. }
  130. .tui-tab-item-title {
  131. // color: #ffffff;
  132. font-size: 30rpx;
  133. height: 80rpx;
  134. line-height: 80rpx;
  135. flex-wrap: nowrap;
  136. white-space: nowrap;
  137. }
  138. .tui-tab-item-title-active {
  139. border-bottom: 1px solid #557EFD;
  140. color: #557EFD;
  141. font-size: 32upx;
  142. font-weight: bold;
  143. border-bottom-width: 6upx;
  144. text-align: center;
  145. }
  146. </style>