|
|
|
|
@ -1,10 +1,15 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="login-container">
|
|
|
|
|
|
|
|
|
|
<vue-particles color="#ffffff" :particleOpacity="0.7" :particlesNumber="80" shapeType="circle" :particleSize="4"
|
|
|
|
|
linesColor="#ffffff" :linesWidth="1" :lineLinked="true" :lineOpacity="0.4" :linesDistance="150" :moveSpeed="3"
|
|
|
|
|
:hoverEffect="true" hoverMode="grab" :clickEffect="true" clickMode="push"> </vue-particles>
|
|
|
|
|
|
|
|
|
|
<el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form" auto-complete="on"
|
|
|
|
|
label-position="left">
|
|
|
|
|
|
|
|
|
|
<div class="title-container">
|
|
|
|
|
<h3 class="title">智能工具箱管理平台</h3>
|
|
|
|
|
<h3 class="title">朗业前端初始化界面</h3>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-form-item prop="username">
|
|
|
|
|
@ -101,7 +106,7 @@
|
|
|
|
|
this.$refs.loginForm.validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
this.loading = true
|
|
|
|
|
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
|
|
|
|
this.$store.dispatch('user/login', this.loginForm).then(() => {
|
|
|
|
|
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: this.redirect || '/'
|
|
|
|
|
@ -121,12 +126,18 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
|
#particles-js {
|
|
|
|
|
width: 100%;
|
|
|
|
|
height: 100%;
|
|
|
|
|
position: absolute;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* 修复input 背景不协调 和光标变色 */
|
|
|
|
|
/* Detail see https://github.com/PanJiaChen/vue-element-admin/pull/927 */
|
|
|
|
|
|
|
|
|
|
$bg:#283443;
|
|
|
|
|
$light_gray:#fff;
|
|
|
|
|
$cursor: #fff;
|
|
|
|
|
$bg:#122583;
|
|
|
|
|
$light_gray:#122583;
|
|
|
|
|
$cursor: #122583;
|
|
|
|
|
|
|
|
|
|
@supports (-webkit-mask: none) and (not (cater-color: $cursor)) {
|
|
|
|
|
.login-container .el-input input {
|
|
|
|
|
@ -168,23 +179,25 @@
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
|
$bg:#2d3a4b;
|
|
|
|
|
$dark_gray:#889aa4;
|
|
|
|
|
$light_gray:#eee;
|
|
|
|
|
$bg:#122583;
|
|
|
|
|
$dark_gray:#122583;
|
|
|
|
|
$light_gray:#122583;
|
|
|
|
|
|
|
|
|
|
.login-container {
|
|
|
|
|
min-height: 100%;
|
|
|
|
|
width: 100%;
|
|
|
|
|
background-color: $bg;
|
|
|
|
|
//background-color: $bg;
|
|
|
|
|
background: url("../../assets/bg.jpg") no-repeat;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
|
|
|
|
|
.login-form {
|
|
|
|
|
position: relative;
|
|
|
|
|
width: 520px;
|
|
|
|
|
max-width: 100%;
|
|
|
|
|
padding: 160px 35px 0;
|
|
|
|
|
margin: 0 auto;
|
|
|
|
|
padding: 20px 35px 0;
|
|
|
|
|
margin: 160px auto;
|
|
|
|
|
overflow: hidden;
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.tips {
|
|
|
|
|
|