Commit 640bee95 authored by 王晓旭's avatar 王晓旭

门户修改

parent 8888cc16
...@@ -326,12 +326,7 @@ export default { ...@@ -326,12 +326,7 @@ export default {
this.initSwiper(); this.initSwiper();
}, },
methods: { methods: {
...mapMutations("user", [ ...mapMutations("user", ["set_token", "SET_USERDATA", "set_siteList"]),
"set_token",
"SET_USERDATA",
"set_siteList",
"SET_routerList",
]),
initSwiper() { initSwiper() {
this.mySwiper = new Swiper(".mySwiper", { this.mySwiper = new Swiper(".mySwiper", {
effect: "cube", // 方块动画 effect: "cube", // 方块动画
...@@ -382,7 +377,6 @@ export default { ...@@ -382,7 +377,6 @@ export default {
this.set_token(token); this.set_token(token);
this.SET_USERDATA(user); this.SET_USERDATA(user);
this.set_siteList(siteList); this.set_siteList(siteList);
this.SET_routerList(this.getUrl(user.menuList));
if (siteList.length) { if (siteList.length) {
storage.set(2, "siteId", siteList[0].id); storage.set(2, "siteId", siteList[0].id);
storage.set(2, "siteName", siteList[0].siteName); storage.set(2, "siteName", siteList[0].siteName);
...@@ -426,21 +420,6 @@ export default { ...@@ -426,21 +420,6 @@ export default {
} }
}); });
}, },
// 递归获取菜单url
getUrl(menus = []) {
let urls = [];
let fn = (arr) => {
arr.forEach((v) => {
urls.push(v.url);
if (v.childList && v.childList.length) {
fn(v.childList);
}
});
};
fn(menus);
return urls;
},
}, },
}; };
</script> </script>
...@@ -468,7 +447,7 @@ export default { ...@@ -468,7 +447,7 @@ export default {
} }
100% { 100% {
width: 700px; width: 640px;
} }
} }
// @keyframes hiddrenText { // @keyframes hiddrenText {
...@@ -477,12 +456,35 @@ export default { ...@@ -477,12 +456,35 @@ export default {
// opacity: 0; // opacity: 0;
// } // }
// } // }
@media(max-width: 1900px){
.slogan{
// font-size: 60px !important;
margin-left: 100px !important;
}
}
@media (max-width: 1700px){
.slogan{
// font-size: 60px !important;
margin-left: 50px !important;
}
}
@media (max-width: 1500px){
.slogan{
margin-left: 0px !important;
margin-right: 0px !important;
}
}
.login { .login {
--pd: 9%; --pd: 9%;
--input-height: 50px; --input-height: 50px;
--input-border-color: rgba(238, 238, 238, 1); --input-border-color: rgba(238, 238, 238, 1);
--time: 1s; --time: 1s;
background: url("@/assets/images/login_bg2.jpg"); background: url("@/assets/images/login_bg.png");
background-size: 100% auto; background-size: 100% auto;
animation: bg-roll 150s cubic-bezier(0.21, 0.07, 0.88, 1.02) infinite; animation: bg-roll 150s cubic-bezier(0.21, 0.07, 0.88, 1.02) infinite;
.main { .main {
...@@ -490,11 +492,12 @@ export default { ...@@ -490,11 +492,12 @@ export default {
background-color: rgba(0, 0, 0, 0.7); background-color: rgba(0, 0, 0, 0.7);
} }
.slogan { .slogan {
margin-left: calc(300px - 9%); margin-left: 100px;
// margin-right: 20px;
} }
.slogan-text { .slogan-text {
width: 700px; width: 640px;
font-size: 78px; font-size: 68px;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
font-weight: 500; font-weight: 500;
color: #fff; color: #fff;
......
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