明树Git Lab

Commit 780a7ee2 authored by chenron's avatar chenron

优化

parent 9a41f96a
<template> <template>
<div class="home-container"> <div class="home-container">
<div class="header"> <div class="header">
<el-row :gutter="20"> <div class="header-left">
<el-col :span="5" class="header-left"> <div
<div class="nav-btn"
class="nav-btn" :class="{ active: selectedLeftBtn === 'equity' }"
:class="{ active: selectedLeftBtn === 'equity' }" @click="selectLeftBtn('equity')"
@click="selectLeftBtn('equity')" >
> 股权投资
股权投资 </div>
</div> <div
<div class="nav-btn"
class="nav-btn" :class="{ active: selectedLeftBtn === 'risk' }"
:class="{ active: selectedLeftBtn === 'risk' }" @click="selectLeftBtn('risk')"
@click="selectLeftBtn('risk')" >
> 固定风险投资
固定风险投资 </div>
</div> </div>
</el-col> <div class="header-middile">
<el-col :span="14" class="title-section"> 葛洲坝集团交通投资有限公司投资决策分析系统
<p class="system-title">葛洲坝集团交通投资有限公司投资决策分析系统</p> </div>
</el-col> <div class="header-right">
<el-col :span="5" class="header-right"> <div
<div class="nav-btn"
class="nav-btn" :class="{ active: selectedRightBtn === 'realestate' }"
:class="{ active: selectedRightBtn === 'realestate' }" @click="selectRightBtn('realestate')"
@click="selectRightBtn('realestate')" >
> 房地产投资
房地产投资 </div>
</div> <div
<div class="nav-btn"
class="nav-btn" :class="{ active: selectedRightBtn === 'finance' }"
:class="{ active: selectedRightBtn === 'finance' }" @click="selectRightBtn('finance')"
@click="selectRightBtn('finance')" >
> 融资建设投资
融资建设投资 </div>
</div> </div>
</el-col>
</el-row>
</div> </div>
<div class="content"> <div class="content">
<div class="fullscreen-btn"> <div class="fullscreen-btn">
...@@ -203,48 +201,65 @@ window.addEventListener("fullscreenchange", () => { ...@@ -203,48 +201,65 @@ window.addEventListener("fullscreenchange", () => {
.header { .header {
width: 100%; width: 100%;
.vh(height, 80); .vh(height, 80);
text-align: center; display: flex;
.title-section { justify-content: center;
align-items: flex-end;
.header-middile {
background-image: url("@/assets/images/header.png"); background-image: url("@/assets/images/header.png");
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center; background-position: center;
background-size: 170% 100%; // background-size: 170% 100%;
.vh(margin-top, -15); background-size: cover;
.font(28);
letter-spacing: 1px; letter-spacing: 1px;
font-weight: 400; font-weight: 400;
text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.25);
font-family: "YouSheBiaoTiHei"; font-family: "YouSheBiaoTiHei";
width: 950px; // .vw(width,950);
height: 74px; .vh(height,75);
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
@media screen and (max-width: 2560px) {
flex: 1;
.font(28);
}
@media screen and (max-width: 1920px) {
flex: 0.7;
.font(28);
}
@media screen and (max-width: 1440px) {
.font(24);
flex: 0.8;
}
// @media screen and (max-width: 1280px) {
// flex: 0.4;
// .font(20);
// }
} }
.header-left { .header-left {
display: flex; display: flex;
align-items: center; align-items: center;
.vw( padding-left, 75); justify-content: center;
.nav-btn { .nav-btn {
.vh(line-height, 36); .font(16);
.font(14);
cursor: pointer; cursor: pointer;
color: #fff; color: #fff;
font-family: YouSheBiaoTiYuan;
display: flex;
align-items: center;
justify-content: center;
.vh(height,36);
.vw(width,155);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: 85%, 100%;
background-position: center; background-position: center;
font-family: YouSheBiaoTiYuan; background-size: 100% 100%;
font-weight: 100;
&:not(.active) { &:not(.active) {
background-image: url("@/assets/images/left-btn.png"); background-image: url("@/assets/images/left-btn.png");
.vh(height,36);
.vw(width,208);
} }
&.active { &.active {
background-image: url("@/assets/images/left-hlightBtn.png"); background-image: url("@/assets/images/left-hlightBtn.png");
.vh(height,36);
.vw(width,208);
} }
} }
} }
...@@ -253,24 +268,24 @@ window.addEventListener("fullscreenchange", () => { ...@@ -253,24 +268,24 @@ window.addEventListener("fullscreenchange", () => {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
.nav-btn { .nav-btn {
.vh(line-height, 36); .font(16);
.font(14);
cursor: pointer; cursor: pointer;
color: #fff; color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-family: YouSheBiaoTiYuan;
.vh(height,36);
.vw(width,155);
background-repeat: no-repeat; background-repeat: no-repeat;
background-size: cover;
background-position: center; background-position: center;
font-family: YouSheBiaoTiYuan; background-size: 100% 100%;
&:not(.active) { &:not(.active) {
background-image: url("@/assets/images/right-btn.png"); background-image: url("@/assets/images/right-btn.png");
.vh(height,36);
.vw(width,208);
} }
&.active { &.active {
background-image: url("@/assets/images/right-hight-btn.png"); background-image: url("@/assets/images/right-hight-btn.png");
.vh(height,36);
.vw(width,208);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment