cashList.vue 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 == 1">支付宝账号 {{ item.zhifubao }}</view>
  15. <view style="margin-bottom: 8upx" v-if="item.classify == 1">支付宝姓名 {{ item.zhifubaoName }}</view>
  16. <view style="margin-bottom: 8upx" v-if="item.classify == 2">微信二维码提现</view>
  17. <view style="margin-bottom: 8upx"> 提现时间:{{item.createAt}}</view>
  18. <view style="margin-bottom: 8upx" v-if="item.state==1">成功时间 {{item.outAt}}</view>
  19. <view style="margin-bottom: 8upx;color: #e10a07" v-if="item.state==-1">{{item.refund}}</view>
  20. </view>
  21. </view>
  22. </view>
  23. <empty v-if="list.length === 0" content="暂无提现记录" show="false"></empty>
  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. }
  38. },
  39. onLoad: function(e) {
  40. this.$queue.showLoading("加载中...");
  41. this.getMoney();
  42. },
  43. methods: {
  44. getMoney() {
  45. let that = this;
  46. let token = that.$queue.getData("token");
  47. let userId = that.$queue.getData("userId");
  48. if (token) {
  49. //可以提现金额查询预估收入查询
  50. let data = {
  51. page: that.page,
  52. limit: that.limit
  53. }
  54. that.$Request.getT("/app/cash/selectPayDetails", data).then(res => {
  55. if (res.code === 0 && res.data) {
  56. if (this.page == 1) {
  57. that.list = res.data.list;
  58. } else {
  59. that.list = [...that.list, ...res.data.list]
  60. }
  61. }
  62. uni.stopPullDownRefresh();
  63. uni.hideLoading();
  64. });
  65. }
  66. },
  67. },
  68. onReachBottom: function() {
  69. this.page = this.page + 1;
  70. this.getMoney();
  71. },
  72. onPullDownRefresh: function() {
  73. this.page = 1;
  74. this.getMoney();
  75. }
  76. }
  77. </script>
  78. <style lang='scss'>
  79. @import "../../static/css/index.css";
  80. page{
  81. background: #F5F5F5;
  82. }
  83. .item {
  84. background: #FFFFFF;
  85. padding: 32rpx;
  86. margin: 32rpx;
  87. font-size: 28rpx;
  88. /* box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1); */
  89. border-radius: 16upx;
  90. }
  91. </style>