Home.vue 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <div class="home-container">
  3. <div class="wrap" ref="editor">
  4. <div class="top"></div>
  5. <sinan />
  6. <rimian />
  7. <pyramid />
  8. <scrollArc />
  9. <szBar />
  10. <ringPin />
  11. </div>
  12. </div>
  13. </template>
  14. <script>
  15. import { screenSize } from '@/assets/js/utils'
  16. export default {
  17. name: 'Home',
  18. components: {},
  19. data() {
  20. return {
  21. }
  22. },
  23. computed: {
  24. },
  25. created() {
  26. },
  27. mounted() {
  28. screenSize(this.$refs.editor);
  29. },
  30. methods: {
  31. }
  32. }
  33. </script>
  34. <style lang="scss" scoped>
  35. .home-container {
  36. position: absolute;
  37. left: 0;
  38. top: 0;
  39. width: 100%;
  40. height: 100%;
  41. .wrap {
  42. transform-origin: 0px 0px 0px;
  43. background: url(../assets/img/bj.jpg) no-repeat;
  44. background-size: contain;
  45. background-position: 50% 0;
  46. background-color: rgb(0, 0, 0);
  47. min-width: auto;
  48. width: 1920px;
  49. min-height: auto;
  50. height: 1080px;
  51. overflow: auto;
  52. .top {
  53. position: absolute;
  54. left: 0;
  55. top: 0;
  56. width: 100%;
  57. height: 80px;
  58. background-color: transparent;
  59. background: url(../assets/img/top_nav.png) no-repeat;
  60. background-position: 65% 0;
  61. border: none;
  62. overflow: hidden;
  63. }
  64. }
  65. }
  66. </style>