header.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <template>
  2. <div class="header">
  3. <img class="header_l" :src="rectangleLogo"/>
  4. <div class="header_c">实验室安全智慧化管控系统</div>
  5. <img class="header_r" src="@/assets/image/index_icon16.png" @click="back"/>
  6. </div>
  7. </template>
  8. <script>
  9. import {} from "../api/http"
  10. export default {
  11. name: 'heaDer',
  12. setup(){
  13. return {
  14. rectangleLogo:localStorage.getItem('rectangleLogo'),
  15. }
  16. },
  17. methods:{
  18. back(){
  19. this.$router.push('/home')
  20. },
  21. },
  22. mounted() {
  23. }
  24. }
  25. </script>
  26. <style lang="scss" scoped>
  27. * {
  28. padding: 0;
  29. margin: 0;
  30. box-sizing: border-box;
  31. }
  32. .header {
  33. width: 100%;
  34. position: absolute;
  35. left: 0;
  36. top: 0;
  37. z-index: 100;
  38. display: flex;
  39. justify-content: flex-start;
  40. .header_l {
  41. width:250px;
  42. height:55px;
  43. margin: 0 0 0 30px;
  44. }
  45. .header_c {
  46. width: 1180px;
  47. height: 152px;
  48. margin-left: 78px;
  49. background: url("~@/assets/image/index_icon2.png") no-repeat;
  50. background-size: 100% 100%;
  51. font-size: 30px;
  52. font-family: Microsoft YaHei;
  53. font-weight: bold;
  54. color: #FFFFFF;
  55. line-height: 30px;
  56. text-align: center;
  57. padding-top: 26px;
  58. }
  59. .header_r {
  60. cursor: pointer;
  61. margin-left: 264px;
  62. width: 82px;
  63. height: 32px;
  64. margin-top: 18px;
  65. }
  66. }
  67. </style>