vue组件————登录页

<template>
  <div class="login">
        <div class="loginbox">
          <table>
            <tr>
              <td>用户名:</td>
              <td><input type="text" placeholder="账号 | 手机号 | 邮箱" v-model="formLogin.username"></td>
            </tr>
            <tr>
              <td>密  码:</td>
              <td><input type="password"  v-model="formLogin.password"></td>
            </tr>
            <tr style="height:10px;text-align:right;">
              <td></td>
              <td><a href="#" style="color:#fff;">忘记密码</a></td>
            </tr>
            <tr style="text-align:right;">
              <td>
                <input type="button" value="注册">
              </td>
              <td>
                <input type="button" @click="loginclick" value="登录">
              </td>
            </tr>
          </table>
        </div>
  </div>
</template>

<script>
export default {
    data(){
        return{
            formLogin:{
                'username':'',
                'password':'',
            }
        }
    },
    methods:{
        async loginclick(){
          console.log('登录')
        }
    }
}
</script>

<style lang='less'>
.login{
    position:absolute;
    right:100px;
    top:150px;
    height:350px;
    width:400px;
    .loginbox{
      width:400px;
      height:400px;
      background-color: rgb(30,30,30);
      opacity: 0.8;
      table{
        height:50px;
        line-height: 50px;
        margin:auto;
        padding-top:15%;
        text-align: center;
        tr{
          height:60px;
          input{
            height:30px;
            outline: none;
          }
          input[type=button]{
            height:40px;
            padding:10px 20px;
            margin: 10px;
            border-radius: 10px;
          }
        }
      }
    }
  }

</style>

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值