index.vue 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <div class="home" :style="`background-image:url(${require('@/assets/image/background_home.jpg')})`">
  3. <div class="logo">
  4. <el-image :src="require('@/assets/image/logo3.png')" class="img" fit="contain"></el-image>
  5. </div>
  6. <div class="content">
  7. <div v-for="(component,index) in components" :key="index" style="width:33%">
  8. <components :is="component.component"></components>
  9. </div>
  10. </div>
  11. <div class="copyright">
  12. copyright©灵智信息服务(深圳)有限公司
  13. <div style="padding:5px 0;">
  14. 粤ICP备2025429440号
  15. </div>
  16. </div>
  17. </div>
  18. </template>
  19. <script>
  20. import videoDemo from './components/videoDemo/videoDemo.vue';
  21. import softwareSupport from './components/softwareSupport/softwareSupport.vue';
  22. import downLoad from './components/downLoad/downLoad.vue'
  23. export default {
  24. components: {
  25. videoDemo,
  26. softwareSupport,
  27. downLoad
  28. },
  29. props: {},
  30. data() {
  31. return {
  32. components:[
  33. // {
  34. // component:'videoDemo'
  35. // },
  36. {
  37. component:'downLoad'
  38. },
  39. // {
  40. // component:'softwareSupport'
  41. // },
  42. ]
  43. };
  44. },
  45. watch: {},
  46. computed: {},
  47. created() {},
  48. mounted() {},
  49. methods: {},
  50. };
  51. </script>
  52. <style lang="scss" scoped>
  53. .home{
  54. width: 100vw;
  55. height: 100vh;
  56. background-size: cover;
  57. background-position: center;
  58. position: relative;
  59. }
  60. // .home::after{
  61. // content:'';
  62. // width: 100%;
  63. // height: 100%;
  64. // position: absolute;
  65. // inset: 0;
  66. // background: var(--color);
  67. // opacity: 0.5;
  68. // }
  69. .logo{
  70. position: absolute;
  71. top: 0;
  72. left: 0;
  73. height: 120px;
  74. width: fit-content;
  75. z-index: 9999;
  76. .img{
  77. width: 100%;
  78. height: 100%;
  79. }
  80. }
  81. .content{
  82. // height: 400px;
  83. min-height: 300px;
  84. height:fit-content;
  85. z-index: 9999;
  86. position: absolute;
  87. inset: 0;
  88. margin: auto;
  89. display: flex;
  90. align-items: stretch;
  91. justify-content: center;
  92. padding: 0 10px;
  93. }
  94. .copyright{
  95. position: absolute;
  96. right: 0;
  97. left: 0;
  98. bottom: 35px;
  99. margin: auto;
  100. text-align: center;
  101. color: white;
  102. z-index: 9999;
  103. font-size: 14px;
  104. }
  105. </style>