Commit c1e410ce authored by Kimber's avatar Kimber
parents fab24df4 60093741
...@@ -8,4 +8,4 @@ module.exports = { ...@@ -8,4 +8,4 @@ module.exports = {
presets: [ presets: [
'@vue/app' '@vue/app'
] ]
} }
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -900,9 +900,9 @@ ...@@ -900,9 +900,9 @@
const host = location.protocol + '//' + (location.hostname === '192.168.3.226' ? '192.168.3.37' : '192.168.13.200') + ':8013'; const host = location.protocol + '//' + (location.hostname === '192.168.3.226' ? '192.168.3.37' : '192.168.13.200') + ':8013';
// 小黄 // 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.3.226' ? '192.168.2.200' : '192.168.13.200') + ':8013'; //const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.2.200' : '192.168.13.200') + ':8013';
const selfHost = location.hostname === '192.168.3.226' ? 'http://192.168.3.226:8057' : location.protocol + '//' + window.location.host; const selfHost = location.hostname === '192.168.3.38' ? 'http://192.168.3.38:8057' : location.protocol + '//' + window.location.host;
const token = Cookies.get('ELADMIN-TOEKN'); const token = Cookies.get('ELADMIN-TOEKN');
axios = axios.create({ axios = axios.create({
......
src/assets/home4Index/icon1.png

5.18 KB | W: | H:

src/assets/home4Index/icon1.png

49.2 KB | W: | H:

src/assets/home4Index/icon1.png
src/assets/home4Index/icon1.png
src/assets/home4Index/icon1.png
src/assets/home4Index/icon1.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home4Index/icon2.png

7.22 KB | W: | H:

src/assets/home4Index/icon2.png

52.2 KB | W: | H:

src/assets/home4Index/icon2.png
src/assets/home4Index/icon2.png
src/assets/home4Index/icon2.png
src/assets/home4Index/icon2.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home4Index/icon3.png

5.85 KB | W: | H:

src/assets/home4Index/icon3.png

63.2 KB | W: | H:

src/assets/home4Index/icon3.png
src/assets/home4Index/icon3.png
src/assets/home4Index/icon3.png
src/assets/home4Index/icon3.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home4Index/icon4.png

4.49 KB | W: | H:

src/assets/home4Index/icon4.png

68.1 KB | W: | H:

src/assets/home4Index/icon4.png
src/assets/home4Index/icon4.png
src/assets/home4Index/icon4.png
src/assets/home4Index/icon4.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home4Index/icon5.png

866 Bytes | W: | H:

src/assets/home4Index/icon5.png

79.7 KB | W: | H:

src/assets/home4Index/icon5.png
src/assets/home4Index/icon5.png
src/assets/home4Index/icon5.png
src/assets/home4Index/icon5.png
  • 2-up
  • Swipe
  • Onion skin
src/assets/home4Index/icon6.png

1.51 KB | W: | H:

src/assets/home4Index/icon6.png

83.7 KB | W: | H:

src/assets/home4Index/icon6.png
src/assets/home4Index/icon6.png
src/assets/home4Index/icon6.png
src/assets/home4Index/icon6.png
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed.
<template> <template>
<div class="login" :style="'background-image:url(' + Background + ');'"> <div class="login" :style="'background-image:url(' + Background + ');'">
<div class="topTitle" :style="'background-image:url(' + Title + ');'"> <div class="topTitle" :style="'background-image:url(' + Title + ');'">
中和地信企业管理平台 <div>中和地信企业管理平台</div>
</div> </div>
<div class="subTopTitle"> <div class="subTopTitle">
<h2 :style="'background-image:url(' + Welcome + ');'"> <h2 class="left-title" style="display: flex;align-items: center;">
<img src="@/assets/home4Index/icon5.png" /> <img src="@/assets/home4Index/logo.png" width="25" height="25"/>
<div class="wrapper" style=" position: absolute; <div class="floating-text">
top: 38px; 中和地信有限公司欢迎您!
left: 86px;
width: 300px;
padding-left: 20px;
overflow: hidden;
"> <div class="floating-text">
中和地信有限公司欢迎您!
</div>
</div> </div>
</h2> </h2>
<h2 @click="navTo('admin')" style="cursor: pointer;"> <h2 @click="navTo('admin')" style="cursor: pointer;">
<img src="@/assets/home4Index/icon6.png" />管理后台 <img src="@/assets/home4Index/icon.png" />管理后台
</h2> </h2>
</div> </div>
<div class="wrapper"> <div class="wrapper">
<div class="content"> <div class="content">
<ul> <div class="inner-div">
<li <ul>
v-for="(item, index) in dataList" <li
:key="index" v-for="(item, index) in dataList"
@click="navTo(item.label)" :key="index"
> @click="navTo(item.name)"
<div class="itemDiv"> @mouseover="item.hover = true"
<img @mouseleave="item.hover = false"
:src="require(`@/assets/home4Index/icon${index + 1}.png`)" >
alt="" <div class="itemDiv">
/> <img
<p> :src="require(`@/assets/home4Index/${item.hover ? item.actIcon : item.defIcon}`)"
<span>{{ item.label }}</span> alt=""
<img src="@/assets/home4Index/underline2.png" /> />
</p> <p>
</div> <span>{{ item.name }}</span>
</li> </p>
</ul> </div>
</li>
</ul>
</div>
</div> </div>
</div> </div>
<div class="bottomTitle">@中和地信有限公司</div> <div class="bottomTitle">@中和地信有限公司</div>
...@@ -52,8 +48,9 @@ ...@@ -52,8 +48,9 @@
<script> <script>
import qs from "qs"; import qs from "qs";
import Background from "@/assets/home4Index/bg.png"; import Background from "@/assets/home4Index/newbg.gif";
import Title from "@/assets/home4Index/title.png"; import Title from "@/assets/home4Index/title.png";
import bgout from "@/assets/home4Index/bg.png";
import Welcome from "@/assets/home4Index/underline.png"; import Welcome from "@/assets/home4Index/underline.png";
import { mapGetters } from "vuex"; import { mapGetters } from "vuex";
...@@ -94,6 +91,13 @@ export default { ...@@ -94,6 +91,13 @@ export default {
}, },
}, },
created() { created() {
this.dataList = [
{id:1, name:'应急管理', defIcon:'icon1.png', actIcon:'icon2.png', hover: false},
{id:2, name:'电子档案馆', defIcon:'icon9.png', actIcon:'icon10.png', hover: false},
{id:3, name:'自然资源', defIcon:'icon3.png', actIcon:'icon4.png', hover: false},
{id:4, name:'水利系统', defIcon:'icon7.png', actIcon:'icon8.png', hover: false},
{id:5, name:'生态环境', defIcon:'icon5.png', actIcon:'icon6.png', hover: false},
]
// // 按照不同域名加载不同页面样式(企业、应急局),加载完毕后再显示页面 // // 按照不同域名加载不同页面样式(企业、应急局),加载完毕后再显示页面
// const host = window.location.host; // const host = window.location.host;
// if (host === "yingji.longxijiancai.com") { // if (host === "yingji.longxijiancai.com") {
...@@ -102,9 +106,9 @@ export default { ...@@ -102,9 +106,9 @@ export default {
// if (host === "qiye.longxijiancai.com") { // if (host === "qiye.longxijiancai.com") {
// this.userStyle = "企业"; // this.userStyle = "企业";
// } // }
menuApi.getMenusHome().then((res) => { // menuApi.getMenusHome().then((res) => {
this.dataList = res.body; // this.dataList = res.body;
}); // });
}, },
methods: { methods: {
navTo(type) { navTo(type) {
...@@ -128,6 +132,9 @@ export default { ...@@ -128,6 +132,9 @@ export default {
} else if (type === "电子档案馆") { } else if (type === "电子档案馆") {
// this.$router.push({ path: "home4Center" }); // this.$router.push({ path: "home4Center" });
this.$router.push({ path: "/user/center" }); this.$router.push({ path: "/user/center" });
}else if (type === "生态环境") {
// this.$router.push({ path: "home4Center" });
// this.$router.push({ path: "/user/center" });
} }
}, },
}, },
...@@ -146,19 +153,6 @@ export default { ...@@ -146,19 +153,6 @@ export default {
} }
} }
.floating-text {
font-size: 18px;
line-height: 1;
color: #fff;
text-shadow: 0 0 5px #fff;
animation: floatShadow;
animation-name: floatShadow;
animation-duration: 10s;
animation-iteration-count: infinite;
animation-timing-function: linear;
// position: absolute;
// top: 38px;
}
.subTopTitle { .subTopTitle {
display: -webkit-box; display: -webkit-box;
...@@ -170,7 +164,7 @@ export default { ...@@ -170,7 +164,7 @@ export default {
top: 10px; top: 10px;
width: 100%; width: 100%;
/* z-index: 99999; */ /* z-index: 99999; */
height: 110px; height: 50px;
color: #fff; color: #fff;
font-size: 12px; font-size: 12px;
padding: 10px 43px; padding: 10px 43px;
...@@ -196,7 +190,6 @@ export default { ...@@ -196,7 +190,6 @@ export default {
position: absolute; position: absolute;
top: 0; top: 0;
width: 100%; width: 100%;
color: #fff;
text-align: center; text-align: center;
background-size: cover; background-size: cover;
height: 100px; height: 100px;
...@@ -204,6 +197,26 @@ export default { ...@@ -204,6 +197,26 @@ export default {
line-height: 100px; line-height: 100px;
font-weight: bold; font-weight: bold;
letter-spacing: 5px; letter-spacing: 5px;
font-size: 45px;
>div{
position: relative;
color: #FFFFFF;
text-shadow: 0px 6px 16px rgba(3,23,39,0.3);
background: linear-gradient(0deg, #91DEFF 0%, #FFFFFF 71.3134765625%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
&::after{
content: "";
position: absolute;
left: 30%;
top: 83px;
z-index: 2;
width: 771px;
height: 346px;
display: block;
background: url("../assets/home4Index/Photoeffect.png");
}
}
} }
.bottomTitle { .bottomTitle {
position: absolute; position: absolute;
...@@ -216,6 +229,7 @@ export default { ...@@ -216,6 +229,7 @@ export default {
text-align: center; text-align: center;
} }
.wrapper { .wrapper {
.header { .header {
h2 { h2 {
color: #00346b; color: #00346b;
...@@ -230,70 +244,95 @@ export default { ...@@ -230,70 +244,95 @@ export default {
text-align: center; text-align: center;
color: #00346b; color: #00346b;
} }
ul {
list-style: none;
// width: 1200px;
overflow: hidden;
}
li {
display: flex;
justify-content: center;
float: left;
width: 304px;
// background: #173e67;
height: 620px;
line-height: 170px;
text-align: center;
color: #fff;
font-size: 28px;
font-weight: bold;
margin: 10px;
cursor: pointer;
&:nth-child(1) {
// background: #135965;
}
&:nth-child(4) {
// background: #135965;
}
&:hover {
background-image: url("../assets/home4Index/bg2.png");
}
background-image: url("../assets/home4Index/bg1.png");
background-repeat: no-repeat;
background-size: cover;
}
} }
.itemDiv { .itemDiv {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
position: relative;
cursor: pointer;
& > img { & > img {
width: 120px; width: 207px;
margin-left: 20px; height: 237px;
} }
p { p {
width: 180px; position: absolute;
margin-top: -10px; bottom:20px;
position: relative; font-weight: bold;
span { font-size: 28px;
font-weight: 500; color: #FFFFFF;
letter-spacing: 3px;
}
img {
position: absolute;
bottom: 45px;
right: 15px;
}
} }
} }
.login { .login {
position: relative; position: relative;
height: 100%;
background-repeat: no-repeat;
background-position: center;
background-size: 100%;
overflow: hidden;
}
.content{
width: 100vw;
height: 100vh;
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
height: 100%; background: url("../assets/home4Index/bg.png") no-repeat;
background-size: cover; background-size: 100%;
background-position: 0 0;
}
.inner-div {
width: 40%;
height: 70%;
// background-color: rgba(76, 175, 80, .5);
ul{
margin: 0;
padding: 0;
list-style: none;
width: 100%;
height: 100%;
position: relative;
li{
position: absolute;
z-index: 4;
}
>li:nth-child(1){
left: -9%;
top: 36%;
}
>li:nth-child(2){
right: -9%;
top: 36%;
}
>li:nth-child(3){
left: -22%;
top: 74%;
}
>li:nth-child(4){
right: -22%;
top: 74%;
}
>li:nth-child(5){
left: 36%;
top: 80%;
}
}
}
.left-title{
position: relative;
&::after{
content: "";
position: absolute;
left: 0;
bottom: 0;
z-index: 2;
width: 400px;
height: 1px;
background: linear-gradient(90deg, #22DCFD 0%, #22DCFD 0%, rgba(34, 220, 253,.5) 54%, rgba(34, 220, 253,0) 100%);
border-image: linear-gradient(0deg, #22DCFD, #22DCFD, rgba(34, 220, 253,0), #22DCFD) 10 10;
}
} }
</style> </style>
This diff is collapsed.
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