Login.vue
2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<template>
<div class="login" :style="winSize">
<Row>
<Col span="24">
<div class="content">
<Form ref='data' :model="data" class="card-box loginform" :rules="rule_data" :style="formOffset">
<h3 class="title">系统登录</h3>
<Form-item prop="username">
<Input type="text" placeholder="用户名">
<Icon type="ios-person-outline" slot="prepend"></Icon>
</Input>
</Form-item>
<Form-item prop="password">
<Input type="password" placeholder="密码">
<Icon type="ios-locked-outline" slot="prepend"></Icon>
</Input>
</Form-item>
<Form-item label-width='0'>
<Button type="primary" long>登录</Button>
</Form-item>
<hr>
<div class="bottom">
<span>忘记密码</span>
<span><router-link to="/register">免费注册</router-link></span>
</div>
</Form>
</div>
</Col>
</Row>
</div>
</template>
<script>
import LoginJs from './Login.js';
module.exports = LoginJs;
</script>
<style scoped lang='less'>
.login {
background: #1F2D3D;
.ivu-form-item {
margin-bottom: 20px;
}
.bottom {
float: right;
margin-top: 10px; // color: red;
}
.bottom span {
margin-left: 20px;
}
.title {
// padding-left: 30px;
font-size: 20px;
}
.card-box {
box-shadow: 0 0px 8px 0 rgba(0, 0, 0, 0.06), 0 1px 0px 0 rgba(0, 0, 0, 0.02);
-webkit-border-radius: 5px;
border-radius: 5px;
-moz-border-radius: 5px;
background-clip: padding-box;
margin-bottom: 100px;
background-color: #F9FAFC;
border: 2px solid #8492A6;
}
.title {
margin: 0px auto 20px auto;
text-align: center;
color: #505458;
}
.loginform {
width: 350px;
padding: 25px 35px 15px 35px;
}
}
</style>