Commit eeaaab24 authored by 刘殿昕's avatar 刘殿昕

菜单,导航栏

parent f0c1e172
...@@ -147,11 +147,19 @@ export default { ...@@ -147,11 +147,19 @@ export default {
unreadMessageCount() { unreadMessageCount() {
return this.$store.state.unreadMessageCount; return this.$store.state.unreadMessageCount;
}, },
getRouter() {
return this.$route.path;
}
}, },
watch: { watch: {
getMenuCartState(newVal) { getMenuCartState(newVal) {
this.getList(); this.getList();
}, },
getRouter(val) {
if (val == "/services_shop" || val == "/technical_support" || val == "/workplace") {
this.now_menu = val;
}
}
}, },
methods: { methods: {
change_now_hover(n) { change_now_hover(n) {
...@@ -216,6 +224,7 @@ export default { ...@@ -216,6 +224,7 @@ export default {
}, },
getMenuIndex() { getMenuIndex() {
this.now_menu = this.$route.path; this.now_menu = this.$route.path;
console.log(this.now_menu)
}, },
getNowMenu() { getNowMenu() {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => { this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
......
...@@ -54,7 +54,7 @@ export default { ...@@ -54,7 +54,7 @@ export default {
let arr = response.data.data[0].Child; let arr = response.data.data[0].Child;
let shopArr = []; let shopArr = [];
arr.forEach((item) => { arr.forEach((item) => {
if (item.visit_url == "/shop") { if (item.visit_url == "/services_shop") {
shopArr = item.Child; shopArr = item.Child;
} }
}); });
......
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