江西小程序管理端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
1.6 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <template>
  2. <view class="pageBgImg">
  3. <topNavbar title="我的车辆"></topNavbar>
  4. <view class="pad">
  5. <view class="searcBox">
  6. <searchRow placeholder="搜索车牌号"></searchRow>
  7. </view>
  8. <!-- <view class="card" style="margin-bottom: 24rpx;">
  9. <view class="add">
  10. <view class="lab">新增车辆</view>
  11. <view class="btnBg">立即新增</view>
  12. </view>
  13. </view> -->
  14. <view class="ul">
  15. <view class="card" v-for="(item,index) in list" :key="index">
  16. <view class="li" >
  17. <view class="plate">{{item.licnum}}</view>
  18. <view class="name">{{item.manufacturer}}</view>
  19. </view>
  20. </view>
  21. </view>
  22. </view>
  23. </view>
  24. </template>
  25. <script>
  26. import { carPage } from '@/config/api.js'
  27. export default {
  28. data() {
  29. return {
  30. list: [],
  31. params: {
  32. pageNo: 1,
  33. pageSize: 20
  34. }
  35. }
  36. },
  37. onLoad() {
  38. this.carPageFn()
  39. },
  40. methods: {
  41. async carPageFn() {
  42. const {data: res} = await carPage(this.params)
  43. this.params.pageNo ++
  44. this.list.push(...res.list)
  45. console.log(res)
  46. }
  47. }
  48. }
  49. </script>
  50. <style lang="scss" scoped>
  51. .searcBox {
  52. padding: 24rpx 0;
  53. }
  54. .card {
  55. margin-bottom: 20rpx;
  56. .add {
  57. display: flex;
  58. align-items: center;
  59. justify-content: space-between;
  60. height: 108rpx;
  61. padding: 0 40rpx;
  62. .lab {
  63. font-size: 32rpx;
  64. color: #333;
  65. font-weight: 500;
  66. }
  67. .btnBg {
  68. width: 192rpx;
  69. }
  70. }
  71. .li {
  72. height: 100rpx;
  73. display: flex;
  74. align-items: center;
  75. justify-content: space-between;
  76. padding: 0 24rpx;
  77. .plate {
  78. color: $themC;
  79. font-weight: 500;
  80. }
  81. .name {
  82. color: #686B73;
  83. }
  84. }
  85. }
  86. </style>