You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

137 lines
3.0 KiB

  1. <template>
  2. <view class="app-container">
  3. <u-gap height="10rpx" bgColor="#F7F7F7"></u-gap>
  4. <view class="his-content">
  5. <view class="his-item u-border-bottom" v-if="!withdrawList.length">暂无数据</view>
  6. <view class="his-item u-border-bottom" v-for="(item,index) in withdrawList" :key="item.id">
  7. <view class="hit-left">
  8. <view class="his-name">
  9. 流水号: {{item.out_biz_no}}
  10. </view>
  11. <view class="his-state" v-if="item.status==0">
  12. 审核状态审核中
  13. </view>
  14. <view class="his-state" v-if="item.status==1">
  15. 审核状态<text style="color:green">提现成功</text>
  16. </view>
  17. <view class="his-state" v-if="item.status==2">
  18. 审核状态<text style="color:red">审核不通过原因{{item.review_remark}})</text>
  19. </view>
  20. <view class="his-state">
  21. 提现金额{{item.amount}}
  22. </view>
  23. <view class="his-state">
  24. 扣手续费{{item.fee}}
  25. </view>
  26. <view class="his-state">
  27. 实际到账{{item.receive_amount}}
  28. </view>
  29. <view class="his-state">
  30. 提现账户{{item.alipay_account}}
  31. </view>
  32. <view class="his-time">
  33. 申请时间{{item.created_at}}
  34. </view>
  35. <view class="his-time">
  36. 审核时间{{item.reviewed_at}}
  37. </view>
  38. </view>
  39. <!-- <view class="hit-right">
  40. <view class="amount">提现金额{{item.amount}}</view>
  41. <view class="fee">手续费{{item.fee}}</view>
  42. <view class="receive-amount">实到账{{item.receive_amount}}</view>
  43. </view> -->
  44. </view>
  45. </view>
  46. <view class="load-more" @click="getWithdrawList">{{ hasMore ? '加载更多数据...' : '已加载完毕' }}</view>
  47. </view>
  48. </template>
  49. <script>
  50. import {
  51. agentWithdrawList
  52. } from '../../common/api.js'
  53. export default {
  54. data() {
  55. return {
  56. withdrawList: [],
  57. hasMore: true,
  58. page: 0,
  59. };
  60. },
  61. onLoad() {
  62. this.getWithdrawList()
  63. },
  64. onReachBottom() {
  65. this.getWithdrawList()
  66. },
  67. methods: {
  68. getWithdrawList() {
  69. if (!this.hasMore) {
  70. return
  71. }
  72. this.page++
  73. agentWithdrawList({
  74. page: this.page,
  75. page_size: 15,
  76. }).then(data => {
  77. this.withdrawList = [...this.withdrawList, ...data.list]
  78. this.hasMore = data.has_more
  79. })
  80. }
  81. }
  82. }
  83. </script>
  84. <style lang="scss">
  85. .his-content {
  86. padding: 0 30rpx;
  87. .his-item {
  88. display: flex;
  89. justify-content: space-between;
  90. padding: 30rpx 0 30rpx;
  91. .hit-left {
  92. .his-name {
  93. color: #454545;
  94. font-size: 12px;
  95. line-height: 1.8;
  96. font-weight: bold;
  97. }
  98. .his-state {
  99. color: #666;
  100. font-size: 12px;
  101. line-height: 1.8;
  102. }
  103. .his-time {
  104. color: #999;
  105. font-size: 12px;
  106. line-height: 1.8;
  107. }
  108. }
  109. .hit-right {
  110. height: 130rpx;
  111. line-height: 130rpx;
  112. font-size: 14px;
  113. color: #454545;
  114. font-weight: bold;
  115. }
  116. }
  117. .u-border-bottom,
  118. .u-border-top {
  119. border-color: #eee !important;
  120. }
  121. }
  122. .load-more {
  123. text-align: center;
  124. font-size: 14px;
  125. }
  126. </style>