<template>
  <div class="virtual">
    <!-- <NavBar /> -->
    <!-- <h1>虚拟展厅</h1> -->
    <!-- <Footer /> -->
    <el-row :gutter="40" class="list">
      <el-col :span="12">
        <div class="img" @click="handleClick('1')">
          <img src="@/assets/imgs/virtual/1.png" alt="" />
          <div class="desc">
            <span class="name">贵州世居民族展历史篇</span>——
            <span class="deptName">贵州省民族博物馆</span>
          </div>
          <div class="play">
            <i class="el-icon-caret-right"></i>
          </div>
        </div>
      </el-col>
      <el-col :span="12">
        <div class="img" @click="handleClick('2')">
          <img src="@/assets/imgs/virtual/2.png" alt="" />
          <div class="desc">
            <span class="name">贵州世居民族展文化篇</span>——
            <span class="deptName">贵州省民族博物馆</span>
          </div>
          <div class="play">
            <i class="el-icon-caret-right"></i>
          </div>
        </div>
      </el-col>
    </el-row>
  </div>
</template>

<script>
import NavBar from "@/components/NavBar";
import Footer from "@/components/Footer";
export default {
  name: "Virtual",
  components: { NavBar, Footer },
  methods: {
    handleClick(value) {
      switch (value) {
        case "1":
          window.open('https://720yun.com/t/6cvkbyf7z7w?scene_id=90524980#scene_id=90524980')
          break;
        case "2":
          window.open('https://720yun.com/t/99vkbwqb02e?scene_id=91494908#scene_id=91494908')
          break;
      }
    },
  },
};
</script>

<style lang='scss' scoped>
.virtual {
  display: flex;
  justify-content: center;
  .list {
    max-width: 1200px;
    .img {
      width: 100%;
      position: relative;
      overflow: hidden;
      &:hover {
        img {
          transform: scale(1.1);
        }
      }
      img {
        width: 100%;
        transition: all 0.5s ease;
      }
      .desc {
        position: absolute;
        width: 100%;
        padding: 10px;
        background-color: #fff;
        opacity: 0.7;
        bottom: 0;
        left: 0;
      }
      .play {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        border: 2px solid #fff;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        justify-content: center;
        align-items: center;
        i {
          font-size: 40px;
          color: #fff;
        }
      }
    }
  }
}
</style>