extractHistory.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. <template>
  2. <view class="box">
  3. <view class="headerView">
  4. <view class="leftTitle">累计提现: <text class="rightMoney">¥{{detailData.withdrawalMoney}}</text></view>
  5. <view class="leftTitle">提现中: <text class="rightMoney">¥{{detailData.frozenMoney}}</text></view>
  6. </view>
  7. <view v-for="(item,index) in arr" :key="index" >
  8. <view class="itemBg">
  9. <view class="first">
  10. <view class="time">{{item.createTIme}}</view>
  11. <!-- 0待审核1通过2拒绝 -->
  12. <view class="state" v-if="item.AuditState == 0" style="color: #F19D01;">待审核</view>
  13. <view class="state" v-if="item.AuditState == 1" style="color: #00A040;">审核通过</view>
  14. <view class="state" v-if="item.AuditState == 2" style="color: #FF3B30;">审核拒绝</view>
  15. </view>
  16. <view class="second">
  17. <view class="name">{{item.aliName}} {{item.aliPhone}}</view>
  18. <view class="monty">¥{{item.money}}</view>
  19. </view>
  20. <view class="content" v-if="item.AuditState == 2">拒绝原因:{{item.AuditComment}}</view>
  21. </view>
  22. </view>
  23. <!-- 上拉 加载更多 -->
  24. <view class="noMore" v-if="noMoreShow">没有更多数据</view>
  25. <!-- 无数据空白页 -->
  26. <nodata v-if="arr.length==0"></nodata>
  27. </view>
  28. </template>
  29. <script>
  30. import nodata from '../../components/nodata/nodata.vue'
  31. export default {
  32. components: {
  33. nodata,
  34. },
  35. data() {
  36. return {
  37. arr: [],
  38. page: 1,
  39. noMoreShow: false,
  40. detailData:{},
  41. }
  42. },
  43. onShow() {
  44. this.getDetailData();
  45. this.page = 1;
  46. this.getItemData();
  47. },
  48. methods: {
  49. getDetailData() {
  50. uni.showLoading({
  51. title: '加载中'
  52. })
  53. let url = 'worldKeepCar/worldDistribution/queryDistributionIndexDetail',
  54. params = {
  55. }
  56. this.$http(url, params, 'GET').then(res => {
  57. uni.hideLoading();
  58. var data = res.data
  59. // 处理 undefined和null转为空白字符串
  60. for (const key in data) {
  61. data[key] = this.$praseStrEmpty(data[key])
  62. }
  63. this.detailData = data
  64. })
  65. },
  66. getItemData() {
  67. uni.showLoading({
  68. title: '加载中'
  69. })
  70. let url = 'worldKeepCar/worldDistribution/listTSApplySheetPage',
  71. params = {
  72. page:this.page,
  73. limit:10,
  74. }
  75. this.$http(url, params, 'GET').then(res => {
  76. uni.hideLoading();
  77. var list = res.data.Items
  78. // 处理 undefined和null转为空白字符串
  79. list.forEach((item, index) => {
  80. for (const key in item) {
  81. item[key] = this.$praseStrEmpty(item[key])
  82. }
  83. })
  84. if (this.page == 1) {
  85. this.arr = list
  86. } else {
  87. this.arr = this.arr.concat(list)
  88. }
  89. if (list.length < 10) {
  90. this.noMoreShow = true
  91. } else {
  92. this.noMoreShow = false
  93. }
  94. })
  95. },
  96. },
  97. // 下拉刷新 上拉加载更多
  98. onPullDownRefresh() {
  99. this.page = 1;
  100. this.getItemData()
  101. this.getDetailData()
  102. setTimeout(function() {
  103. uni.stopPullDownRefresh();
  104. }, 1000);
  105. },
  106. onReachBottom() {
  107. this.page++;
  108. this.getItemData()
  109. },
  110. }
  111. </script>
  112. <style>
  113. .box {
  114. min-height: 100vh;
  115. background: #F4F5F7;
  116. padding-bottom: 20rpx;
  117. }
  118. .headerView{
  119. padding: 20rpx 16rpx;
  120. display: flex;
  121. justify-content: space-between;
  122. }
  123. .leftTitle{
  124. font-size: 26rpx;
  125. color: #999999;
  126. }
  127. .rightMoney{
  128. font-size: 26rpx;
  129. color: #3C3C3C;
  130. font-weight: bold;
  131. }
  132. .itemBg{
  133. margin: 0 16rpx 20rpx;
  134. background-color: #FFFFFF;
  135. border-radius: 10rpx;
  136. padding: 30rpx 20rpx;
  137. }
  138. .first{
  139. display: flex;
  140. justify-content: space-between;
  141. align-items: center;
  142. }
  143. .second{
  144. display: flex;
  145. justify-content: space-between;
  146. align-items: center;
  147. margin-top: 15rpx;
  148. }
  149. .content{
  150. margin-top: 15rpx;
  151. }
  152. .time{
  153. font-size: 28rpx;
  154. color: #999999;
  155. }
  156. .state{
  157. font-size: 28rpx;
  158. }
  159. .name{
  160. font-size: 28rpx;
  161. color: #3C3C3C;
  162. }
  163. .monty {
  164. font-size: 38rpx;
  165. font-weight: bold;
  166. color: #000000;
  167. }
  168. .content{
  169. font-size: 28rpx;
  170. color: #666666;
  171. }
  172. .noMore {
  173. text-align: center;
  174. line-height: 50rpx;
  175. color: #999999;
  176. font-size: 28rpx;
  177. }
  178. </style>