Commit 87f66fcb authored by 范加坤's avatar 范加坤

home

parent 11783928
...@@ -26,6 +26,17 @@ body { ...@@ -26,6 +26,17 @@ body {
height: 100%; height: 100%;
} }
#app { #app {
height: 100%; font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50;
background: url("./assets/img/bg.png") no-repeat;
background-size: 100% 100%;
background-position: center;
background-attachment: fixed;
width: 100vw;
height: 100vh;
overflow: hidden;
} }
</style> </style>
This diff is collapsed.
<template> <template>
<!-- 农村沼气转型升级 --> <!-- 农村沼气转型升级 -->
<div class="contain"> <div class="contain">
asdfasdf
<div class="header"> <div class="header">
<img src="../../assets/img/logo.png" alt />
<h3>农村沼气转型升级</h3>
<div class="time-info"> <div class="time-info">
<el-date-picker <el-date-picker
ref="datePicker" ref="datePicker"
......
...@@ -6,7 +6,7 @@ Vue.use(VueRouter); ...@@ -6,7 +6,7 @@ Vue.use(VueRouter);
const routes = [ const routes = [
{ {
path: "/home", path: "/",
name: "Home", name: "Home",
component: Home, component: Home,
children: [ children: [
......
...@@ -2,31 +2,31 @@ ...@@ -2,31 +2,31 @@
<div class="body"> <div class="body">
<div class="contain"> <div class="contain">
<div class="header"> <div class="header">
<div class> <div class="header-left">
<img src="../assets/img/logo.png" alt /> <img src="../assets/img/logo.png" alt />
<h3>农村农业生态建设</h3> <h3>农村农业生态建设</h3>
</div> </div>
<div class="menu"> <div class="menu">
<div class="a-menu" @click="$router.push('/home/methane_upgrade')"> <div class="a-menu" @click="$router.push('/methane_upgrade')">
11111 沼气
</div> </div>
<div <div
class="a-menu" class="a-menu"
@click="$router.push('/home/biomass_energy_warm')" @click="$router.push('/biomass_energy_warm')"
> >
22222 生物
</div> </div>
<div <div
class="a-menu" class="a-menu"
@click="$router.push('/home/biogas_manure_eco_agriculture')" @click="$router.push('/biogas_manure_eco_agriculture')"
> >
33333 沼肥
</div> </div>
<div <div
class="a-menu" class="a-menu"
@click="$router.push('/home/renewable_energy_village')" @click="$router.push('/renewable_energy_village')"
> >
444444 示范村
</div> </div>
</div> </div>
</div> </div>
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
<div class="content-cont"> <div class="content-cont">
<div style="width: 100%; height: 100%"> <div style="width: 100%; height: 100%">
<!-- <keep-alive> --> <!-- <keep-alive> -->
<!-- <router-view /> --> <router-view />
<!-- </keep-alive> --> <!-- </keep-alive> -->
</div> </div>
</div> </div>
...@@ -81,17 +81,36 @@ export default { ...@@ -81,17 +81,36 @@ export default {
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
z-index: 500; z-index: 500;
img { .header-left {
height: 6vh; display: flex;
margin-right: 1vh; align-items: center;
img {
height: 6vh;
margin-right: 1vh;
}
h3 {
font-size: 4.7vh;
line-height: 10vh;
font-weight: 700;
letter-spacing: 0.1vh;
color: @main-color;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
} }
h3 { .menu {
font-size: 4.7vh; display: flex;
line-height: 10vh; align-items: center;
font-weight: 700; margin-right: 40px;
letter-spacing: 0.1vh; .a-menu {
color: @main-color; width:50px ;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; height:50px ;
background-color: @main-color;
margin-right: 20px;
border-radius: 50%;
line-height: 50px;
text-align: center;
color: aliceblue;
}
} }
} }
} }
......
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