ZhHeader.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <!--标题logo-->
  3. <div class="header">
  4. <div :class="[showTitle?'YztTitle':'YztWxzTitle']" @click="slideTitle"></div>
  5. <div class="SqTitle"></div>
  6. <div class="GgTitle"></div>
  7. <div class="YwTitle"></div>
  8. </div>
  9. </template>
  10. <script>
  11. export default {
  12. name: "ZhHeader",
  13. data() {
  14. return{
  15. slideTitle:true
  16. }
  17. }
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. $fullsize: calc(100% - 0px);
  22. .header {
  23. width: $fullsize;
  24. height: $fullsize;
  25. background: url(src/assets/images/logo2.png) no-repeat;
  26. background-repeat: no-repeat;
  27. background-size: contain;
  28. position: absolute;
  29. z-index: 999;
  30. }
  31. .YztTitle{
  32. left:10%;
  33. top:4%;
  34. width: 246rem;
  35. height: 54rem;
  36. background: url(src/assets/images/yztTitie.png) no-repeat;
  37. background-size: 100% 100%;
  38. position: absolute;
  39. }
  40. .YztWxzTitle{
  41. left:10%;
  42. top:4%;
  43. width: 246rem;
  44. height: 54rem;
  45. background: url(src/assets/images/yztTitie.png) no-repeat;
  46. background-size: 100% 100%;
  47. position: absolute;
  48. }
  49. .SqTitle{
  50. left:23%;
  51. top:4%;
  52. width: 246rem;
  53. height: 54rem;
  54. background: url(src/assets/images/sqTitle.png) no-repeat;
  55. background-size: 100% 100%;
  56. position: absolute;
  57. }
  58. .GgTitle{
  59. left:67%;
  60. top:4%;
  61. width: 246rem;
  62. height: 54rem;
  63. background: url(src/assets/images/ggTitle.png) no-repeat;
  64. background-size: 100% 100%;
  65. position: absolute;
  66. }
  67. .YwTitle{
  68. left:80%;
  69. top:4%;
  70. width: 246rem;
  71. height: 54rem;
  72. background: url(src/assets/images/ywTitle.png) no-repeat;
  73. background-size: 100% 100%;
  74. position: absolute;
  75. }
  76. </style>