extractList.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. <template>
  2. <view class="box">
  3. <view style="height: 20rpx;"></view>
  4. <view class="line" v-for="(item,index) in list">
  5. <view class="linetop">
  6. <view class="name">提现</view>
  7. <view class="nickNameBox">
  8. <view class="amount">¥{{item.money}}</view>
  9. </view>
  10. </view>
  11. <view class="lineCOnt">
  12. <view class="lineline">
  13. <view class="lineContLeft">
  14. <view class="lineContLeftMs">申请时间:{{item.applyTime}}</view>
  15. </view>
  16. <view class="lineTIme">{{stateMap[~~item.auditState]}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. <nodata v-if="list.length==0"></nodata>
  21. </view>
  22. </template>
  23. <script>
  24. import nodata from '../../components/nodata/nodata.vue'
  25. export default {
  26. components: {
  27. nodata
  28. },
  29. data() {
  30. return {
  31. list:'',
  32. themeColor:'',
  33. userInfo:'',
  34. stateMap: ['待审核', '审核通过', '审核拒绝'],
  35. }
  36. },
  37. onLoad(opt) {
  38. this.themeColor = uni.getStorageSync("themeColor");
  39. this.userInfo = uni.getStorageSync("userInfo");
  40. this.getList()
  41. },
  42. onShow() {
  43. },
  44. methods: {
  45. getList(){
  46. uni.showLoading({
  47. title: '加载中'
  48. })
  49. this.$http('openMCustomer/getWithdrawalDetail', {
  50. }, 'GET').then(res => {
  51. uni.hideLoading();
  52. this.list = res.data;
  53. //var data=res.data.Items;
  54. //this.list=this.list.concat(data);
  55. //console.log('list+=', this.queryShopList);
  56. })
  57. }
  58. },
  59. onReachBottom(){
  60. //this.page++;
  61. this.getList()
  62. //console.log("shanglas")
  63. },
  64. onPullDownRefresh(){
  65. //this.page=1;
  66. //this.list=[];
  67. this.getList();
  68. setTimeout(() => {
  69. uni.stopPullDownRefresh(); // 关闭下拉刷新
  70. }, 2000);
  71. }
  72. }
  73. </script>
  74. <style scoped lang="less">
  75. .box {
  76. width: 100vw;
  77. min-height: 100vh;
  78. background: #F4F5F7;
  79. }
  80. .nickNameBox{
  81. display: flex;
  82. }
  83. .nickName{
  84. font-weight: 400;
  85. color: #999999;
  86. font-size: 24rpx;
  87. line-height: 30rpx;
  88. padding-left: 10rpx;
  89. }
  90. .lineContLeftImg{
  91. width: 30rpx;
  92. height: 30rpx;
  93. margin-right: 10rpx;
  94. }
  95. .line{
  96. width: 702rpx;
  97. background: #FFFFFF;
  98. border-radius: 10rpx;
  99. margin-bottom: 20rpx;
  100. margin-left: 24rpx;
  101. }
  102. .linetop{
  103. display: flex;
  104. justify-content: space-between;
  105. font-size: 30rpx;
  106. padding: 20rpx;
  107. padding-bottom: 0;
  108. }
  109. .lineline{
  110. display: flex;
  111. justify-content: space-between;
  112. padding: 20rpx;
  113. font-weight: 400;
  114. color: #999999;
  115. font-size: 24rpx;
  116. line-height: 30rpx;
  117. }
  118. .lineContLeft{
  119. display: flex;
  120. }
  121. .name{
  122. font-weight: 500;
  123. color: #3C3C3C;
  124. }
  125. .amount{
  126. color: #FF0000;
  127. }
  128. .nickNameImg{
  129. width: 30rpx;
  130. height: 30rpx;
  131. }
  132. </style>