xinyongfendetail.vue 3.1 KB

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