cashList.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <template>
  2. <view style="text-align: left;padding-bottom: 10rpx;">
  3. <view v-for="(item, index) in list" :key="index" class="item">
  4. <view>
  5. <view style="margin-bottom: 8upx;display: flex;justify-content: space-between;">
  6. <text style="margin-bottom: 8upx;color: #557EFD" v-if="item.state==1"> 提现成功</text>
  7. <text style="margin-bottom: 8upx;color: #557EFD" v-if="item.state==0"> 提现中</text>
  8. <text style="margin-bottom: 8upx;color: #e10a07" v-if="item.state==-1"> 提现失败</text>
  9. <!-- <view style="margin-bottom: 8upx;text-align: right;"> -->
  10. <text style="color: #ecd4b4;font-size: 32upx;font-weight: 600"> ¥{{item.money}}</text>
  11. <!-- </view> -->
  12. </view>
  13. <view style="color: #999999;font-size: 28upx;">
  14. <!-- <view style="margin-bottom: 8upx" v-if="item.classify != 2"> 支付宝账号:{{item.zhifubao}}</view>
  15. <view style="margin-bottom: 8upx" v-if="item.classify != 2"> 支付宝姓名:{{item.zhifubaoName}}</view> -->
  16. <view style="margin-bottom: 8upx" v-if="item.classify == 2"> 用户名:{{item.bankCardUserName}}</view>
  17. <view style="margin-bottom: 8upx" v-if="item.classify == 2"> 银行名称:{{item.bankCardName}}</view>
  18. <view style="margin-bottom: 8upx" v-if="item.classify == 2"> 银行卡号:{{item.bankCard}}</view>
  19. <view style="margin-bottom: 8upx" v-if="item.classify == 2"> 开户行:{{item.bankCardAddress}}</view>
  20. <view style="margin-bottom: 8upx" v-if="item.classify == 3"> 微信提现</view>
  21. <view style="margin-bottom: 8upx"> 提现时间:{{item.createAt}}</view>
  22. <view style="margin-bottom: 8upx" v-if="item.state==1">成功时间 {{item.outAt}}</view>
  23. <view style="margin-bottom: 8upx;color: #e10a07" v-if="item.state==-1">{{item.refund}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. <empty v-if="list.length === 0" content="暂无提现记录" show="false"></empty>
  28. </view>
  29. </template>
  30. <script>
  31. import empty from '@/components/empty.vue'
  32. export default {
  33. components: {
  34. empty
  35. },
  36. data() {
  37. return {
  38. list: [],
  39. page: 1,
  40. limit: 10
  41. }
  42. },
  43. onLoad: function(e) {
  44. this.$queue.showLoading("加载中...");
  45. this.getMoney();
  46. },
  47. methods: {
  48. getMoney() {
  49. let that = this;
  50. let token = that.$queue.getData("token");
  51. let userId = that.$queue.getData("userId");
  52. if (token) {
  53. //可以提现金额查询预估收入查询
  54. let data = {
  55. page: that.page,
  56. limit: that.limit
  57. }
  58. that.$Request.getT("/app/cash/selectPayDetails", data).then(res => {
  59. if (res.code === 0 && res.data) {
  60. if (this.page == 1) {
  61. that.list = res.data.list;
  62. } else {
  63. that.list = [...that.list, ...res.data.list]
  64. }
  65. }
  66. uni.stopPullDownRefresh();
  67. uni.hideLoading();
  68. });
  69. }
  70. },
  71. },
  72. onReachBottom: function() {
  73. this.page = this.page + 1;
  74. this.getMoney();
  75. },
  76. onPullDownRefresh: function() {
  77. this.page = 1;
  78. this.getMoney();
  79. }
  80. }
  81. </script>
  82. <style lang='scss'>
  83. @import "../../static/css/index.css";
  84. page{
  85. background: #F5F5F5;
  86. }
  87. .item {
  88. background: #FFFFFF;
  89. padding: 32rpx;
  90. margin: 32rpx;
  91. font-size: 28rpx;
  92. /* box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1); */
  93. border-radius: 16upx;
  94. }
  95. </style>