<template>
  <div class="vx-container">
    <div class="general-header"></div>
    <div class="header-bg"></div>
    <div class="general-view">
      <router-view />
    </div>

    <div class="general-footnote">
      <div class="app-download-hint">查看更多信息请下载 “安全木渎APP”</div>
      <div class="download-btn" @click="handlerDownload()">
        <span>></span>
        <a>点击下载</a>
        <span><</span>
      </div>
    </div>
    <div class="footonte-bg"></div>
  </div>
</template>

<script>
export default {
  data() {
    return {}
  },
  created() {},
  methods: {
    handlerDownload() {
      this.$installApk()
    },
  },
}
</script>

<style lang="scss" scoped>
.vx-container {
  position: relative;
  top: 0;
  left: 0;
  min-height: 100vh;
  background: url('~@/assets/image/vxEwm/middle-bg.png');
  background-size: cover;
  overflow: hidden;

  .header-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 25vh;
    width: 100%;
    z-index: 9;

    background: url('~@/assets/image/vxEwm/bg1.png');
    background-size: 100% 100%;
  }
  .general-header {
    position: absolute;
    top: 1vh;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 4.8rem;
    height: 8.3vh;
    background: url('~@/assets/image/vxEwm/logo.png') center no-repeat;
    background-size: 100% auto;
  }

  .general-view {
    position: absolute;
    top: 46%;
    transform: translateY(-46%);
    height: 79%;
    width: 100%;
    background: #e8f3fc;
    border-radius: 30px;
    z-index: 20;
    overflow: hidden;
    box-sizing: border-box;
    padding: 0.3rem 0.21rem 0 0.21rem;
  }
  .footonte-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 9;
    width: 100%;
    height: 15vh;
    background: url('~@/assets/image/vxEwm/bg2.png');
    background-size: 100% 100%;
  }
  .general-footnote {
    position: absolute;
    bottom: 3vh;
    left: 0;
    z-index: 10;
    width: 100%;
    .app-download-hint {
      margin-top: 0.1rem;
      font-size: 0.24rem;
      font-weight: 800;
      color: #feffff;
      font-weight: bold;
      text-shadow: 0px 0px 0px #0e50b4;
    }
    .download-btn {
      margin-top: 0.1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #feffff;
      a {
        margin: 0 0.1rem;
        text-decoration: underline;
      }
    }
  }
}
</style>
