txjl.vue 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  1. <template>
  2. <view class="pd16_15">
  3. <block v-for="(item,index) in listData" :key="index">
  4. <view class="box pd16_15 alcenter space" style="margin-bottom: 30upx;">
  5. <view class="flex" style="width: 100%;">
  6. <view style="width: 60%;">
  7. <view class="ft14 cl-main">提现姓名:{{item.name}} </view>
  8. <view class="mt8 ft12 cl-notice">帐号:{{item.cord}}</view>
  9. <view class="mt8">
  10. <text class="ft12 cl-notice">手续费:</text>
  11. <text class="ft12 cl-main">{{item.sxf}}</text>
  12. <text class="ft12 cl-main" style="float: right;">{{item.createtime}}</text>
  13. </view>
  14. </view>
  15. <view class="uni-triplex-right" style="width: 40%; text-align: right; line-height: 40upx;">
  16. <text class="uni-h5" style="width: 100%; display: block; font-size: 24upx;">{{item.type}}</text>
  17. <text class="uni-h5" style="font-size: 24upx; color: #ff0000; width: 100%; display: block;">¥{{item.money}}</text>
  18. <text class="uni-h5" style="width: 100%; display: block; font-size: 24upx;" v-if="item.iscl==1">未审核</text>
  19. <text class="uni-h5" style="width: 100%; display: block; font-size: 24upx;" v-if="item.iscl==2">已审核</text>
  20. <text class="uni-h5" style="width: 100%; display: block;font-size: 24upx;" v-if="item.iscl==3">已驳回</text>
  21. </view>
  22. </view>
  23. <view v-if="item.memoj" class="mt8" style="width: 100%;">
  24. <text class="ft12 cl-notice">备注:</text>
  25. <text class="ft12 cl-main">{{item.memoj}}</text>
  26. </view>
  27. </view>
  28. </block>
  29. <uni-load-more :status="status" :content-text="contentText" />
  30. </view>
  31. </template>
  32. <script>
  33. import uniLoadMore from '@/components/uni-load-more/uni-load-more.vue';
  34. export default {
  35. components: {
  36. uniLoadMore
  37. },
  38. data() {
  39. return {
  40. listData: [],
  41. last_id: 0,
  42. reload: true,
  43. status: 'more',
  44. contentText: {
  45. contentdown: '上拉加载更多',
  46. contentrefresh: '加载中',
  47. contentnomore: '没有数据了'
  48. }
  49. }
  50. },
  51. onReachBottom() {
  52. this.status = 'more';
  53. this.getList();
  54. },
  55. onLoad() {
  56. this.getList();
  57. },
  58. methods: {
  59. getList() {
  60. let data = {
  61. //column: 'id,post_id,title,author_name,cover,published_at' //需要的字段名
  62. };
  63. var limit=10;
  64. if (this.last_id>0) {
  65. //说明已有数据,目前处于上拉加载
  66. this.status = 'loading';
  67. data.offset = this.last_id*limit;
  68. data._ = new Date().getTime() + '';
  69. }
  70. data.limit=limit
  71. data.token = uni.getStorageSync("userinfo").token;
  72. uni.request({
  73. url: this.configs.webUrl+'/api/user/txinfo',
  74. data: data,
  75. success: data => {
  76. console.log(data.data)
  77. if (data.data.total>0) {
  78. let list = data.data.rows;
  79. this.listData = this.reload ? list : this.listData.concat(list);
  80. this.reload = false;
  81. this.last_id = this.last_id+1;
  82. if(data.data.total<this.last_id*limit){
  83. this.status = '';
  84. }
  85. }else{
  86. this.contentText.contentdown='没有数据'
  87. }
  88. },
  89. fail: (data, code) => {
  90. //console.log('fail' + JSON.stringify(data));
  91. }
  92. });
  93. },
  94. }
  95. }
  96. </script>
  97. <style>
  98. .uni-title{
  99. color: #444;
  100. font-size: 32upx;
  101. font-weight: normal;
  102. }
  103. .uni-text{
  104. font-size: 28upx;
  105. }
  106. .uni-h5{
  107. font-size: 32upx;
  108. color: #3a3a3a;
  109. font-weight:500;
  110. }
  111. </style>