parent
c9aa4b6f09
commit
6b6e81f9ce
|
After Width: | Height: | Size: 4.1 MiB |
@ -1,9 +1,51 @@
|
||||
<template>
|
||||
<div>
|
||||
登录
|
||||
<div class="login-container">
|
||||
<div style="width: 350px" class = "login-box">
|
||||
<div style="font-width: bold; font-size: 24px; text-align: center; margin-bottom: 30px">登 录</div>
|
||||
<el-form ref="form" :model="data.form">
|
||||
<el-form-item>
|
||||
<el-input prefix-icon="User" v-model="data.form.username" placeholder="请输入账号"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input prefix-icon="Lock" v-model="data.form.username" placeholder="请输入密码"></el-input>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-button type="primary" style="width: 100%">登 录</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div style="margin-top: 30px; text-align: left">
|
||||
还没有账号?点击这里进行<a href="/register">注册</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {reactive} from "vue";
|
||||
|
||||
</script>
|
||||
const data = reactive({
|
||||
form: {}
|
||||
})
|
||||
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.login-container {
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
background-image: url("@/assets/imgs/bg.png");
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
.login-box{
|
||||
background-color: rgba(255,255,255,.8);
|
||||
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
||||
padding: 30px;
|
||||
border-radius: 7px;
|
||||
}
|
||||
</style>
|
||||
Loading…
Reference in new issue