moneydetail.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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="margin-bottom: 8upx;display: flex;justify-content: space-between;">
  7. <view class="flex" style="color: #2FB57A">
  8. <view v-if="item.classify == 2"> 微信 </view>
  9. <view v-if="item.classify == 1"> 支付宝 </view>
  10. <text style="margin-bottom: 8upx;color: #2FB57A" v-if="item.state==1">提现成功</text>
  11. <text style="margin-bottom: 8upx;color: #2FB57A" v-if="item.state==0">提现中 </text>
  12. <text style="margin-bottom: 8upx;color: #e10a07" v-if="item.state==-1">提现失败,提现金额已退回钱包</text>
  13. </view>
  14. <text style="color: #ecd4b4;font-size: 32upx;font-weight: 600"> ¥{{item.money}}</text>
  15. </view>
  16. <view style="color: #999999;font-size: 28upx;">
  17. <!-- <view style="margin-bottom: 8upx" v-if="item.classify ==1">支付宝提现</view> -->
  18. <view style="margin-bottom: 8upx" v-if="item.classify == 1"> 支付宝账号:{{item.zhifubao}}</view>
  19. <view style="margin-bottom: 8upx" v-if="item.classify == 1"> 支付宝姓名:{{item.zhifubaoName}}</view>
  20. <view style="margin-bottom: 8upx"> 创建时间:{{item.createAt}}</view>
  21. <view style="margin-bottom: 8upx;text-align: right;">
  22. <text v-if="item.type == -1" class="text-olive"
  23. style="font-size: 32upx;font-weight: 600"><text
  24. class="text-olive">+</text>{{item.money}}元</text>
  25. <text v-if="item.state == 1||item.state == 0" class="text-red" style="font-size: 32upx;font-weight: 600"><text
  26. class="text-red">-</text>{{item.money}}元</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <!-- 加载更多提示 -->
  32. <!-- <view class="s-col is-col-24" v-if="list.length > 0">
  33. <load-more :loadingType="loadingType" :contentText="contentText"></load-more>
  34. </view> -->
  35. <!-- 加载更多提示 -->
  36. <!-- <empty v-if="list.length === 0" des="暂无明细数据" show="false"></empty> -->
  37. <empty v-if="list.length == 0" content="暂无明细"></empty>
  38. </view>
  39. </view>
  40. </template>
  41. <script>
  42. import empty from '@/components/empty.vue'
  43. export default {
  44. components: {
  45. empty
  46. },
  47. data() {
  48. return {
  49. list: [],
  50. page: 1,
  51. limit: 10,
  52. tabIndex: 1,
  53. checkReZhiShu: '否',
  54. checkReTuanZhang: '否',
  55. checkReFeiZhiShu: '否',
  56. scrollTop: false,
  57. contentText: {
  58. contentdown: '上拉显示更多',
  59. contentrefresh: '正在加载...',
  60. contentnomore: '没有更多数据了'
  61. }
  62. }
  63. },
  64. onLoad() {
  65. this.$queue.showLoading("加载中...");
  66. this.getList();
  67. },
  68. onPageScroll: function(e) {
  69. this.scrollTop = e.scrollTop > 200;
  70. },
  71. methods: {
  72. getList() {
  73. let userId = this.$queue.getData('userId');
  74. let data = {
  75. page: this.page,
  76. limit: this.limit,
  77. shopId:uni.getStorageSync('shopId')
  78. }
  79. this.$Request.getT('/shop/shopmoney/selectCashOutList', data).then(res => {
  80. if (res.code === 0) {
  81. if (this.page === 1) {
  82. this.list = res.data.list;
  83. } else {
  84. this.list = [...this.list, ...res.data.list];
  85. }
  86. }
  87. uni.stopPullDownRefresh();
  88. uni.hideLoading();
  89. });
  90. }
  91. },
  92. onReachBottom: function() {
  93. this.page = this.page + 1;
  94. this.getList();
  95. },
  96. onPullDownRefresh: function() {
  97. this.page = 1;
  98. this.getList();
  99. }
  100. }
  101. </script>
  102. <style lang="less">
  103. page {
  104. background: #FFFFFF;
  105. }
  106. .tui-tab-item-title {
  107. // color: #ffffff;
  108. font-size: 30rpx;
  109. height: 80rpx;
  110. line-height: 80rpx;
  111. flex-wrap: nowrap;
  112. white-space: nowrap;
  113. }
  114. .tui-tab-item-title-active {
  115. border-bottom: 1px solid #557EFD;
  116. color: #557EFD;
  117. font-size: 32upx;
  118. font-weight: bold;
  119. border-bottom-width: 6upx;
  120. text-align: center;
  121. }
  122. .item {
  123. background: #FFFFFF;
  124. padding: 32rpx;
  125. margin: 32rpx;
  126. font-size: 28rpx;
  127. box-shadow: 7px 9px 34px rgba(0, 0, 0, 0.1);
  128. border-radius: 16upx;
  129. }
  130. </style>