From 3d636deab54e30db4cc79c2415552f64f72c74f8 Mon Sep 17 00:00:00 2001
From: LightZhang <978854603@qq.com>
Date: Sun, 4 Nov 2018 20:10:40 +0800
Subject: [PATCH] ss
---
src/components/leftMenu.vue | 21 +++++++++++++++------
src/views/aboutUs/aboutUs.vue | 5 +++--
src/views/aboutUs/cooperateWithUs.vue | 16 +++++++---------
src/views/aboutUs/propystTechnology.vue | 4 +++-
4 files changed, 28 insertions(+), 18 deletions(-)
diff --git a/src/components/leftMenu.vue b/src/components/leftMenu.vue
index 74f80d1..8a1fd3c 100644
--- a/src/components/leftMenu.vue
+++ b/src/components/leftMenu.vue
@@ -8,8 +8,8 @@
{{curMenu.name}}
- -
-
+
-
+
{{sonmenu.name}}
@@ -33,22 +33,31 @@ export default {
menus: window.config.menus,
isMobile: false,
curMenu: null,
- curChildMenu: null
+ curChildMenu: null,
+ strong: ""
};
},
created: function() {
- this.mobileHide();
+ this.Init();
},
methods: {
- mobileHide: function() {
+ Init: function() {
this.isMobile = common.isMobile();
var path = this.$route.fullPath.split("/");
+
this.curMenu = this.menus.find(p => {
return p.url.indexOf(path[1]) > 0;
});
this.curChildMenu = this.curMenu.child.find(p => {
- return p.url.indexOf(path[2]);
+ return p.url.indexOf(path[2]) > 0;
+ });
+
+ this.curMenu.child.map(p => {
+ p.strong = "categoryHead h2 linkProduct";
+ if (p.url.indexOf(path[2]) > 0) {
+ this.curChildMenu.strong = "categoryHead h2 linkProduct strong";
+ }
});
}
}
diff --git a/src/views/aboutUs/aboutUs.vue b/src/views/aboutUs/aboutUs.vue
index b59445c..6375b35 100644
--- a/src/views/aboutUs/aboutUs.vue
+++ b/src/views/aboutUs/aboutUs.vue
@@ -4,9 +4,10 @@
diff --git a/src/views/aboutUs/cooperateWithUs.vue b/src/views/aboutUs/cooperateWithUs.vue
index a39103b..cd1ab86 100644
--- a/src/views/aboutUs/cooperateWithUs.vue
+++ b/src/views/aboutUs/cooperateWithUs.vue
@@ -1,7 +1,8 @@
-
-
+
+
+
@@ -37,14 +40,9 @@
diff --git a/src/views/aboutUs/propystTechnology.vue b/src/views/aboutUs/propystTechnology.vue
index 8d6f218..25d9ba8 100644
--- a/src/views/aboutUs/propystTechnology.vue
+++ b/src/views/aboutUs/propystTechnology.vue
@@ -1,6 +1,8 @@
-
+
+
+