<template>
  <div class="index-box">
    <img src="../../build/fourBoxes-image/1.jpg" class="bg-image" />
    <div class="index-FourBoxes">
      <div class="index-FourBoxes-yushi test" @click="goYuShi">
        <img src="../../build/fourBoxes-image/浴室.png" class="Four-image" />
        <div style=" width: 108px; position: absolute; left: 10.8vw; top: 35vh;">
          <img style=" width:100%;" src="../assets/fourBoxes-2/浴室-2.png" />
        </div>
      </div>
      <div class="index-FourBoxes-yimao test">
        <img src="../../build/fourBoxes-image/衣帽间.png" class="Four-image" />
        <div style=" width: 108px; position: absolute; left: 59.8vw; top: 35vh;">
          <img style=" width:100%;" src="../assets/fourBoxes-2/衣帽间-2.png" />
        </div>
      </div>
      <div class="index-FourBoxes-keting test">
        <img src="../../build/fourBoxes-image/客厅.png" class="Four-image" />
        <div style=" width: 108px; position: absolute; left: 10.8vw; top: 77vh;">
          <img style=" width:100%;" src="../assets/fourBoxes-2/客厅-2.png" />
        </div>
      </div>
      <div class="index-FourBoxes-yangtai test">
        <img src="../../build/fourBoxes-image/阳台.png" class="Four-image" />
        <div style=" width: 108px; position: absolute; left: 59.8vw; top: 77vh;">
          <img style=" width:100%;" src="../assets/fourBoxes-2/阳台-2.png" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    goYuShi() {
      this.$router.push({ name: 'Test' })
    }
  }
}
</script>

<style lang="scss" scoped>
.index-box {
  width: 100vw;
  height: 100vh;
  display: flex;
  // justify-content: center;
  .bg-image {
    width: 100%;
    position: absolute;
  }
  .index-FourBoxes {
    position: relative;
    top: 16vh;
    // border: 1px solid #fff;
    width: 98%;
    height: 84%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    .test {
      float: left;
      width: 48%;
      height: 49%;
      // border: 1px solid red;
      .Four-image {
        width: 100%;
        height: 100%;
      }
    }
    &-yushi,
    &-keting {
      margin-right: 4px;
    }
    &-yimao,
    &-yangtai {
      margin-left: 4px;
    }
  }
}
</style>

