登录页
This commit is contained in:
@@ -1,29 +1,7 @@
|
||||
<template>
|
||||
<div id="userLayout" :class="['user-layout-wrapper',device]">
|
||||
<div :class="!mobile ? 'container' : 'container-mobile'">
|
||||
<div class="top" id="top" v-if="!mobile">
|
||||
<div class="logo">
|
||||
<img id="logo" src="~@/assets/logo.png" alt="">
|
||||
</div>
|
||||
<div id="company">
|
||||
<span id="c-company">合众未来</span>
|
||||
<span id="p-company">HEZHONGWEILAI</span>
|
||||
</div>
|
||||
</div>
|
||||
<div v-if="mobile">
|
||||
<span class="top-bg"><img src="~/@assets/mobileBg.png" alt=""></span>
|
||||
<span class="btm-bg"><img src="~/@assets/mobileHome.png" alt=""></span>
|
||||
</div>
|
||||
<div v-if="mobile" class="mobile">
|
||||
<div class="logo">
|
||||
<img src="~@/assets/logo.png" alt="">
|
||||
</div>
|
||||
<div class="company">
|
||||
<span>合众未来</span>
|
||||
<span>HEZHONGWEILAI</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="illustration" v-if="!mobile">
|
||||
<div class="container">
|
||||
<div class="illustration">
|
||||
<img src="@/assets/home.png" alt="">
|
||||
</div>
|
||||
<route-view></route-view>
|
||||
@@ -77,134 +55,27 @@
|
||||
}
|
||||
</script>
|
||||
<style lang="less" >
|
||||
#userLayout.user-layout-wrapper{
|
||||
#userLayout.user-layout-wrapper{
|
||||
height: 100%;
|
||||
background: #fff;
|
||||
overflow: auto;
|
||||
.container {
|
||||
width: 100%;
|
||||
min-width: 1366px;
|
||||
min-height: 768px;
|
||||
height: 100%;
|
||||
background: #4daaff;
|
||||
overflow: auto;
|
||||
.container {
|
||||
width: 100%;
|
||||
min-width: 770px;
|
||||
min-height: 500px;
|
||||
height: 100%;
|
||||
position: relative;
|
||||
.top {
|
||||
position: absolute;
|
||||
left: 2%;
|
||||
top: 3%;
|
||||
min-width: 100px;
|
||||
max-height: 50px;
|
||||
z-index: 9;
|
||||
.logo {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: absolute;
|
||||
overflow: hidden;
|
||||
img {
|
||||
display: block;
|
||||
max-width: 100%;
|
||||
min-height: 30px;
|
||||
}
|
||||
}
|
||||
#company {
|
||||
position: absolute;
|
||||
max-height: 62px;
|
||||
left: 5.5rem;
|
||||
min-height: 61px;
|
||||
color: #000;
|
||||
white-space: nowrap;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
span {
|
||||
display: block;
|
||||
&:first-child {
|
||||
font-size: 1.8rem;
|
||||
font-weight: 700;
|
||||
letter-spacing: 0.3rem;
|
||||
}
|
||||
&:last-child {
|
||||
font-size: 0.9rem;
|
||||
line-height: 0.9rem;
|
||||
letter-spacing: 0.06rem;
|
||||
font-weight: 700;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
|
||||
.illustration{
|
||||
position: absolute;
|
||||
max-width: 50%;
|
||||
max-height: 100%;
|
||||
height: 100%;
|
||||
min-width: 400px;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
img{
|
||||
max-width: 70%;
|
||||
}
|
||||
}
|
||||
}
|
||||
.container-mobile{
|
||||
/*移动端的logo样式*/
|
||||
.top-bg{
|
||||
width: 100%;
|
||||
position: absolute;
|
||||
top: -3.5rem;
|
||||
img{
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.btm-bg{
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
max-width: 75%;
|
||||
overflow: hidden;
|
||||
img{
|
||||
margin-left: -5rem;
|
||||
max-width: 100%;
|
||||
margin-bottom: -3rem;
|
||||
}
|
||||
}
|
||||
background: #f0f2f5;
|
||||
width: 100%;
|
||||
.illustration{
|
||||
position: absolute;
|
||||
max-height: 100%;
|
||||
height: 100%;
|
||||
.mobile{
|
||||
position: absolute;
|
||||
top: 6rem;
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.logo{
|
||||
max-width: 4rem;
|
||||
img{
|
||||
max-width: 100%;
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
}
|
||||
.company{
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: flex-end;
|
||||
span:first-child{
|
||||
color: #000;
|
||||
font-size: 1.6rem;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.3rem;
|
||||
}
|
||||
span:last-child{
|
||||
color: #000;
|
||||
font-size: 0.8rem;
|
||||
line-height: 1.2rem;
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
min-width: 50%;
|
||||
img{
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
@@ -17,7 +17,7 @@
|
||||
:type="collapsed ? 'menu-unfold' : 'menu-fold'"
|
||||
@click="toggle"/>
|
||||
|
||||
<span v-if="device === 'desktop'">欢迎进入 Jero-Boot 平台</span>
|
||||
<span v-if="device === 'desktop'">欢迎进入来款系统管理平台</span>
|
||||
<span v-else>Jero-Boot</span>
|
||||
|
||||
<user-menu :theme="theme"/>
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
<router-link :to="{name:'dashboard'}">
|
||||
|
||||
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
|
||||
<img v-if="navTheme === 'dark'" src="~@/assets/logo.png" alt="logo">
|
||||
<img v-else src="~@/assets/logo.png" alt="logo">
|
||||
<img v-if="navTheme === 'dark'" src="~@/assets/logo.png" alt="logo" :class='smallImg ? "smallImg": ""'>
|
||||
<img v-else src="~@/assets/logo.png" alt="logo" :class='smallImg ? "smallImg": ""'>
|
||||
<!-- update-begin- author:sunjianlei --- date:20190814 --- for: logo颜色根据主题颜色变化 -->
|
||||
|
||||
<h1 v-if="showTitle">{{ title }}</h1>
|
||||
<!-- <h1 v-if="showTitle">{{ title }}</h1>-->
|
||||
</router-link>
|
||||
</div>
|
||||
</template>
|
||||
@@ -29,6 +29,16 @@
|
||||
default: true,
|
||||
required: false
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
smallImg: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
sidebarOpened(val) {
|
||||
this.smallImg = !val
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
@@ -55,5 +65,8 @@
|
||||
&.light .logo {
|
||||
background-color: @primary-color;
|
||||
}
|
||||
.smallImg {
|
||||
height: 16px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user