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

门户修改

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