teammoneydetail.vue 3.0 KB

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