整体首页

dev_zt
wangqiujuan0808 2023-12-24 17:24:37 +08:00
parent 2d49a12157
commit bf04a98ddb
3 changed files with 149 additions and 122 deletions

View File

@ -92,8 +92,8 @@ export default {
overflow: hidden; overflow: hidden;
} }
.main { .main {
height: 100vh; height: calc(100% - 50px);
overflow: auto; // overflow: auto;
} }
::v-deep .el-card__body { ::v-deep .el-card__body {
height: 100%; height: 100%;

View File

@ -235,7 +235,7 @@ s {
::-webkit-scrollbar-thumb { ::-webkit-scrollbar-thumb {
/*滚动条里面小方块*/ /*滚动条里面小方块*/
border-radius: 5px; border-radius: 5px;
-webkit-box-shadow: inset 0 0 5px #00ffff; // -webkit-box-shadow: inset 0 0 5px #00ffff;
background: rgba(0, 0, 0, 0.2); background: rgba(0, 0, 0, 0.2);
} }
::-webkit-scrollbar-track { ::-webkit-scrollbar-track {

View File

@ -32,19 +32,8 @@ export default {
const router = useRouter(); const router = useRouter();
const store = useStore(); const store = useStore();
const state = reactive({ const state = reactive({
menus: [{ menus: [
name: '处理&回用系统', {
url: 'page',
parms: [{
name: '节水量',
value: '4',
dw: 'm³'
},{
name: '节碳量',
value: '0.67',
dw: 'kg'
}]
}, {
name: '屋顶绿化系统', name: '屋顶绿化系统',
url: 'green', url: 'green',
parms: [{ parms: [{
@ -56,7 +45,8 @@ export default {
value: '21', value: '21',
dw: '%' dw: '%'
}] }]
}, { },
{
name: '生物滞留&净化系统', name: '生物滞留&净化系统',
url: 'biology', url: 'biology',
parms: [{ parms: [{
@ -92,7 +82,8 @@ export default {
value: '12.5', value: '12.5',
dw: 'mg/L' dw: 'mg/L'
},] },]
}, { },
{
name: '气象监测系统', name: '气象监测系统',
url: 'weather', url: 'weather',
parms: [{ parms: [{
@ -104,6 +95,19 @@ export default {
value: '22', value: '22',
dw: '%' dw: '%'
}] }]
},
{
name: '处理&回用系统',
url: 'page',
parms: [{
name: '节水量',
value: '4',
dw: 'm³'
}, {
name: '节碳量',
value: '0.67',
dw: 'kg'
}]
}] }]
}) })
@ -151,6 +155,7 @@ export default {
position: absolute; position: absolute;
cursor: pointer; cursor: pointer;
} }
.hot0 { .hot0 {
top: 0px; top: 0px;
left: 597px; left: 597px;
@ -165,10 +170,12 @@ export default {
top: 524px; top: 524px;
left: 301px; left: 301px;
} }
.hot5 { .hot5 {
top: 172px; top: 172px;
left: 300px; left: 300px;
} }
.hot2 { .hot2 {
top: 580px; top: 580px;
left: 1061px; left: 1061px;
@ -186,76 +193,97 @@ export default {
flex-direction: column; flex-direction: column;
// border: 1px solid rgb(27, 187, 21); // border: 1px solid rgb(27, 187, 21);
justify-content: space-between; justify-content: space-between;
padding: 10px;
.one-card { .one-card {
width: 100%; width: 100%;
height: 140px; height: 140px;
// border: 1px solid red; background: #fff;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
box-shadow: 0 0 8px #99ACB0 inset; box-shadow: 0px 0px 5px rgba(154, 204, 235, 1);
cursor: pointer; cursor: pointer;
// color: #fff;
.one-card-left { .one-card-left {
width: 80%; width: 80%;
padding: 10px; padding: 10px;
font-weight: 800; font-weight: 800;
} }
.menu0 { .menu0 {
background: url(../assets/p1.png) center 40px no-repeat; background: url(../assets/p1.png) center 40px no-repeat;
background-size: 50% auto; background-size: 50% auto;
} }
.menu1 { .menu1 {
background: url(../assets/p2.png) center 40px no-repeat; background: url(../assets/p2.png) center 40px no-repeat;
background-size: 50% auto; background-size: 50% auto;
} }
.menu2 { .menu2 {
background: url(../assets/p3.png) center 40px no-repeat; background: url(../assets/p3.png) center 40px no-repeat;
background-size: 50% auto; background-size: 50% auto;
} }
.menu3 { .menu3 {
background: url(../assets/p4.png) center 40px no-repeat; background: url(../assets/p4.png) center 40px no-repeat;
background-size: 50% auto; background-size: 50% auto;
} }
.menu4 { .menu4 {
background: url(../assets/p5.png) center 40px no-repeat; background: url(../assets/p5.png) center 40px no-repeat;
background-size: 50% auto; background-size: 50% auto;
} }
.menu5 { .menu5 {
background: url(../assets/p6.png) center 40px no-repeat; background: url(../assets/p6.png) center 40px no-repeat;
background-size: 50% auto; background-size: 50% auto;
} }
.color0 { .color0 {
background: linear-gradient(to right, rgb(171, 187, 187), #7BB7B7); // background: linear-gradient(to right, rgb(171, 187, 187), #7BB7B7);
background: #92cd6f;
} }
.color1 { .color1 {
background: linear-gradient(to right, #e2eff1, #99ACB0); // background: linear-gradient(to right, #e2eff1, #99ACB0);
background: #73b47c;
} }
.color2 { .color2 {
background: linear-gradient(to right, #b8e5f5, #6ED2F6); // background: linear-gradient(to right, #b8e5f5, #6ED2F6);
background: #539c88;
} }
.color3 { .color3 {
background: linear-gradient(to right, #bfdad9, #A3D8D6); // background: linear-gradient(to right, #bfdad9, #A3D8D6);
background: #2294a4;
} }
.color4 { .color4 {
background: linear-gradient(to right, #c3d4cb, #81CFA3); // background: linear-gradient(to right, #c3d4cb, #81CFA3);
background: #21acc5;
} }
.color5 { .color5 {
background: linear-gradient(to right, #c3d4cb, #81CFA3); // background: linear-gradient(to right, #c3d4cb, #81CFA3);
background: #2b79aa;
} }
.one-card-right { .one-card-right {
width: 40%; width: 40%;
color: #3E9537; color: #fff;
padding: 10px; padding: 10px;
.parm { .parm {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
line-height: 30px; line-height: 30px;
align-items: start; align-items: start;
justify-content: space-around; justify-content: space-around;
.font24 { .font24 {
font-size: 24px; font-size: 24px;
color: #00646C;
font-size: 800; font-size: 800;
} }
} }
@ -263,5 +291,4 @@ export default {
} }
} }
} }</style>
</style>