<template>
  <div class="big-box">
    <!-- 标题 -->
    <div class="head-bar">
      <img class="favicon-svg" src="../static/img/login-title.png" alt="" />
    </div>

    <div class="login-box">
      <div class="login-input">
        <span class="left-font">手机号码</span>
        <el-input
          size="mini"
          placeholder="输入您的手机号"
          clearable
          v-model="formLoginData.phone"
        >
        </el-input>
      </div>

      <div class="login-input">
        <span class="left-font">验证码</span>
        <el-input
          size="mini"
          placeholder="输入验证码"
          clearable
          v-model="formLoginData.code"
        >
          <span slot="append" class="right-font">获取验证码</span>
        </el-input>
      </div>

      <div class="form-footer-login">
        
        <span @click="linkSign">注册账号</span>
        <span>密码登陆</span>
      </div>

 
      <!-- 登陆按钮 -->
      <div
        class="button-box"
        style="margin-top: 60px"
      >
        <div class="primary-button">登陆</div>
      </div>

    </div>




    <!-- 页脚 -->
    <footer class="footer">
      Copyright © 2008-2019 珠海方诺信息科技有限公司 版权所有 粤ICP备13020798号
    </footer>
  </div>
</template>

<script>
export default {
  name: "Login",
  data() {
    return {
      formLoginData: {
        phone: "", // 手机号
        code: "", // 验证码
        name: "", // 个人昵称
        password: "", // 密码
        confirmPassword: "", // 确认密码
        isGetCode: false, // 获取验证码
        state: "sign", // 登陆或注册
        isCode: true, //  是否验证码登陆
        read: false, // 是否阅读
      },
    };
  },
  methods: {
    linkSign: function() {
      this.$router.push('/sign')
    }
  },
};
</script>

<style lang="scss" scoped>
.big-box {
  width: 100vw;
  height: 100vh;
  background-image: url("../static/img/login.png");
  background-size: 100vw 100vh;
  background-repeat: no-repeat;
  display: flex;
  flex-flow: column;
  user-select: none;

  .head-bar {
    color: #fff;
    font-size: 35px;
    margin: 90px auto 0;
    letter-spacing: 4px;
    .favicon-svg {
      vertical-align: -11px;
    }
  }

  .login-box {
    margin: 37px auto 0;
    width: 550px;
    box-shadow: 0px 2px 20px 0px rgba(0, 71, 137, 0.3);
    border-radius: 10px;
    background: #fff;
    box-sizing: border-box;
    padding: 40px;
    .login-input {
      display: flex;
      width: 100%;
      background: #ffffff;
      border-radius: 6px;
      border: 1px solid #dddddd;
      padding: 12px 0;
      box-sizing: border-box;
      height: 54px;
      align-items: center;
      margin-bottom: 20px;
      .left-font {
        width: 88px;
        text-align: center;
        color: #333333;
        font-size: 14px;
        border-right: 1px solid #dddddd;
        height: 30px;
        line-height: 30px;
      }
      .right-font {
        color: #1890ff;
        font-size: 14px;
        cursor: pointer;
      }
    }
    .form-footer-login {
      display: flex;
      flex-flow: row nowrap;
      justify-content: space-between;
      padding: 0 16px;
      color: #999999;
      font-size: 14px;
      span {
        cursor: pointer;
      }
    }
    .button-box {
      height: 54px;
    }
  }

  .footer {
    color: #fff;
    opacity: 0.7;
    font-size: 14px;
    text-align: center;
    width: 100vw;
    position: absolute;
    bottom: 100px;
  }
}
</style>