Commit b745bce3 authored by 仇晓婷's avatar 仇晓婷

菜单样式

parent 17205f95
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<div class="top_menu_box"> <div class="top_menu_box">
<table class="t_table_box"> <table class="t_table_box">
<tr> <tr>
<td class="t_title"> <td class="t_title" :class="{addclass:isStatic}">
<div class="title"> <div class="title">
<Icon type="ios-home" /> <Icon type="ios-home" />
<b>首页</b> <b>首页</b>
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
</td> </td>
</tr> </tr>
<tr v-for="(item,i) in filterSider" :key="i"> <tr v-for="(item,i) in filterSider" :key="i">
<td class="t_title"> <td class="t_title" :class="isClass == item.id ? 'addclass' : '' ">
<div class="title"> <div class="title">
<Icon :type="item.icon" /> <Icon :type="item.icon" />
<b>{{item.title}}</b> <b>{{item.title}}</b>
...@@ -149,6 +149,8 @@ export default { ...@@ -149,6 +149,8 @@ export default {
homeMenu: "", homeMenu: "",
homeMenuItem: "", homeMenuItem: "",
parthto: "", parthto: "",
isClass: null,
isStatic: false,
}; };
}, },
computed: { computed: {
...@@ -343,6 +345,8 @@ export default { ...@@ -343,6 +345,8 @@ export default {
}); });
}, },
goPage(u, li) { goPage(u, li) {
this.isStatic = false;
this.isClass = u.id;
if (li.target == 1) { if (li.target == 1) {
window.open(li.path, "_blank"); window.open(li.path, "_blank");
} else { } else {
...@@ -358,12 +362,16 @@ export default { ...@@ -358,12 +362,16 @@ export default {
this.homeMenu = ""; this.homeMenu = "";
this.homeMenuItem = ""; this.homeMenuItem = "";
this.isActive = 0; this.isActive = 0;
this.isClass = null;
this.isStatic = true;
}, },
goIndexTwo() { goIndexTwo() {
this.$router.push("/home"); this.$router.push("/home");
this.homeMenu = ""; this.homeMenu = "";
this.homeMenuItem = ""; this.homeMenuItem = "";
this.isActive = 0; this.isActive = 0;
this.isClass = null;
this.isStatic = true;
}, },
shoucang() { shoucang() {
if (this.showStar) { if (this.showStar) {
...@@ -538,6 +546,9 @@ export default { ...@@ -538,6 +546,9 @@ export default {
margin-top: -12px; margin-top: -12px;
} }
} }
.addclass {
background-color: #282e3b;
}
} }
} }
} }
......
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