KeyBox.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <template>
  2. <div class="cabinet">
  3. <div class="box">
  4. <div v-for="(item, index) in 30" :key="index" class="cabinet-box">
  5. <div>
  6. <div style="font-size: 36px">
  7. {{ index + 1 }}
  8. </div>
  9. <div style="font-size: 16px; color: #777">渝A40232</div>
  10. </div>
  11. </div>
  12. </div>
  13. <div class="rigth-cabinet">
  14. <img src="../../../../assets/vehicle/yjgl.png" alt="" />
  15. <div class="edit-box">
  16. <div>
  17. <span class="tab"></span>
  18. <span>钥匙在柜</span>
  19. </div>
  20. <div>
  21. <span class="tab" style="background: #ff9d17;"></span>
  22. <span>钥匙使用中</span>
  23. </div>
  24. <div>
  25. <span class="tab" style="background: #e66767;"></span>
  26. <span>维修中</span>
  27. </div>
  28. <div>
  29. <span class="tab" style="background: #adadad;"></span>
  30. <span>钥匙柜未绑定钥匙</span>
  31. </div>
  32. </div>
  33. <div class="imgs">
  34. <img src="../../../../assets/vehicle/yjkm.png" alt="">
  35. <img src="../../../../assets/vehicle/zdpz.png" alt="">
  36. </div>
  37. </div>
  38. </div>
  39. </template>
  40. <script></script>
  41. <style lang="less" scoped>
  42. .cabinet {
  43. flex: 1;
  44. // width: 90%;
  45. height: 654px;
  46. background: #f0f8fe;
  47. box-shadow: 0px 5px 9px rgba(0, 0, 0, 0.05);
  48. border-radius: 12px;
  49. opacity: 1;
  50. padding: 10px 10px;
  51. display: flex;
  52. .box {
  53. min-width: 750px;
  54. max-width: 950px;
  55. display: flex;
  56. flex-wrap: wrap;
  57. }
  58. .cabinet-box {
  59. width: 15%;
  60. height: 90px;
  61. background: url('../../../../assets/vehicle/cs2.png') no-repeat;
  62. background-size: 100% 100%;
  63. padding: 2px 10px;
  64. margin-right: 10px;
  65. margin-bottom: 10px;
  66. }
  67. .rigth-cabinet {
  68. width: 170px;
  69. .edit-box {
  70. font-family: PingFang SC;
  71. font-size: 12px;
  72. color: #4d4d4d;
  73. margin-top: 30px;
  74. margin-left: 10px;
  75. .tab {
  76. display: inline-block;
  77. width: 27px;
  78. height: 12px;
  79. background: #1cd855;
  80. border-radius: 0px;
  81. opacity: 1;
  82. margin-right: 10px;
  83. }
  84. }
  85. }
  86. .imgs{
  87. margin-top: 180px;
  88. img{
  89. display: inline-block;
  90. width: 113px;
  91. height: 113px;
  92. }
  93. }
  94. }
  95. </style>