Cjmsleftnav.vue 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <template>
  2. <div class="nav">
  3. <div class="nav-cont">
  4. <div class="nav-tit">
  5. <div class="nav-circle">
  6. <img src="../assets/images/yj-tity1.png" />
  7. </div>
  8. <p>摄像头信息</p>
  9. </div>
  10. <ul class="sxt-list">
  11. <li>名称:摄像头</li>
  12. <li>地址:东风乡喇嘛屯</li>
  13. <li>塔高:50m</li>
  14. <li>半径:6km</li>
  15. <li>网络:移动</li>
  16. <li>状态:在线</li>
  17. <li>周边:</li>
  18. </ul>
  19. <div class="sxt-img">
  20. <div class="sxt-img-div">
  21. <img src="../assets/images/yj-cjmsimg1.png"/>
  22. <span>摄像头1</span>
  23. </div>
  24. <div class="sxt-img-div">
  25. <img src="../assets/images/yj-cjmsimg1.png"/>
  26. <span>摄像头2</span>
  27. </div>
  28. <div class="sxt-img-div">
  29. <img src="../assets/images/yj-cjmsimg1.png"/>
  30. <span>摄像头3</span>
  31. </div>
  32. </div>
  33. </div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. name: 'Cjmsleftnav',
  39. props: {
  40. }
  41. }
  42. </script>
  43. <!-- Add "scoped" attribute to limit CSS to this component only -->
  44. <style scoped>
  45. .nav{
  46. background: url("../assets/images/yj-cjmsleftnavbg.png") no-repeat center;
  47. background-size: 100% 100%;
  48. position: absolute;
  49. left: 0px;
  50. top: 0px;
  51. height: 87.2vh;
  52. z-index: 3;
  53. width: 421px;
  54. }
  55. .nav-cont{
  56. width: 350px;
  57. height: calc(100vh - 17vh);
  58. margin-top: 10vh;
  59. margin: 8vh 0px 0px 15px;
  60. }
  61. .sxt-list{
  62. display: flex;
  63. flex-direction: column;
  64. margin: 20px 10px;
  65. }
  66. .sxt-list li{
  67. font-size:14px;
  68. color:#fff;
  69. height:28px;
  70. line-height:28px;
  71. margin:2px 0px;
  72. width:100%;
  73. padding-left:18px;
  74. text-align: left;
  75. }
  76. .sxt-list li:nth-child(odd){
  77. background:#102452;
  78. }
  79. .sxt-img{
  80. display:flex;
  81. flex-direction:row;
  82. justify-content: space-around;
  83. }
  84. .sxt-img .sxt-img-div{
  85. cursor: pointer;
  86. }
  87. .sxt-img .sxt-img-div img{
  88. width:105px;
  89. height:75px;
  90. border:1px solid #173e79;
  91. }
  92. .sxt-img .sxt-img-div span{
  93. text-align:center;
  94. color:#fff;
  95. font-size:14px;
  96. display:block;
  97. }
  98. </style>