collectionNum.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <template>
  2. <view>
  3. <view class="top">
  4. <view class="money">¥{{top.money}}元</view>
  5. <view class="num">收款{{top.nums}}笔</view>
  6. </view>
  7. <view class="list" v-for="(item,index) in incomeList" :key='index'>
  8. <view class="middle">
  9. <view class="name">{{item.mobile}}</view>
  10. <view class="num">{{item.pay_time}}</view>
  11. </view>
  12. <view class="right">+{{item.pay_money}}</view>
  13. </view>
  14. </view>
  15. </template>
  16. <script>
  17. var app = getApp()
  18. export default {
  19. data() {
  20. return {
  21. incomeList: '', //收益列表
  22. top: '', //头部信息
  23. }
  24. },
  25. onLoad: function(options) {
  26. uni.showLoading()
  27. console.log(options, '-------------')
  28. // var that = this
  29. let list = JSON.parse(options.list)
  30. console.log(list, "ppppp")
  31. let date = {
  32. day: list.day,
  33. bike_id: list.bike_id
  34. }
  35. app.request('/earnings-day-bike', date, 'GET').then(res => {
  36. uni.hideLoading()
  37. console.log(res, "单个车辆收益详情")
  38. this.incomeList = res.data.data,
  39. this.top = list
  40. })
  41. },
  42. }
  43. </script>
  44. <style>
  45. /* pages/collectionNum/collectionNum.wxss */
  46. page {
  47. /* background-color: #ffffff; */
  48. }
  49. .top {
  50. text-align: center;
  51. margin-bottom: 60upx;
  52. }
  53. .day,
  54. .num {
  55. font-size: 30upx;
  56. font-family: PingFang SC;
  57. font-weight: 500;
  58. color: #747474;
  59. line-height: 36upx;
  60. opacity: 0.8;
  61. }
  62. .money {
  63. margin-top: 61upx;
  64. font-size: 40upx;
  65. margin-bottom: 30upx;
  66. }
  67. .list {
  68. background-color: #ffffff;
  69. display: flex;
  70. padding: 20upx 30upx;
  71. border-bottom: solid 1upx rgba(238, 238, 238, 1);
  72. }
  73. .left {
  74. margin-right: 27upx;
  75. }
  76. .left image {
  77. border: solid 1upx #747474;
  78. height: 96upx;
  79. width: 96upx;
  80. border-radius: 10upx;
  81. }
  82. .middle {
  83. flex: 0 0 50%;
  84. padding: 5upx 0;
  85. }
  86. .right {
  87. padding: 30upx;
  88. text-align: right;
  89. flex: 1;
  90. font-size: 32upx;
  91. font-family: PingFang SC;
  92. font-weight: 500;
  93. color: #333333;
  94. line-height: 36upx;
  95. }
  96. .name {
  97. margin-bottom: 10upx;
  98. }
  99. </style>