<template>
  <div class="login">
    <div class="login-main">
      <h1>欢迎登录启服通</h1>
      <el-tabs v-model="activeName">
        <el-tab-pane label="短信验证码登录" name="first">
          <VerificationCode />
        </el-tab-pane>
        <el-tab-pane label="账号密码登录" name="second">
          <Username />
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import VerificationCode from "./verificationCode";
import Username from "./username";
export default {
  components: {
    VerificationCode,
    Username
  },
  data() {
    return {
      activeName: "second"
    };
  },
  mounted() {},
  methods: {}
};
</script>

<style lang="scss">
.login {
  width: 555px;
  height: 557px;
}
.login-main {
  width: 555px;
  height: 557px;
  background: #fff;
  padding: 50px 112px 0;
  h1 {
    width: 100%;
    margin: 0 0 39px;
    text-align: center;
    font-size: 18px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: rgba(51, 51, 51, 1);
    line-height: 25px;
  }
  .el-tabs__nav-wrap::after {
    display: none;
  }
  .el-tabs__nav {
    width: 100%;
    display: flex;
    .el-tabs__item {
      flex: 1;
      text-align: center;
      font-size: 14px;
      font-family: PingFangSC-Regular, PingFang SC;
      font-weight: 400;
      line-height: 20px;
    }
  }
  .el-tabs__content {
    width: 100%;
  }
}
</style>
