index.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. <template>
  2. <div class="home" :style="`background-image:url(${require('@/assets/image/login_background.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>
  14. </div>
  15. </template>
  16. <script>
  17. import videoDemo from './components/videoDemo/videoDemo.vue';
  18. import softwareSupport from './components/softwareSupport/softwareSupport.vue';
  19. import downLoad from './components/downLoad/downLoad.vue'
  20. export default {
  21. components: {
  22. videoDemo,
  23. softwareSupport,
  24. downLoad
  25. },
  26. props: {},
  27. data() {
  28. return {
  29. components:[
  30. {
  31. component:'videoDemo'
  32. },
  33. {
  34. component:'downLoad'
  35. },
  36. {
  37. component:'softwareSupport'
  38. },
  39. ]
  40. };
  41. },
  42. watch: {},
  43. computed: {},
  44. created() {},
  45. mounted() {},
  46. methods: {},
  47. };
  48. </script>
  49. <style lang="scss" scoped>
  50. .home{
  51. width: 100vw;
  52. height: 100vh;
  53. background-size: cover;
  54. background-position: center;
  55. position: relative;
  56. }
  57. .home::after{
  58. content:'';
  59. width: 100%;
  60. height: 100%;
  61. position: absolute;
  62. inset: 0;
  63. background: var(--color);
  64. opacity: 0.5;
  65. }
  66. .logo{
  67. position: absolute;
  68. top: 0;
  69. left: 0;
  70. height: 120px;
  71. width: fit-content;
  72. z-index: 9999;
  73. .img{
  74. width: 100%;
  75. height: 100%;
  76. }
  77. }
  78. .content{
  79. // height: 400px;
  80. min-height: 300px;
  81. height:fit-content;
  82. z-index: 9999;
  83. position: absolute;
  84. inset: 0;
  85. margin: auto;
  86. display: flex;
  87. align-items: stretch;
  88. justify-content: space-between;
  89. padding: 0 10px;
  90. }
  91. .copyright{
  92. position: absolute;
  93. right: 0;
  94. left: 0;
  95. bottom: 35px;
  96. margin: auto;
  97. text-align: center;
  98. color: white;
  99. z-index: 9999;
  100. }
  101. </style>