AllPages.vue 2.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <template>
  2. <div class="index-box">
  3. <img src="../../build/fourBoxes-image/1.jpg" class="bg-image" />
  4. <div class="index-FourBoxes">
  5. <div class="index-FourBoxes-yushi test" @click="goYuShi">
  6. <img src="../../build/fourBoxes-image/浴室.png" class="Four-image" />
  7. <div style=" width: 108px; position: absolute; left: 10.8vw; top: 35vh;">
  8. <img style=" width:100%;" src="../assets/fourBoxes-2/浴室-2.png" />
  9. </div>
  10. </div>
  11. <div class="index-FourBoxes-yimao test">
  12. <img src="../../build/fourBoxes-image/衣帽间.png" class="Four-image" />
  13. <div style=" width: 108px; position: absolute; left: 59.8vw; top: 35vh;">
  14. <img style=" width:100%;" src="../assets/fourBoxes-2/衣帽间-2.png" />
  15. </div>
  16. </div>
  17. <div class="index-FourBoxes-keting test">
  18. <img src="../../build/fourBoxes-image/客厅.png" class="Four-image" />
  19. <div style=" width: 108px; position: absolute; left: 10.8vw; top: 77vh;">
  20. <img style=" width:100%;" src="../assets/fourBoxes-2/客厅-2.png" />
  21. </div>
  22. </div>
  23. <div class="index-FourBoxes-yangtai test">
  24. <img src="../../build/fourBoxes-image/阳台.png" class="Four-image" />
  25. <div style=" width: 108px; position: absolute; left: 59.8vw; top: 77vh;">
  26. <img style=" width:100%;" src="../assets/fourBoxes-2/阳台-2.png" />
  27. </div>
  28. </div>
  29. </div>
  30. </div>
  31. </template>
  32. <script>
  33. export default {
  34. methods: {
  35. goYuShi() {
  36. this.$router.push({ name: 'Test' })
  37. }
  38. }
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .index-box {
  43. width: 100vw;
  44. height: 100vh;
  45. display: flex;
  46. // justify-content: center;
  47. .bg-image {
  48. width: 100%;
  49. position: absolute;
  50. }
  51. .index-FourBoxes {
  52. position: relative;
  53. top: 16vh;
  54. // border: 1px solid #fff;
  55. width: 98%;
  56. height: 84%;
  57. margin: 0 auto;
  58. display: flex;
  59. flex-wrap: wrap;
  60. align-items: center;
  61. justify-content: center;
  62. .test {
  63. float: left;
  64. width: 48%;
  65. height: 49%;
  66. // border: 1px solid red;
  67. .Four-image {
  68. width: 100%;
  69. height: 100%;
  70. }
  71. }
  72. &-yushi,
  73. &-keting {
  74. margin-right: 4px;
  75. }
  76. &-yimao,
  77. &-yangtai {
  78. margin-left: 4px;
  79. }
  80. }
  81. }
  82. </style>