record.vue 2.8 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 class="flex align-center" style="margin-bottom: 8upx">
  8. {{item.title}}
  9. </view> -->
  10. <view style="margin-bottom: 8upx">申诉内容:{{item.reason}}</view>
  11. <view style="margin-bottom: 8upx"> 创建时间:{{item.creatTime}}</view>
  12. <!-- <view style="margin-bottom: 8upx;text-align: right;">
  13. <text v-if="item.type == 1" class="text-olive"
  14. style="font-size: 32upx;font-weight: 600"><text
  15. class="text-olive">+</text>{{item.money}}元</text>
  16. <text v-if="item.type == 2" class="text-red" style="font-size: 32upx;font-weight: 600"><text
  17. class="text-red">-</text>{{item.money}}元</text>
  18. </view> -->
  19. </view>
  20. </view>
  21. </view>
  22. <empty v-if="list.length == 0" content="暂无明细"></empty>
  23. </view>
  24. </view>
  25. </template>
  26. <script>
  27. import empty from '@/components/empty.vue'
  28. export default {
  29. components: {
  30. empty
  31. },
  32. data() {
  33. return {
  34. list: [],
  35. page: 1,
  36. limit: 10,
  37. tabIndex: 1,
  38. checkReZhiShu: '否',
  39. checkReTuanZhang: '否',
  40. checkReFeiZhiShu: '否',
  41. scrollTop: false,
  42. contentText: {
  43. contentdown: '上拉显示更多',
  44. contentrefresh: '正在加载...',
  45. contentnomore: '没有更多数据了'
  46. }
  47. }
  48. },
  49. onLoad() {
  50. this.$queue.showLoading("加载中...");
  51. this.getList();
  52. },
  53. onPageScroll: function(e) {
  54. this.scrollTop = e.scrollTop > 200;
  55. },
  56. methods: {
  57. getList() {
  58. let userId = this.$queue.getData('userId');
  59. let data = {
  60. page: this.page,
  61. limit: this.limit,
  62. userType: 1,
  63. classify: 3
  64. }
  65. this.$Request.getT('/app/appeal//getAppeal', data).then(res => {
  66. if (res.code === 0) {
  67. if (this.page === 1) {
  68. this.list = res.data.list;
  69. } else {
  70. this.list = [...this.list, ...res.data.list];
  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>