<template>
  <div :class="['app-container', 'home',processClass]">
    <iframe :src="bigDataUrl" frameborder="0"></iframe>
    <span @click="goBigData" class="full_screen-icon"></span>
  </div>
</template>

<script>
export default {
  name: "Index",
  data() {
    return {
      // 版本号
      version: "3.8.6",
      processClass: '',
      bigDataUrl: process.env.VUE_APP_DIG_DATA_URL
    };
  },
  created(){
    console.log("bigDataUrl===",this.bigDataUrl,process.env)
    // 根据环境切换名称和背景图
    // if(process.env.NODE_ENV == 'development') { // 开发环境
    //   this.processClass = 'login-dev';
    // } else if (process.env.NODE_ENV == 'staging') { // 测试环境
    //   this.processClass = 'login-stage';
    // } else if (process.env.NODE_ENV == 'production') { // 生产环境
    //   this.processClass = 'login-prod';
    // }
  },
  methods: {
    goTarget(href) {
      window.open(href, "_blank");
    },
    goBigData(){
      window.open(this.bigDataUrl, "_blank");
    }
  }
};
</script>

<style scoped lang="scss">
.app-container{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 84px);
  background-size: 100% 100%;
  position: relative;
  > iframe {
    width: 100%;
    min-height: calc(100vh - 84px);
  }
  .full_screen-icon {
    position: absolute;
    background-image: url("../assets/sssss.png") !important;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: 99;
    width: 28px;
    height: 28px;
    top: 43px;
    right: 80px;
  }
}
.login-prod {
  background-image: url("../assets/images/login-prod.jpg") !important;
}
.login-stage {
  background-image: url("../assets/index_bgm.jpg") !important;
}
.login-dev {
  background-image: url("../assets/index_bgm.jpg") !important;
}
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  font-family: "open sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  color: #676a6c;
  overflow-x: hidden;

  ul {
    list-style-type: none;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
  }
}
</style>

