|
@@ -1,11 +1,15 @@
|
|
|
<template>
|
|
|
- <div class="login-container">
|
|
|
+ <div class="login-container" :style="{backgroundImage: isProd ? 'url('+ pageBg +')' : null}">
|
|
|
<div class="logo">
|
|
|
- <!-- <img src="../../assets/images/logo.png" /> -->
|
|
|
+ <img v-if="isProd" class="img1" src="../../assets/images/logo.png" />
|
|
|
+ <img v-else src="../../assets/images/logo2.png" class="img2" />
|
|
|
</div>
|
|
|
- <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on" label-position="left">
|
|
|
+ <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" :class="{prod: isProd}" auto-complete="on" label-position="left">
|
|
|
<div class="title-container">
|
|
|
- <h3 class="title">病案数据治理与服务平台</h3>
|
|
|
+ <h3 class="title">
|
|
|
+ <span v-if="isProd" class="title">滨州医学院烟台附属医院<br></span>
|
|
|
+ 病案数据治理与服务平台
|
|
|
+ </h3>
|
|
|
</div>
|
|
|
|
|
|
<el-form-item>
|
|
@@ -38,7 +42,7 @@
|
|
|
<el-button :loading="loading" type="primary" style="width: 100%; margin-bottom: 30px" @click.native.prevent="handleLogin">登录</el-button>
|
|
|
|
|
|
</el-form>
|
|
|
- <div class="msg">北京菁苗健康科技有限公司提供技术支持</div>
|
|
|
+ <div class="msg">Copyright 北京菁苗健康科技有限公司</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -64,6 +68,7 @@ export default {
|
|
|
}
|
|
|
};
|
|
|
return {
|
|
|
+ pageBg: require('../../assets/images/loginbj.jpg'),
|
|
|
loginForm: {
|
|
|
username: '',
|
|
|
password: '',
|
|
@@ -78,6 +83,11 @@ export default {
|
|
|
preUrl: ''
|
|
|
};
|
|
|
},
|
|
|
+ computed: {
|
|
|
+ isProd() {
|
|
|
+ return process.env.NODE_ENV === 'production'
|
|
|
+ }
|
|
|
+ },
|
|
|
watch: {
|
|
|
$route: {
|
|
|
handler: function (route) {
|
|
@@ -166,26 +176,18 @@ $cursor: #000;
|
|
|
}
|
|
|
.msg {
|
|
|
position: fixed;
|
|
|
- bottom: 38px;
|
|
|
+ bottom: 20px;
|
|
|
left: 0;
|
|
|
right: 0;
|
|
|
text-align: center;
|
|
|
color: #fff;
|
|
|
- font-size: 24px;
|
|
|
-}
|
|
|
-.logo {
|
|
|
- padding-left: 59px;
|
|
|
- padding-top: 63px;
|
|
|
- img {
|
|
|
- width: 304px;
|
|
|
- }
|
|
|
+ font-size: 16px;
|
|
|
}
|
|
|
/* reset element-ui css */
|
|
|
.login-container {
|
|
|
position: relative;
|
|
|
.el-input {
|
|
|
display: inline-block;
|
|
|
- height: 47px;
|
|
|
width: 85%;
|
|
|
|
|
|
input {
|
|
@@ -195,7 +197,6 @@ $cursor: #000;
|
|
|
border-radius: 0px;
|
|
|
padding: 12px 5px 12px 15px;
|
|
|
color: $light_gray;
|
|
|
- height: 47px;
|
|
|
caret-color: $cursor;
|
|
|
|
|
|
&:-webkit-autofill {
|
|
@@ -219,28 +220,44 @@ $cursor: #000;
|
|
|
$bg: #fff;
|
|
|
$dark_gray: #889aa4;
|
|
|
$light_gray: #000;
|
|
|
+::v-deep .el-form-item__content {
|
|
|
+ line-height: 1;
|
|
|
+}
|
|
|
.logo {
|
|
|
- img {
|
|
|
+ .img1 {
|
|
|
+ padding-top: 40px;
|
|
|
+ padding-left: 40px;
|
|
|
width: 400px;
|
|
|
}
|
|
|
+ .img2 {
|
|
|
+ width: 240px;
|
|
|
+ padding-top: 20px;
|
|
|
+ padding-left: 20px;
|
|
|
+ }
|
|
|
}
|
|
|
.login-container {
|
|
|
min-height: 100%;
|
|
|
width: 100%;
|
|
|
- // background: url('../../assets/images/loginbj.jpg') no-repeat;
|
|
|
+ background-repeat: no-repeat;
|
|
|
background-size: 100% 100%;
|
|
|
overflow: hidden;
|
|
|
|
|
|
.login-form {
|
|
|
background: #fff;
|
|
|
position: absolute;
|
|
|
- left: 50%;
|
|
|
+ width: 400px;
|
|
|
top: 50%;
|
|
|
- transform: translate(-50%, -50%);
|
|
|
- width: 520px;
|
|
|
+ right: 50%;
|
|
|
+ transform: translate(50%, -50%);
|
|
|
max-width: 100%;
|
|
|
- padding: 59px 35px 0;
|
|
|
- border-radius: 28px;
|
|
|
+ padding: 35px 35px 0;
|
|
|
+ border-radius: 12px;
|
|
|
+ &.prod {
|
|
|
+ top: 200px;
|
|
|
+ right: 100px;
|
|
|
+ width: 360px;
|
|
|
+ transform: none;
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
.tips {
|
|
@@ -267,18 +284,18 @@ $light_gray: #000;
|
|
|
position: relative;
|
|
|
|
|
|
.title {
|
|
|
- font-size: 26px;
|
|
|
+ font-size: 20px;
|
|
|
color: $light_gray;
|
|
|
- margin: 0px auto 40px auto;
|
|
|
- text-align: center;
|
|
|
+ margin: 0px auto 20px auto;
|
|
|
font-weight: bold;
|
|
|
+ text-align: center;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.show-pwd {
|
|
|
position: absolute;
|
|
|
right: 10px;
|
|
|
- top: 7px;
|
|
|
+ top: 14px;
|
|
|
font-size: 16px;
|
|
|
color: $dark_gray;
|
|
|
cursor: pointer;
|