index.vue 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view>
  3. <u-navbar title="车辆管理"></u-navbar>
  4. <!-- <view class="carNone">
  5. <img src="/static/img/none2.svg" alt="">
  6. <p>暂无绑定车辆</p>
  7. <view class="carNone-btn">
  8. 添加车牌
  9. </view>
  10. </view> -->
  11. <view class="car">
  12. <view class="car-item">
  13. <span>默认</span>
  14. <font>鄂D 999999</font>
  15. </view>
  16. <view class="car-btn">添加车牌</view>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. }
  25. },
  26. methods: {
  27. }
  28. }
  29. </script>
  30. <style>
  31. page{
  32. background: #fff;
  33. }
  34. </style>
  35. <style lang="scss" scoped>
  36. .carNone{
  37. display: flex;
  38. flex-direction: column;
  39. justify-content: center;
  40. height: calc(100vh - 44px);
  41. align-items: center;
  42. img{
  43. width: 256px;
  44. height: 256px;
  45. }
  46. p{
  47. margin-top: -60px;
  48. }
  49. .carNone-btn{
  50. font-size: 16px;
  51. color:#00B962;
  52. border: 1px solid #00B962;
  53. padding: 10px 70px;
  54. border-radius: 20px;
  55. margin-top: 48px;
  56. }
  57. }
  58. .car{
  59. padding: 24px;
  60. .car-item{
  61. background-color: #00B962;
  62. height: 80px;
  63. border-radius: 8px;
  64. position: relative;
  65. text-align: center;
  66. font{
  67. color:#fff;
  68. font-size: 36px;
  69. line-height:80px;
  70. }
  71. span{
  72. position: absolute;
  73. height: 24px;
  74. width: 48px;
  75. background-color: #008A4B ;
  76. color:#fff;
  77. right: 0;
  78. top: 0;
  79. text-align: center;
  80. line-height: 24px;
  81. border-radius: 0 8px 0 8px;
  82. }
  83. }
  84. .car-btn{
  85. font-size: 16px;
  86. color:#00B962;
  87. border: 1px solid #00B962;
  88. border-radius: 21px;
  89. padding: 10px 0;
  90. text-align: center;
  91. margin-top: 12px;
  92. }
  93. }
  94. </style>