<template>
  <div class="loginContainer">
    <img src="@/assets/img/login-pic.png" class="login-img" />
    <div class="loginLogoTop">
      <div class="loginLeft">
        <img src="@/assets/img/logo-21249f@2x.png" class="logoimg" />
        <span class="loginWordLeft"></span>
        <span class="loginWordRight">欢迎登录</span>
      </div>
    </div>
    <div class="login-wrapper">
      <div class="account-wrapper">
        <div class="account-title">
          <p class="account-title-item">账号密码登录</p>
        </div>
      </div>
      <div class="login-container">
        <!--          登录-->
        <LoginView :source="3" :is-system="false" />
      </div>
    </div>
    <div class="LoginBottom">
      <div class="LoginBottomT">
        {{ systemDesc }}
      </div>
      <div class="LoginBottomB">
        <div v-if="isQN" style="display: inline-block">
          <span class="LoginBottomBParticularsA">
            <a
              href="https://www.qianniaovip.com/pages/aboutus.html"
              target="_blank"
            >
              关于六牛科技
            </a>
          </span>
          <span class="LoginBottomBParticularsA">
            <a href="https://www.qianniaovip.com/index.html" target="_blank">
              用户协议
            </a>
          </span>
          <span class="LoginBottomBParticularsA">
            <a
              href="https://www.kancloud.cn/qianniaoyunshang/houtaishiyongliucheng/2002038"
              target="_blank"
            >
              帮助中心
            </a>
          </span>
          <span class="LoginBottomBParticularsA">
            <a
              href="https://www.kancloud.cn/qianniaoyunshang/houtaishiyongliucheng/2002038"
              target="_blank"
            >
              用户手册
            </a>
          </span>
        </div>
        <span class="LoginBottomBParticularsB">
          Copyright © 2019-{{ fullYear }} {{ companyName }} 版权所有
        </span>
      </div>
    </div>
  </div>
</template>

<script>
  import LoginView from "./components/login";
  import {
    companyName,
    icCase,
    companyAddress,
    systemDesc,
    isQN,
  } from "@/config/settings";
  export default {
    name: "Login",
    components: {
      LoginView,
    },
    data() {
      return {
        tab_on: "login_form",
        fullYear: new Date().getFullYear(),
        case_text: icCase,
        companyAddress: companyAddress,
        systemDesc: systemDesc,
        companyName: companyName,
        isQN: isQN,
      };
    },
  };
</script>

<style scoped lang="scss">
  .loginContainer {
    font-family: SourceHanSansCN-Normal, SourceHanSansCN;
    min-height: 730px;
    height: 100vh;
    background: linear-gradient(320deg, #2153d4 0%, #32c5ff 76%, #51d0ff 100%);
    /*background: url("../../assets/img/marshalling5.png") no-repeat center center;*/
    /*background-size: 100% 100%;*/
    .login-img {
      width: 36%;
      position: fixed;
      top: 50%;
      left: 13.1%;
      transform: translateY(-50%);
    }
    .loginLogoTop {
      width: 100%;
      height: 80px;
      background-color: #fff;
      position: fixed;
      top: 0;
      left: 0;
      line-height: 80px;
      .loginLeft {
        margin-left: 200px;
        .logoimg {
          height: 36px;
          cursor: pointer;
          display: inline-block;
          vertical-align: middle;
          margin-right: 6px;
        }
        .loginWordLeft {
          margin: 0 14px;
          width: 1px;
          height: 24px;
          display: inline-block;
          background-color: #e6e6e6;
          vertical-align: middle;
        }
        .loginWordRight {
          display: inline-block;
          font-size: 18px;
          vertical-align: middle;
          font-weight: 400;
        }
      }
    }
  }
  .login-wrapper {
    width: 400px;
    position: fixed;
    top: 50%;
    right: 18%;
    transform: translateY(-50%);
    .account-wrapper {
      border-top-left-radius: 12px;
      border-top-right-radius: 12px;
      background: #ffffff;
      transform: translateY(10px);
      height: 66px;
      .account-title {
        padding-left: 40px;
        .account-title-item {
          width: 276px;
          font-size: 18px;
          cursor: pointer;
          line-height: 66px;
          font-weight: bold;
          color: #2d405e;
        }
      }
    }
    .login-container {
      width: 400px;
      padding: 30px 40px 53px;
      border-radius: 12px;
      background: #ffffff;
      position: relative;
      .login-com {
        padding-bottom: 65px;
      }
      ::-webkit-input-placeholder {
        /* WebKit browsers */
        font-size: 14px;
        font-weight: 400;
        color: #879bba;
      }

      ::-moz-placeholder {
        /* Mozilla Firefox 19+ */
        font-size: 14px;
        font-weight: 400;
        color: #879bba;
        padding-left: 16px;
      }

      :-ms-input-placeholder {
        /* Internet Explorer 10+ */
        font-size: 14px;
        font-weight: 400;
        color: #879bba;
      }
    }
    .scan {
      width: 400px;
      height: 56px;
      background-color: #d7e5f9;
      position: absolute;
      bottom: 0;
      left: 0;
      border-radius: 0 0 12px 12px;
      text-align: center;
      line-height: 56px;
      font-size: 14px;
      font-weight: 400;
      color: #2d405e;
      .icon-lianjie {
        font-size: 14px;
      }
    }
  }
  .LoginBottom {
    width: 100%;
    height: 98px;
    position: absolute;
    bottom: 0;
    left: 0;
    .LoginBottomT {
      width: 100%;
      height: 46px;
      background-color: #ecf0f7;
      text-align: center;
      font-size: 16px;
      line-height: 46px;
      font-weight: 400;
      color: #2d405e;
    }
    .LoginBottomB {
      width: 100%;
      height: 52px;
      background-color: #fff;
      text-align: center;
      line-height: 52px;
      font-size: 12px;
      font-weight: 400;
      color: #4f5e7b;
      .LoginBottomBParticularsA {
        margin-left: 20px;
        a {
          color: #4f5e7b;
        }
      }
      .LoginBottomBParticularsB {
        margin-left: 32px;
      }
    }
  }
  @media screen and (max-width: 1450px) {
    .login-wrapper {
      right: 10%;
    }
  }
</style>
