txjl.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view class="">
  3. <empty v-if="loaded === true && list.length === 0"></empty>
  4. <view class="order-item flex" v-for="(item, index) in list" :key="index">
  5. <view class="title-box">
  6. <view class="title">
  7. <text>姓名:{{ item.real_name }}</text>
  8. </view>
  9. <view class="title">
  10. <text>提现账户:{{ item.bank_code }}</text>
  11. </view>
  12. <view class="title">
  13. <text>提现金额:{{ item.extract_price }}</text>
  14. </view>
  15. <view class="time">
  16. 提现手续费:{{item.commission}}
  17. </view>
  18. <view class="time">
  19. <text>{{ item.add_time }}</text>
  20. </view>
  21. </view>
  22. <view class="money">
  23. <text>{{item.status == 0? "待审核": (item.status == 1 ? "已通过": "已拒绝")}}</text>
  24. </view>
  25. </view>
  26. <uni-load-more :status="loadingType" v-if="!(loaded === true && list.length === 0)"></uni-load-more>
  27. </view>
  28. </template>
  29. <script>
  30. import empty from '@/components/empty';
  31. import { awdList } from '@/api/user.js';
  32. export default {
  33. components: {
  34. empty
  35. },
  36. data() {
  37. return {
  38. list: '',
  39. page: 1,
  40. limit: 10,
  41. loadingType: 'more',
  42. loaded: false
  43. }
  44. },
  45. onLoad() {
  46. this.getList()
  47. },
  48. onReachBottom() {
  49. this.getList()
  50. },
  51. methods: {
  52. getList() {
  53. if(this.loadingType == 'noMore' ||this.loadingType == 'loading' ) return;
  54. this.loadingType = 'loading'
  55. awdList({
  56. page: this.page,
  57. limit: this.limit
  58. }).then(res => {
  59. this.list = res.data.list
  60. this.page++
  61. if(res.data.list.length == this.limit ) {
  62. this.loadingType = 'more'
  63. }else {
  64. this.loadingType = 'noMore'
  65. }
  66. this.loaded = true
  67. })
  68. }
  69. }
  70. }
  71. </script>
  72. <style lang="scss" scoped>
  73. .order-item:last-child {
  74. // margin-bottom: 60rpx;
  75. border-bottom: none;
  76. }
  77. .order-item {
  78. padding: 20rpx 30rpx;
  79. line-height: 1.5;
  80. background-color: #fff;
  81. border-bottom: 1px solid #eee;
  82. .title-box {
  83. .title {
  84. font-size: $font-lg;
  85. color: $font-color-base;
  86. }
  87. .time {
  88. font-size: $font-base;
  89. color: $font-color-light;
  90. }
  91. }
  92. .money {
  93. color: #fd5b23;
  94. font-size: $font-lg;
  95. text-align: right;
  96. .status {
  97. color: $font-color-light;
  98. }
  99. }
  100. }
  101. </style>