queryResults.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. <template>
  2. <view class="results">
  3. <z-paging ref="paging" v-model="resultList" @query="queryList">
  4. <view class="results-list">
  5. <view class="results-list-item" v-for="(item, index) in resultList" :key="index">
  6. <view class="results-list-item-title">
  7. <view class="left">
  8. <view>{{ item.cardNo }}</view>
  9. <view>{{ item.roadName }}</view>
  10. </view>
  11. <view class="right">{{ item.status === 0 ? '已完成': '' }}</view>
  12. </view>
  13. <view class="results-list-item-content">
  14. <view class="item">订单编号:{{ item.orderNo }}</view>
  15. <view class="item" v-if="item.type === 1">开始计费:{{ item.startDate }}</view>
  16. <view class="item" v-else>入场时间:{{ item.startDate }}</view>
  17. <view class="item" v-if="item.type === 1">结束计费:{{ item.endDate }}</view>
  18. <view class="item" v-else>出场时间:{{ item.endDate }}</view>
  19. <view class="item">免费时长:{{ item.freeDuration }}</view>
  20. <view class="item">计费时长:{{ item.calcDuration }}</view>
  21. <view class="item">累计停车时长:{{ item.totalDuration }}</view>
  22. <view class="item">应缴金额:<text>{{ item.shouldPay || 0 }}元</text></view>
  23. <view class="item">实缴金额:<text>{{ item.reallyPay || 0 }}元</text></view>
  24. <view class="item">泊位号:{{ item.parkNo }}</view>
  25. <view class="item" v-if="item.type === 1">车位锁设备号:{{ item.lockNo }}</view>
  26. </view>
  27. <view class="results-list-item-bottom">
  28. <view>收费标准</view>
  29. <view>
  30. <u-icon name="arrow-right" color="#969799" size="18"></u-icon>
  31. </view>
  32. </view>
  33. </view>
  34. </view>
  35. </z-paging>
  36. </view>
  37. </template>
  38. <script>
  39. export default {
  40. data() {
  41. return {
  42. resultList: []
  43. }
  44. },
  45. methods: {
  46. queryList(pageNo, pageSize) {
  47. this.$refs.paging.complete([{
  48. cardNo: '贵AR366Y',
  49. roadName: '园丁路',
  50. status: 0,
  51. orderNo: '617947319799648256',
  52. startDate: '2021-11-09 15:08:2',
  53. endDate: '2021-11-10 09:23:43',
  54. freeDuration: '0天0时15分0秒',
  55. calcDuration: '0天17时59分16秒',
  56. totalDuration: '0天18时15分16秒',
  57. shouldPay: '0.24',
  58. reallyPay: '0.01',
  59. parkNo: 'DJ001',
  60. lockNo: '2015030411',
  61. type: 1
  62. }, {
  63. cardNo: '贵AR366Y',
  64. roadName: '园丁路',
  65. status: 0,
  66. orderNo: '617947319799648256',
  67. startDate: '2021-11-09 15:08:2',
  68. endDate: '2021-11-10 09:23:43',
  69. freeDuration: '0天0时15分0秒',
  70. calcDuration: '0天17时59分16秒',
  71. totalDuration: '0天18时15分16秒',
  72. shouldPay: '0.24',
  73. reallyPay: '0.01',
  74. parkNo: 'DJ001',
  75. lockNo: '2015030411',
  76. type: 2
  77. }])
  78. }
  79. }
  80. }
  81. </script>
  82. <style lang="scss" scoped>
  83. page {
  84. background-color: #F6F6FF;
  85. min-height: calc(100vh - 88rpx);
  86. }
  87. .results {
  88. &-list {
  89. padding: 30rpx 40rpx;
  90. &-item {
  91. background-color: #fff;
  92. border-radius: 14rpx;
  93. margin-bottom: 20rpx;
  94. &-title {
  95. display: flex;
  96. justify-content: space-between;
  97. align-items: center;
  98. padding: 24rpx 40rpx;
  99. border-bottom: 1px solid #dfdfdf;
  100. margin-bottom: 30rpx;
  101. .left {
  102. view {
  103. &:first-child {
  104. font-size: 32rpx;
  105. font-weight: 600;
  106. color: #3a3a3a;
  107. line-height: 50rpx;
  108. letter-spacing: 1px;
  109. }
  110. &:last-child {
  111. color: #858585;
  112. font-size: 26rpx;
  113. line-height: 40rpx;
  114. }
  115. }
  116. }
  117. .right {
  118. padding: 0 14rpx;
  119. line-height: 50rpx;
  120. border-radius: 4rpx;
  121. border: 1px solid #bdbdbd;
  122. color: #858585;
  123. }
  124. }
  125. &-content {
  126. padding: 0 40rpx 24rpx;
  127. border-bottom: 1px solid #dfdfdf;
  128. .item {
  129. margin-bottom: 8rpx;
  130. font-size: 26rpx;
  131. font-weight: 400;
  132. color: #595959;
  133. line-height: 40rpx;
  134. letter-spacing: 1px;
  135. text {
  136. color: #fa6400;
  137. }
  138. }
  139. }
  140. &-bottom {
  141. display: flex;
  142. justify-content: space-between;
  143. align-items: center;
  144. padding: 26rpx 32rpx;
  145. font-size: 28rpx;
  146. line-height: 54rpx;
  147. color: #606266;
  148. background-color: #fff;
  149. text-align: left;
  150. }
  151. }
  152. }
  153. }
  154. </style>