安琪酵母(西藏)益生菌信息采集中心智能实验室
longyvfengyun
2023-10-09 d310c767eef62fc8202f531e7492ecd58779af72
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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
<script setup>
import VerifyComponent from "@/components/VerifyComponent.vue";
import { UserFilled, Lock } from "@element-plus/icons-vue";
import loginModule from "@/views/login/js/loginModule";
 
let {loading, loginForm, verifyCode, onSubmit, changeVerifyCode} = loginModule();
</script>
 
<template>
    <div class="login-container">
        <div class="login-container-absolute">
            <div class="login-wrapper">
                <div class="sliderCon">
                    <div class="logo">
                        安琪酵母(西藏)益生菌信息采集中心智能实验室
                    </div>
                    <img src="./images/login-img-blue.png" class="picImg"  alt=""/>
                </div>
                <div class="login_box">
                    <div class="title">用户登录</div>
                    <el-form
                        label-width="0px"
                        class="login_from"
                        :model="loginForm"
                        ref="loginFormRef">
                        <!-- 用户名 -->
                        <el-form-item prop="username">
                            <el-input
                                size="large"
                                class="input"
                                v-model="loginForm.username"
                                :prefix-icon="UserFilled"
                                @keyup.enter.native.stop="onSubmit"></el-input>
                        </el-form-item>
                        <!-- 密码 -->
                        <el-form-item prop="password">
                            <el-input
                                size="large"
                                class="input"
                                v-model="loginForm.password"
                                :prefix-icon="Lock"
                                type="password"
                                @keyup.enter.native.stop="onSubmit"></el-input>
                        </el-form-item>
                        <el-form-item>
                            <el-row :gutter="8">
                                <el-col :span="14">
                                    <el-input
                                        size="large"
                                        class="input"
                                        placeholder="验证码"
                                        v-model="loginForm.verify"
                                        @keyup.enter.native.stop="onSubmit"
                                    ></el-input>
                                </el-col>
                                <el-col :span="10">
                                    <verify-component
                                        :identifyCode="verifyCode"
                                        @click="changeVerifyCode"></verify-component>
                                </el-col>
                            </el-row>
                        </el-form-item>
                        <el-form-item class="btns">
                            <el-button
                                :loading="loading"
                                type="primary"
                                @click="onSubmit"
                                class="loginBtn">登录</el-button>
                        </el-form-item>
                    </el-form>
                </div>
            </div>
        </div>
    </div>
</template>
 
<style lang="less" scoped>
.login-container {
    position: relative;
    height: 100%;
    box-sizing: border-box;
    background-image: url("./images/login-bg-blue.jpg");
    background-size: 100% 100%;
    .login-container-absolute {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        overflow: hidden;
        overflow-y: auto;
    }
}
.login-wrapper {
    height: 100%;
    box-sizing: border-box;
    display: flex;
    justify-content: space-around;
    align-items: center;
    .sliderCon {
        margin-top: -6vh;
        .logo {
            display: flex;
            align-items: center;
            font-size: 48px;
            color: #007fe1;
            font-weight: bold;
            text-align: center;
 
            .logoImg {
                height: 50px;
                margin-right: 14px;
            }
        }
 
        .picImg {
            width: 580px;
            margin-top: 12vh;
        }
    }
 
    /* 登录框 */
    .login_box {
        width: 430px;
        // height: 400px;
        background-color: #fff;
        border-radius: 3px;
        padding: 40px 60px;
        box-sizing: border-box;
        position: relative;
        z-index: 2;
        // outline: 8px solid rgba(255, 255, 255, 0.4);
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.4);
 
        .title {
            font-size: 20px;
            color: #007fe1;
            font-weight: bold;
            margin-bottom: 30px;
        }
 
        /* v图片的盒子 */
 
        .avatar {
            height: 130px;
            width: 130px;
            border: 1px solid #eee;
            border-radius: 50%;
            /* 边框圆角 */
            padding: 10px;
            box-shadow: 0 0 10px #ddd;
            position: absolute;
            left: 50%;
            transform: translate(-50%, -50%);
            background-color: #fff;
            /* v图片 */
 
            img {
                width: 130px;
                height: 130px;
                border-radius: 50%;
                background-color: #eeeeee;
            }
        }
    }
}
/* 登录按钮 */
.btns {
    text-align: center;
 
    .loginBtn {
        width: 100%;
        display: block;
        text-align: center;
        height: 48px;
        margin-top: 10px;
    }
}
</style>